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 352689548d
commit bf2ed8d1b0
3 changed files with 1 additions and 2 deletions
+1
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
-2
View File
@@ -1,2 +0,0 @@
*
!.gitignore
View File