-
Notifications
You must be signed in to change notification settings - Fork 6
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
Init codemod package #1171
Init codemod package #1171
Conversation
fs.copyFileSync('./README.md', './dist/README.md'); | ||
fs.copyFileSync('./LICENSE', './dist/LICENSE'); | ||
|
||
fs.rmdirSync('./dist/transforms/__testfixtures__', { recursive: true }); |
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.
Should this be handled in .npmignore
instead?
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.
What should I add to it?
Should I copy .npmignore
to dist
folder then?
Because we are doing release from dist folder.
We are not doing this in any other package.
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.
yeah, I think it should be in the folder that is beeing published. By default, npm is taking gitignore if npmignore doesn't exist, so that's why we didn't really need it until now.
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.
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.
https://www.npmjs.com/package/clean-package this tool can clean the root package.json form all the nonsense before publish and revert it back.
Then we will be able to publish form the root folder and in that case .npmignore
would make complete sense.
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.
Ok, leave it as is for now
Kudos, SonarCloud Quality Gate passed!
|
Please select all that apply:
Please describe the differences between the current and new behavior
Codemods for migrating form datx v1 to v2