use "files" to only ship necessary files

This commit is contained in:
Simon Haugen 2021-02-13 14:34:52 +01:00
parent 9ad31d8d3f
commit 0f6d40c631
2 changed files with 3 additions and 5 deletions

View file

@ -1,5 +0,0 @@
example
src
package-lock.json
tsconfig.json
.prettierrc

View file

@ -16,6 +16,9 @@
"url": "git+https://github.com/smnhgn/vite-plugin-package-version.git"
},
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"clean": "rm -rf dist",
"build": "npm run clean && tsup src/index.ts --dts",