Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Include src files in vite npm bundle (for sourcemaps) #3656

Merged
merged 2 commits into from
Jun 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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