@sanity/pkg-utils 6.6.7 → 6.7.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": "@sanity/pkg-utils",
3
- "version": "6.6.7",
3
+ "version": "6.7.0",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -30,6 +30,9 @@
30
30
  "require": "./dist/index.cjs",
31
31
  "default": "./dist/index.js"
32
32
  },
33
+ "./tsconfig/recommended.json": "./tsconfig/recommended.json",
34
+ "./tsconfig/strict.json": "./tsconfig/strict.json",
35
+ "./tsconfig/strictest.json": "./tsconfig/strictest.json",
33
36
  "./package.json": "./package.json"
34
37
  },
35
38
  "main": "./dist/index.cjs",
@@ -42,6 +45,7 @@
42
45
  "files": [
43
46
  "bin",
44
47
  "dist",
48
+ "tsconfig",
45
49
  "!dist/stats.html",
46
50
  "src",
47
51
  "!src/**/*.test.ts"
@@ -136,7 +140,7 @@
136
140
  "typescript": "5.4.5",
137
141
  "vitest": "^1.5.0",
138
142
  "vitest-github-actions-reporter": "^0.11.1",
139
- "@sanity/pkg-utils": "6.6.7"
143
+ "@sanity/pkg-utils": "6.7.0"
140
144
  },
141
145
  "peerDependencies": {
142
146
  "typescript": "5.4.x"
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "description": "Sets the right defaults for usage with @sanity/pkg-utils and that JSX is compiled with esbuild, and ESM and CJS with rollup.",
4
+ "compilerOptions": {
5
+ "lib": ["ESNext"],
6
+ "target": "ESNext",
7
+ "module": "Preserve",
8
+ "moduleResolution": "Bundler",
9
+ "esModuleInterop": true,
10
+ "resolveJsonModule": true,
11
+ "moduleDetection": "force",
12
+ "jsx": "preserve",
13
+ "allowJs": true,
14
+ "noEmit": true,
15
+ "allowImportingTsExtensions": true,
16
+ "skipLibCheck": true,
17
+ "forceConsistentCasingInFileNames": true,
18
+ "allowSyntheticDefaultImports": true
19
+ }
20
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "description": "Extends the recommended preset with stricter settings.",
4
+ "extends": "./recommended.json",
5
+ "compilerOptions": {
6
+ "checkJs": true,
7
+ "strict": true,
8
+ "noFallthroughCasesInSwitch": true,
9
+ "noUnusedLocals": true,
10
+ "noUnusedParameters": true,
11
+ "noPropertyAccessFromIndexSignature": true,
12
+ "isolatedModules": true,
13
+ "verbatimModuleSyntax": true
14
+ }
15
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "description": "Stricter than strict",
4
+ "extends": "./strict.json",
5
+ "compilerOptions": {
6
+ "alwaysStrict": true,
7
+ "noImplicitAny": true,
8
+ "noImplicitReturns": true,
9
+ "noImplicitThis": true,
10
+ "strictFunctionTypes": true,
11
+ "strictNullChecks": true,
12
+ "strictPropertyInitialization": true
13
+ }
14
+ }