@sanity/pkg-utils 6.6.7 → 6.7.1
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/index.cjs +1 -0
- package/dist/_chunks-cjs/index.cjs.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +6 -2
- package/tsconfig/recommended.json +20 -0
- package/tsconfig/strict.json +15 -0
- package/tsconfig/strictest.json +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.1",
|
|
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.
|
|
143
|
+
"@sanity/pkg-utils": "6.7.1"
|
|
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
|
+
"target": "ESNext",
|
|
6
|
+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
7
|
+
"jsx": "preserve",
|
|
8
|
+
"module": "Preserve",
|
|
9
|
+
"moduleDetection": "force",
|
|
10
|
+
"moduleResolution": "Bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"allowSyntheticDefaultImports": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"skipLibCheck": 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
|
+
"isolatedModules": true,
|
|
8
|
+
"verbatimModuleSyntax": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"noUnusedLocals": true,
|
|
11
|
+
"noUnusedParameters": true,
|
|
12
|
+
"noFallthroughCasesInSwitch": true,
|
|
13
|
+
"noPropertyAccessFromIndexSignature": true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"description": "Stricter than strict",
|
|
4
|
+
"extends": "./strict.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"strictNullChecks": true,
|
|
7
|
+
"strictFunctionTypes": true,
|
|
8
|
+
"strictPropertyInitialization": true,
|
|
9
|
+
"alwaysStrict": true,
|
|
10
|
+
"noImplicitAny": true,
|
|
11
|
+
"noImplicitThis": true,
|
|
12
|
+
"noImplicitReturns": true,
|
|
13
|
+
"noImplicitOverride": true
|
|
14
|
+
}
|
|
15
|
+
}
|