Skip to content

Commit c6b3f96

Browse files
committed
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.
1 parent 407a5c3 commit c6b3f96

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tailwind.config.js
1010
index.html
1111
yarn.lock
1212
yarn-error.log
13+
types/generated/*.d.ts
1314

1415
# Perf related files
1516
isolate*.log

types/generated/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

types/generated/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)