Skip to content

Commit

Permalink
fix: Include src files in vite npm bundle (for sourcemaps) (#3656)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS authored Jun 5, 2021
1 parent 4d2e68b commit 294d8b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 11 additions & 0 deletions packages/vite/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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__/
5 changes: 0 additions & 5 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
},
"main": "dist/node/index.js",
"types": "dist/node/index.d.ts",
"files": [
"bin",
"dist",
"client.d.ts"
],
"engines": {
"node": ">=12.0.0"
},
Expand Down

0 comments on commit 294d8b4

Please sign in to comment.