bunchee 3.5.1 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunchee",
3
- "version": "3.5.1",
3
+ "version": "3.6.0",
4
4
  "description": "zero config bundler for js/ts/jsx libraries",
5
5
  "bin": {
6
6
  "bunchee": "./dist/cli.js"
@@ -9,13 +9,15 @@
9
9
  "types": "./dist/index.d.ts",
10
10
  "scripts": {
11
11
  "test": "jest --env node",
12
- "test:update": "TEST_UPDATE_SNAPSHOT=1 yarn test",
12
+ "test:update": "TEST_UPDATE_SNAPSHOT=1 pnpm test",
13
13
  "clean": "rm -rf ./dist",
14
14
  "typecheck": "tsc --noEmit",
15
- "prepublishOnly": "yarn clean && yarn build && chmod +x ./dist/cli.js && yarn test",
15
+ "prepublishOnly": "pnpm clean && pnpm build && chmod +x ./dist/cli.js && pnpm test",
16
16
  "build:cli": "tsx ./src/cli.ts ./src/cli.ts --runtime node -f cjs -o ./dist/cli.js",
17
17
  "build:main": "tsx ./src/cli.ts ./src/index.ts --runtime node -f cjs",
18
- "build": "yarn build:main && yarn build:cli"
18
+ "build": "pnpm build:main && pnpm build:cli",
19
+ "format": "prettier --write .",
20
+ "prepare": "husky install"
19
21
  },
20
22
  "type": "commonjs",
21
23
  "keywords": [
@@ -50,15 +52,15 @@
50
52
  "@rollup/plugin-node-resolve": "~15.0.2",
51
53
  "@rollup/plugin-replace": "~5.0.2",
52
54
  "@rollup/plugin-wasm": "~6.1.3",
53
- "@swc/core": "^1.3.46",
55
+ "@swc/core": "^1.3.68",
54
56
  "@swc/helpers": "^0.5.0",
55
57
  "arg": "~5.0.2",
56
- "magic-string": "~0.30.0",
57
58
  "pretty-bytes": "~5.6.0",
58
59
  "publint": "~0.1.11",
59
60
  "rollup": "~3.20.2",
60
61
  "rollup-plugin-dts": "~5.3.0",
61
62
  "rollup-plugin-swc3": "~0.8.1",
63
+ "rollup-swc-preserve-directives": "~0.3.0",
62
64
  "tslib": "~2.5.0"
63
65
  },
64
66
  "peerDependencies": {
@@ -76,11 +78,18 @@
76
78
  "@huozhi/testing-package": "1.0.0",
77
79
  "@swc/jest": "0.2.22",
78
80
  "@types/jest": "29.0.0",
81
+ "@types/node": "^20.4.1",
82
+ "husky": "8.0.3",
79
83
  "jest": "29.0.1",
84
+ "lint-staged": "13.2.3",
85
+ "prettier": "3.0.0",
80
86
  "react": "18.2.0",
81
87
  "tsx": "3.12.6",
82
88
  "typescript": "4.9.5"
83
89
  },
90
+ "lint-staged": {
91
+ "*.{ts,tsx,js,jsx,md,json,yml}": "prettier --write"
92
+ },
84
93
  "jest": {
85
94
  "moduleDirectories": [
86
95
  "node_modules"
@@ -93,5 +102,6 @@
93
102
  "@swc/jest"
94
103
  ]
95
104
  }
96
- }
105
+ },
106
+ "packageManager": "pnpm@7.24.3"
97
107
  }