Skip to content
Permalink
Browse files
ensure generated types are published as well
In my testing, I was publishing using a node 16 install, but on CI we
are using Node 12. It seems that the NPM that shipped with Node 12
ignores all files for publishing if they are mentioned in `.gitignore`
which I could reproduce locally.

Doing a bit of testing, I used this solution which I think we also used
in v2 when generating `dist/` files. The `npm publish --dry-run` now
_does_ include the generated types as well and they are still ignored
for version control.
  • Loading branch information
RobinMalfait committed Mar 22, 2022
1 parent 407a5c3 commit c6b3f96f850c00f9b988475fbb05cd2df2e5d6b6
Showing 3 changed files with 1 addition and 2 deletions.
@@ -10,6 +10,7 @@ tailwind.config.js
index.html
yarn.lock
yarn-error.log
types/generated/*.d.ts

# Perf related files
isolate*.log

This file was deleted.

Empty file.

0 comments on commit c6b3f96

Please sign in to comment.