-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[refactor] Re-organise project files. #107
Conversation
@@ -15,9 +15,9 @@ jobs: | |||
runs-on: ubuntu-latest | |||
|
|||
steps: | |||
- uses: actions/checkout@v2 | |||
- uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
@@ -13,12 +13,17 @@ | |||
}, | |||
"exports": { | |||
".": "./src/index.ts", | |||
"./*": "./src/*" | |||
"./*": "./src/*.ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice change!
@@ -37,4 +37,4 @@ export default { | |||
|
|||
## Configuration | |||
|
|||
Check the main [README](../../README.md#configuration) for the common configuration options. | |||
Check the main [README](/README.md#configuration) for the common configuration options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
What and why?
Project files are a bit mis-organised.
Especially in
/packages/core/src/plugins/**
, these should all move as full-fledged workspaces in/packages/plugins/*
.Also, having the published bundler plugins
/packages/{bundler}-plugin
at the root is noisy. They should be moved into their own directory/packages/published/{bundler}-plugin
.How?
/packages/core/src/plugins/*
=>/packages/plugins/*
./packages/*-plugin
=>/packages/published/*-plugin
./packages/tests/{fixtures,jest,helpers}
=>/packages/tests/_jest/*
.@dd/rum-plugins
=>@dd/rum-plugin
for consistency.@dd/telemetry-plugins
=>@dd/telemetry-plugin
for consistency.@dd/internal-context-plugin
to handle the global context.New, simpler diagram:
Compared to previous one: