-
Notifications
You must be signed in to change notification settings - Fork 72
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
Enable local consumption of OUI #813
Enable local consumption of OUI #813
Conversation
With the upgrade os `eslint`, the location of the default formatter changed. This is just a hack to work around the problem in the now abandoned `sass-lint`. Signed-off-by: Miki <miki@amazon.com>
84a0b0a
to
72cf106
Compare
@@ -14,7 +14,7 @@ packages/eslint-plugin | |||
types/ | |||
|
|||
# ignore everything in `scripts` except postinstall.js | |||
scripts/!(postinstall.js) | |||
scripts/!(postinstall.js|preinstall.js) |
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.
nit: can we update the comment here to include preinstall as well?
|
||
// Only run when installed as a dep | ||
if (!INIT_CWD?.startsWith?.(PWD)) { | ||
const depsToKeep = [ |
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.
Just curious to know how did we determine this list of deps and know we haven't missed any?
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.
Left a comment in the code:
/* These are deps and types which get installed when a production package is installed.
* When this library is linked as a dep to another project, having all the deps could
* confuse or conflict the project's compilers.
*
* When being installed as dep of another project in production, `node_modules` would
* be empty.
*/
'docs', | ||
'generator-oui', | ||
'packages/eslint-plugin', | ||
'packages/react-datepicker', |
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.
why this one?
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.
We never use the content of packages/react-datepicker
; it is only the built artifact, packages/react-datepicker.js
that we package and consume.
Is there a |
Signed-off-by: Miki <miki@amazon.com>
72cf106
to
91161be
Compare
In the |
* Fix linting sass files With the upgrade os `eslint`, the location of the default formatter changed. This is just a hack to work around the problem in the now abandoned `sass-lint`. Signed-off-by: Miki <miki@amazon.com> * Add preinstall script Signed-off-by: Miki <miki@amazon.com> --------- Signed-off-by: Miki <miki@amazon.com> (cherry picked from commit 2c26b04) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix linting sass files With the upgrade os `eslint`, the location of the default formatter changed. This is just a hack to work around the problem in the now abandoned `sass-lint`. * Add preinstall script --------- (cherry picked from commit 2c26b04) Signed-off-by: Miki <miki@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This change allows OUI to self-clean while being installed during development when linked to as a dependency.
Also:
Issues Resolved
[List any issues this PR will resolve]
Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.