Skip to content

Commit

Permalink
fix: worker export in the package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed Nov 12, 2024
1 parent c73f41b commit c8c3fca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
entries: [
'src/index',
'src/worker',
],
declaration: true,
clean: false,
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"require": "./dist/index.cjs"
},
"./worker": {
"types": "./dist/worker.d.ts",
"import": "./dist/worker.mjs",
"require": "./dist/worker.cjs"
"types": "./worker.d.ts",
"import": "./dist/worker.js",
"require": "./dist/worker.js"
},
"./*": "./*"
},
Expand All @@ -52,6 +52,7 @@
}
},
"files": [
"worker.d.ts",
"dist"
],
"scripts": {
Expand All @@ -60,8 +61,9 @@
"lint:fix": "eslint src --fix",
"test": "vitest --no-isolate",
"coverage": "vitest run --coverage",
"build:lib": "vite build && unbuild",
"build:worker": "vite build --config vite.worker.config.ts",
"build": "vite build && unbuild && pnpm build:worker",
"build": "pnpm build:lib && pnpm build:worker",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"release": "bumpp package.json --commit \"release: v%s\" --push --all --tag",
"typecheck": "tsc --noEmit",
Expand Down
1 change: 1 addition & 0 deletions worker.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { }

0 comments on commit c8c3fca

Please sign in to comment.