Skip to content

chore: add dist folder to release #21

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NikolasHaimerl
Copy link
Contributor

@NikolasHaimerl NikolasHaimerl commented Apr 4, 2025

Closes subtask of #14

@NikolasHaimerl NikolasHaimerl marked this pull request as ready for review April 4, 2025 10:35
@@ -10,7 +10,7 @@
"lint": "eslint && prettier --check .",
"lint:fix": "eslint --fix && prettier . --write",
"test": "npm run lint && npm run test:types && npm run test:unit",
"release": "np"
"release": "tsc -p . && git add dist && np"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually don't commit auto-generated files. (The vendor directory in spark-checker is an exception for good reasons.)

By default, npm excludes all files listed in .gitignore. Instead of adding dist to git, you should tell npm to include it in the package.

See how we do that in our other repositories:

https://github.com/CheckerNetwork/assert-ok-response/blob/bff5c4861e3a64e262b08bba370c6480b597c116/package.json#L25-L28

https://github.com/CheckerNetwork/node/blob/1eb60459f0c27327044de3a02d61757657d2087f/package.json#L65-L71

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also #14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants