Skip to content

Commit

Permalink
build: fix npm package files inclusion
Browse files Browse the repository at this point in the history
We are publishing with yarn 1, which has a problem with negation
patterns in "files" list, causing the npm package to include every
file in the directory.

Since the original reason to expose src files was to address #3652,
which is a client-only concern, we can include the `/client` dir only.
This avoids having to exclude tests in `/node` and also reduces
package size.
  • Loading branch information
yyx990803 committed Sep 20, 2021
1 parent c932207 commit 12e0550
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"bin",
"dist",
"client.d.ts",
"src",
"types",
"!/src/**/__tests__/"
"src/client",
"types"
],
"engines": {
"node": ">=12.2.0"
Expand Down

0 comments on commit 12e0550

Please sign in to comment.