mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
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:
parent
407a5c368c
commit
c6b3f96f85
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,6 +10,7 @@ tailwind.config.js
|
||||
index.html
|
||||
yarn.lock
|
||||
yarn-error.log
|
||||
types/generated/*.d.ts
|
||||
|
||||
# Perf related files
|
||||
isolate*.log
|
||||
|
||||
2
types/generated/.gitignore
vendored
2
types/generated/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
0
types/generated/.gitkeep
Normal file
0
types/generated/.gitkeep
Normal file
Loading…
x
Reference in New Issue
Block a user