fix package outDir

This commit is contained in:
nflnkr 2024-02-12 14:01:32 +03:00
parent 87897a9d47
commit 23bf60e3d0
2 changed files with 6 additions and 5 deletions

@ -3,15 +3,15 @@
"version": "0.0.0",
"private": true,
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist-package/index.js",
"module": "./dist-package/index.js",
"types": "./dist-package/index.d.ts",
"files": [
"dist"
"dist-package"
],
"exports": {
".": {
"import": "./dist/index.js"
"import": "./dist-package/index.js"
}
},
"publishConfig": {

@ -12,6 +12,7 @@ export default defineConfig({
formats: ["es"],
fileName: "index"
},
outDir: "dist-package",
copyPublicDir: false,
rollupOptions: {
external: [