-
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
feat(spectral): esm again #746
Conversation
@@ -2,12 +2,16 @@ | |||
"name": "@readme/spectral-config", | |||
"version": "3.0.6", | |||
"description": "ReadMe coding standards for API documentation", | |||
"main": "src/index.js", | |||
"main": "dist/index.cjs", |
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.
do you need the exports: {}
stuff here?
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.
"lint": "eslint .", | ||
"prepack": "npm run build", |
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.
@erunion is this the only thing needed for lerna to build the dist before publishing?
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.
might add a prebuild
for blowing away the dist directory too. i dont know if the tsup clean
directory will do that or not.
"prebuild": "rm -rf dist/"
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.
i think we should be okay on that front b/c clean: true
in the tsup
config
edit: sorry just saw the second part of your comment lol i confirmed it cleans it out properly!
This reverts commit bb437f8.
🧰 Changes
We were running into issues with
alex
not being properly bundled but thanks totsup
we're now including it in the dist. This SHOULD work now :cry-party:(Tagging #744 #724 #718 for posterity)
🧬 QA & Testing
I've been QA'ing by linking the package manually with the following Spectral config in a separate repository:
Instead of the reckless non-QA approach I took in previous PRs, I actually feel good about this QA process translating to actual experience using the package.