@sanity/pkg-utils 5.0.4 → 5.0.5

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": "@sanity/pkg-utils",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -100,7 +100,7 @@
100
100
  "zod": "^3.22.4"
101
101
  },
102
102
  "devDependencies": {
103
- "@commitlint/cli": "^19.2.0",
103
+ "@commitlint/cli": "^19.2.1",
104
104
  "@commitlint/config-conventional": "^19.1.0",
105
105
  "@types/babel__core": "^7.20.5",
106
106
  "@types/cpx": "^1.5.5",
@@ -112,8 +112,8 @@
112
112
  "@types/rimraf": "^3.0.2",
113
113
  "@types/treeify": "^1.0.3",
114
114
  "@types/uuid": "^9.0.8",
115
- "@typescript-eslint/eslint-plugin": "^7.2.0",
116
- "@typescript-eslint/parser": "^7.2.0",
115
+ "@typescript-eslint/eslint-plugin": "^7.3.1",
116
+ "@typescript-eslint/parser": "^7.3.1",
117
117
  "browserslist-to-esbuild": "2.1.1",
118
118
  "commitizen": "^4.3.0",
119
119
  "cpx": "^1.5.0",
@@ -133,7 +133,7 @@
133
133
  "typescript": "^5.4.2",
134
134
  "vitest": "^1.4.0",
135
135
  "vitest-github-actions-reporter": "^0.11.1",
136
- "@sanity/pkg-utils": "5.0.4"
136
+ "@sanity/pkg-utils": "5.0.5"
137
137
  },
138
138
  "peerDependencies": {
139
139
  "typescript": "^4.7 || ^5"
@@ -195,12 +195,13 @@ export function resolveRollupConfig(
195
195
  chunkFileNames: () => {
196
196
  const parts = outputExt.split('.')
197
197
  const prefix = config?.rollup?.hashChunkFileNames ? '[name]-[hash]' : '[name]'
198
+ const folder = config?.rollup?.hashChunkFileNames ? '_chunks' : '_chunks-[format]'
198
199
 
199
200
  if (parts.length === 3) {
200
- return `_chunks-[format]/${prefix}.${parts[2]}`
201
+ return `${folder}/${prefix}.${parts[2]}`
201
202
  }
202
203
 
203
- return `_chunks-[format]/${prefix}${outputExt}`
204
+ return `${folder}/${prefix}${outputExt}`
204
205
  },
205
206
  compact: minify,
206
207
  dir: outDir,