Skip to content

Commit

Permalink
improve rollup build
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jan 6, 2025
1 parent 0730840 commit 2bb3500
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 5 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"type": "module",
"scripts": {
"test": "vitest",
"prepublishOnly": "tsc",
"prepare": "npx rollup index.js --file dist/index.cjs --format cjs",
"prepublishOnly": "pnpm build",
"build": "concurrently \"pnpm:build:*\" --names \"build:\" --prefixColors auto",
"build:ts": "tsc",
"build:cjs": "npx rollup index.js --file dist/index.cjs --format cjs --plugin @rollup/plugin-commonjs --plugin @rollup/plugin-node-resolve",
"format": "prettier . --cache --write",
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto",
"lint:js": "eslint .",
Expand All @@ -32,6 +34,8 @@
"license": "MIT",
"devDependencies": {
"@eslint/js": "^9.17.0",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"concurrently": "^9.1.2",
"eslint": "^9.17.0",
"fixturify-project": "^7.1.3",
Expand All @@ -43,7 +47,7 @@
"vitest": "^2.1.8"
},
"dependencies": {
"chalk": "^4.1.2",
"chalk": "^5.4.1",
"semver": "^7.6.3"
},
"packageManager": "[email protected]+sha512.93e57b0126f0df74ce6bff29680394c0ba54ec47246b9cf321f0121d8d9bb03f750a705f24edc3c1180853afd7c2c3b94196d0a3d53d3e069d9e2793ef11f321"
Expand Down
Loading

0 comments on commit 2bb3500

Please sign in to comment.