@sanity/pkg-utils 6.8.10-canary.2 → 6.8.11

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": "6.8.10-canary.2",
3
+ "version": "6.8.11",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -105,7 +105,7 @@
105
105
  "rxjs": "^7.8.1",
106
106
  "treeify": "^1.1.0",
107
107
  "uuid": "^9.0.1",
108
- "zod": "3.23.5",
108
+ "zod": "3.23.6",
109
109
  "zod-validation-error": "3.2.0"
110
110
  },
111
111
  "devDependencies": {
@@ -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.2"
147
+ "@sanity/pkg-utils": "6.8.11"
148
148
  },
149
149
  "peerDependencies": {
150
150
  "typescript": "5.4.x"
@@ -376,33 +376,10 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
376
376
  resolve(packagePath, 'tsconfig.settings.json'),
377
377
  outdent`
378
378
  {
379
+ "extends": "@sanity/pkg-utils/tsconfig/strictest.json",
379
380
  "compilerOptions": {
380
- // Completeness
381
- "skipLibCheck": true,
382
-
383
- // Interop constraints
384
- "allowSyntheticDefaultImports": true,
385
- "esModuleInterop": true,
386
-
387
- // Language and environment
388
- "target": "ES2020",
389
-
390
- // Modules
391
- "module": "ES2020",
392
- "moduleResolution": "Node",
393
-
394
- // Type checking
395
- "alwaysStrict": true,
396
- "noFallthroughCasesInSwitch": true,
397
- "noImplicitAny": true,
398
- "noImplicitReturns": true,
399
- "noImplicitThis": true,
400
- "noUnusedLocals": true,
401
- "noUnusedParameters": true,
402
- "strict": true,
403
- "strictFunctionTypes": true,
404
- "strictNullChecks": true,
405
- "strictPropertyInitialization": true
381
+ "rootDir": ".",
382
+ "outDir": "./dist"
406
383
  }
407
384
  }
408
385
  `,
@@ -418,12 +395,7 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
418
395
  {
419
396
  "extends": "./tsconfig.settings",
420
397
  "include": ["./src"],
421
- "exclude": ["./src/**/*.test.ts"],
422
- "compilerOptions": {
423
- "rootDir": ".",
424
- "outDir": "./dist",
425
- "resolveJsonModule": true
426
- }
398
+ "exclude": ["./src/**/*.test.ts"]
427
399
  }
428
400
  `,
429
401
  prettierConfig,
@@ -438,14 +410,7 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
438
410
  {
439
411
  "extends": "./tsconfig.settings",
440
412
  "include": ["./**/*.cjs", "./**/*.ts", "./**/*.tsx"],
441
- "exclude": ["./node_modules"],
442
- "compilerOptions": {
443
- "rootDir": ".",
444
- "outDir": "./dist",
445
- "noEmit": true,
446
- "allowJs": true,
447
- "resolveJsonModule": true,
448
- }
413
+ "exclude": ["./node_modules"]
449
414
  }
450
415
  `,
451
416
  prettierConfig,