@sanity/pkg-utils 6.7.0 → 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/cli.cjs CHANGED
@@ -3,7 +3,7 @@ var cac = require("cac");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
6
- var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "6.7.0";
6
+ var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "6.7.1";
7
7
  const cli = cac__default.default();
8
8
  cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
9
9
  const { checkAction } = await Promise.resolve().then(function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -140,7 +140,7 @@
140
140
  "typescript": "5.4.5",
141
141
  "vitest": "^1.5.0",
142
142
  "vitest-github-actions-reporter": "^0.11.1",
143
- "@sanity/pkg-utils": "6.7.0"
143
+ "@sanity/pkg-utils": "6.7.1"
144
144
  },
145
145
  "peerDependencies": {
146
146
  "typescript": "5.4.x"
@@ -2,19 +2,19 @@
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
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
4
  "compilerOptions": {
5
- "lib": ["ESNext"],
6
5
  "target": "ESNext",
6
+ "lib": ["ESNext", "DOM", "DOM.Iterable"],
7
+ "jsx": "preserve",
7
8
  "module": "Preserve",
9
+ "moduleDetection": "force",
8
10
  "moduleResolution": "Bundler",
9
- "esModuleInterop": true,
11
+ "allowImportingTsExtensions": true,
10
12
  "resolveJsonModule": true,
11
- "moduleDetection": "force",
12
- "jsx": "preserve",
13
13
  "allowJs": true,
14
14
  "noEmit": true,
15
- "allowImportingTsExtensions": true,
16
- "skipLibCheck": true,
15
+ "allowSyntheticDefaultImports": true,
16
+ "esModuleInterop": true,
17
17
  "forceConsistentCasingInFileNames": true,
18
- "allowSyntheticDefaultImports": true
18
+ "skipLibCheck": true
19
19
  }
20
20
  }
@@ -4,12 +4,12 @@
4
4
  "extends": "./recommended.json",
5
5
  "compilerOptions": {
6
6
  "checkJs": true,
7
+ "isolatedModules": true,
8
+ "verbatimModuleSyntax": true,
7
9
  "strict": true,
8
- "noFallthroughCasesInSwitch": true,
9
10
  "noUnusedLocals": true,
10
11
  "noUnusedParameters": true,
11
- "noPropertyAccessFromIndexSignature": true,
12
- "isolatedModules": true,
13
- "verbatimModuleSyntax": true
12
+ "noFallthroughCasesInSwitch": true,
13
+ "noPropertyAccessFromIndexSignature": true
14
14
  }
15
15
  }
@@ -3,12 +3,13 @@
3
3
  "description": "Stricter than strict",
4
4
  "extends": "./strict.json",
5
5
  "compilerOptions": {
6
+ "strictNullChecks": true,
7
+ "strictFunctionTypes": true,
8
+ "strictPropertyInitialization": true,
6
9
  "alwaysStrict": true,
7
10
  "noImplicitAny": true,
8
- "noImplicitReturns": true,
9
11
  "noImplicitThis": true,
10
- "strictFunctionTypes": true,
11
- "strictNullChecks": true,
12
- "strictPropertyInitialization": true
12
+ "noImplicitReturns": true,
13
+ "noImplicitOverride": true
13
14
  }
14
15
  }