Skip to content

Commit

Permalink
fix: Use npmignore instead of files
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Jun 3, 2021
1 parent 5b202be commit 8c44b96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 11 additions & 1 deletion packages/vite/.npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
src/**/__tests__
# files in package.json + .npmignore does not work, so start out ignoring everything
/*

# re-include the files we want
!/bin
!/dist
!/src/**/*
!client.d.ts

# but not the tests
/src/**/__tests__/
6 changes: 0 additions & 6 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
},
"main": "dist/node/index.js",
"types": "dist/node/index.d.ts",
"files": [
"bin",
"dist",
"src",
"client.d.ts"
],
"engines": {
"node": ">=12.0.0"
},
Expand Down

0 comments on commit 8c44b96

Please sign in to comment.