@sanity/pkg-utils 4.4.1 → 4.4.3
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/dist/{_chunks → _chunks-cjs}/index.cjs +3 -3
- package/dist/_chunks-cjs/index.cjs.map +1 -0
- package/dist/cli.cjs +5 -5
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +26 -20
- package/src/node/tasks/rollup/resolveRollupConfig.ts +2 -2
- package/dist/_chunks/index.cjs.map +0 -1
- /package/dist/{_chunks → _chunks-cjs}/build.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/build.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/buildAction.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/buildAction.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/check.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/check.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/checkAction.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/checkAction.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/consoleSpy.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/consoleSpy.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/handleError.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/handleError.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/init.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/init.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/initAction.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/initAction.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/logger.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/logger.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/watch.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/watch.cjs.map +0 -0
- /package/dist/{_chunks → _chunks-cjs}/watchAction.cjs +0 -0
- /package/dist/{_chunks → _chunks-cjs}/watchAction.cjs.map +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.3",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -47,6 +47,24 @@
|
|
|
47
47
|
"!dist/stats.html",
|
|
48
48
|
"src"
|
|
49
49
|
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "run-s clean build:pkg check:pkg",
|
|
52
|
+
"build:pkg": "node -r esbuild-register scripts/build",
|
|
53
|
+
"check:pkg": "node -r esbuild-register scripts/check",
|
|
54
|
+
"check:types": "tsc --build",
|
|
55
|
+
"clean": "rimraf dist test/env/__tmp__",
|
|
56
|
+
"commit": "cz",
|
|
57
|
+
"extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
|
|
58
|
+
"format": "prettier --write --cache --ignore-unknown . && eslint . --ext .cjs,.js,.ts,.tsx --fix --quiet",
|
|
59
|
+
"lint": "eslint . --ext .cjs,.js,.ts,.tsx",
|
|
60
|
+
"playground:build": "pnpm --filter './playground/**' build",
|
|
61
|
+
"playground:clean": "pnpm --filter './playground/**' --silent clean",
|
|
62
|
+
"prepublishOnly": "pnpm run build",
|
|
63
|
+
"test": "run-s playground:clean test:clean vitest:run",
|
|
64
|
+
"test:clean": "rimraf test/env/__tmp__",
|
|
65
|
+
"vitest:run": "vitest run",
|
|
66
|
+
"watch": "node -r esbuild-register scripts/watch"
|
|
67
|
+
},
|
|
50
68
|
"commitlint": {
|
|
51
69
|
"extends": [
|
|
52
70
|
"@commitlint/config-conventional"
|
|
@@ -102,6 +120,7 @@
|
|
|
102
120
|
"devDependencies": {
|
|
103
121
|
"@commitlint/cli": "^19.0.3",
|
|
104
122
|
"@commitlint/config-conventional": "^19.0.3",
|
|
123
|
+
"@sanity/pkg-utils": "workspace:*",
|
|
105
124
|
"@types/babel__core": "^7.20.5",
|
|
106
125
|
"@types/cpx": "^1.5.5",
|
|
107
126
|
"@types/find-config": "^1.0.4",
|
|
@@ -132,8 +151,7 @@
|
|
|
132
151
|
"ts-node": "^10.9.2",
|
|
133
152
|
"typescript": "^5.3.3",
|
|
134
153
|
"vitest": "^1.3.1",
|
|
135
|
-
"vitest-github-actions-reporter": "^0.11.1"
|
|
136
|
-
"@sanity/pkg-utils": "4.4.1"
|
|
154
|
+
"vitest-github-actions-reporter": "^0.11.1"
|
|
137
155
|
},
|
|
138
156
|
"peerDependencies": {
|
|
139
157
|
"typescript": "^4.7 || ^5"
|
|
@@ -145,21 +163,9 @@
|
|
|
145
163
|
"publishConfig": {
|
|
146
164
|
"access": "public"
|
|
147
165
|
},
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"check:types": "tsc --build",
|
|
153
|
-
"clean": "rimraf dist test/env/__tmp__",
|
|
154
|
-
"commit": "cz",
|
|
155
|
-
"extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
|
|
156
|
-
"format": "prettier --write --cache --ignore-unknown . && eslint . --ext .cjs,.js,.ts,.tsx --fix --quiet",
|
|
157
|
-
"lint": "eslint . --ext .cjs,.js,.ts,.tsx",
|
|
158
|
-
"playground:build": "pnpm --filter './playground/**' build",
|
|
159
|
-
"playground:clean": "pnpm --filter './playground/**' --silent clean",
|
|
160
|
-
"test": "run-s playground:clean test:clean vitest:run",
|
|
161
|
-
"test:clean": "rimraf test/env/__tmp__",
|
|
162
|
-
"vitest:run": "vitest run",
|
|
163
|
-
"watch": "node -r esbuild-register scripts/watch"
|
|
166
|
+
"pnpm": {
|
|
167
|
+
"overrides": {
|
|
168
|
+
"@sanity/pkg-utils": "workspace:*"
|
|
169
|
+
}
|
|
164
170
|
}
|
|
165
|
-
}
|
|
171
|
+
}
|
|
@@ -197,10 +197,10 @@ export function resolveRollupConfig(
|
|
|
197
197
|
const prefix = config?.rollup?.hashChunkFileNames ? '[name]-[hash]' : '[name]'
|
|
198
198
|
|
|
199
199
|
if (parts.length === 3) {
|
|
200
|
-
return `_chunks/${prefix}.${parts[2]}`
|
|
200
|
+
return `_chunks-[format]/${prefix}.${parts[2]}`
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
return `_chunks/${prefix}${outputExt}`
|
|
203
|
+
return `_chunks-[format]/${prefix}${outputExt}`
|
|
204
204
|
},
|
|
205
205
|
compact: minify,
|
|
206
206
|
dir: outDir,
|