Skip to content

Commit

Permalink
bugfix: added missing "files" to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mallpopstar committed Aug 14, 2023
1 parent 778f0fc commit f9b1a70
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,24 @@
"type": "git",
"url": "https://github.com/mallpopstar/rc"
},
"main": "./dist/remote.umd.js",
"module": "./dist/remote.es.js",
"files": [
"dist",
"index.d.ts"
],
"main": "./dist/rc.umd.js",
"module": "./dist/rc.es.js",
"types": "./index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./dist/remote.es.js",
"require": "./dist/remote.umd.js"
"import": "./dist/rc.es.js",
"require": "./dist/rc.umd.js"
}
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build"
"build": "tsc && vite build",
"pack": "npm pack --dry-run"
},
"devDependencies": {
"@types/node": "^20.5.0",
Expand Down
13 changes: 5 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ export default defineConfig({
},
minify: true,
},
plugins: [
dts({
insertTypesEntry: true,
}),
],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
},
},
define: {
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
},
plugins: [
dts({
insertTypesEntry: true,
}),
],
})

0 comments on commit f9b1a70

Please sign in to comment.