Skip to content

Commit

Permalink
fix: build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed May 9, 2023
1 parent d89ef60 commit 36b065a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 9 additions & 1 deletion package.json
Expand Up @@ -10,12 +10,19 @@
"scripts": {
"test": "vitest",
"release": "lvr --no-push",
"build:cjs": "pnpm dlx tsup ./index.mjs -d=./",
"build:cjs": "rollup index.mjs --file=index.cjs --format=cjs",
"prepublishOnly": "pnpm test && pnpm build:cjs"
},
"main": "index.cjs",
"module": "index.mjs",
"types": "index.d.ts",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.cjs",
"types": "./index.d.ts"
}
},
"author": "lvjiaxuan <471501748@qq.com> (https://github.com/lvjiaxuan)",
"license": "MIT",
"repository": {
Expand All @@ -25,6 +32,7 @@
"devDependencies": {
"@unocss/core": "^0.51.12",
"jest": "^29.5.0",
"rollup": "^3.21.5",
"vitest": "^0.31.0"
},
"dependencies": {
Expand Down
9 changes: 6 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions tsup.config.cjs

This file was deleted.

0 comments on commit 36b065a

Please sign in to comment.