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.
This commit is contained in:
Robin Malfait 2022-03-22 10:46:38 +01:00
parent 407a5c368c
commit c6b3f96f85
No known key found for this signature in database
GPG Key ID: 92F53D68B9041AFE
3 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@ tailwind.config.js
index.html
yarn.lock
yarn-error.log
types/generated/*.d.ts
# Perf related files
isolate*.log

View File

@ -1,2 +0,0 @@
*
!.gitignore

0
types/generated/.gitkeep Normal file
View File