@sanity/pkg-utils 6.8.10-canary.0 → 6.8.10-canary.2
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-cjs/init.cjs +13 -13
- package/dist/_chunks-cjs/init.cjs.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/node/templates/default/template.ts +13 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "6.8.10-canary.
|
|
3
|
+
"version": "6.8.10-canary.2",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"eslint-config-prettier": "^9.1.0",
|
|
134
134
|
"eslint-plugin-import": "^2.29.1",
|
|
135
135
|
"eslint-plugin-prettier": "^5.1.3",
|
|
136
|
-
"eslint-plugin-simple-import-sort": "12.1.0",
|
|
136
|
+
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
137
137
|
"husky": "^8.0.3",
|
|
138
138
|
"lint-staged": "^15.0.2",
|
|
139
139
|
"npm-run-all2": "^6.1.2",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"typescript": "5.4.5",
|
|
145
145
|
"vitest": "^1.5.3",
|
|
146
146
|
"vitest-github-actions-reporter": "^0.11.1",
|
|
147
|
-
"@sanity/pkg-utils": "6.8.10-canary.
|
|
147
|
+
"@sanity/pkg-utils": "6.8.10-canary.2"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"typescript": "5.4.x"
|
|
@@ -170,11 +170,12 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
|
|
|
170
170
|
'*': ['prettier --write --cache --ignore-unknown'],
|
|
171
171
|
}
|
|
172
172
|
: undefined,
|
|
173
|
-
'prettier': features['prettier'] ? '@sanity/prettier-config' : undefined,
|
|
174
173
|
'browserslist': 'extends @sanity/browserslist-config',
|
|
174
|
+
'prettier': features['prettier'] ? '@sanity/prettier-config' : undefined,
|
|
175
175
|
'dependencies': {},
|
|
176
176
|
'devDependencies': {
|
|
177
|
-
'@sanity/pkg-utils': '
|
|
177
|
+
'@sanity/pkg-utils': '^6',
|
|
178
|
+
'@sanity/prettier-config': features['prettier'] ? '^1' : undefined,
|
|
178
179
|
'@typescript-eslint/eslint-plugin': undefined,
|
|
179
180
|
'@typescript-eslint/parser': undefined,
|
|
180
181
|
'eslint': undefined,
|
|
@@ -182,9 +183,8 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
|
|
|
182
183
|
'eslint-plugin-import': undefined,
|
|
183
184
|
'eslint-plugin-prettier': undefined,
|
|
184
185
|
'eslint-plugin-simple-import-sort': undefined,
|
|
185
|
-
'lint-staged': '
|
|
186
|
-
'prettier': features['prettier'] ? '
|
|
187
|
-
'@sanity/prettier-config': features['prettier'] ? '*' : undefined,
|
|
186
|
+
'lint-staged': '^15',
|
|
187
|
+
'prettier': features['prettier'] ? '^3' : undefined,
|
|
188
188
|
'typescript': undefined,
|
|
189
189
|
},
|
|
190
190
|
'engines': {
|
|
@@ -257,7 +257,7 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
|
|
|
257
257
|
const devDependencies = pkgJson.devDependencies
|
|
258
258
|
|
|
259
259
|
if (isRecord(devDependencies)) {
|
|
260
|
-
devDependencies['typescript'] = '
|
|
260
|
+
devDependencies['typescript'] = '^5.4'
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
|
|
@@ -310,18 +310,18 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
|
|
|
310
310
|
|
|
311
311
|
pkgJson.devDependencies = {
|
|
312
312
|
...pkgJson.devDependencies,
|
|
313
|
-
'eslint': '
|
|
314
|
-
'eslint-config-prettier': features['prettier'] ? '
|
|
315
|
-
'eslint-plugin-
|
|
316
|
-
'eslint-plugin-
|
|
317
|
-
'eslint-plugin-
|
|
313
|
+
'eslint': '^8',
|
|
314
|
+
'eslint-config-prettier': features['prettier'] ? '^9' : undefined,
|
|
315
|
+
'eslint-plugin-import': '^2',
|
|
316
|
+
'eslint-plugin-prettier': features['prettier'] ? '^5' : undefined,
|
|
317
|
+
'eslint-plugin-simple-import-sort': '^12',
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
if (features['typescript']) {
|
|
321
321
|
pkgJson.devDependencies = {
|
|
322
322
|
...pkgJson.devDependencies,
|
|
323
|
-
'@typescript-eslint/eslint-plugin': '
|
|
324
|
-
'@typescript-eslint/parser': '
|
|
323
|
+
'@typescript-eslint/eslint-plugin': '^7',
|
|
324
|
+
'@typescript-eslint/parser': '^7',
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|