@sanity/pkg-utils 6.6.0 → 6.6.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/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.6.0";
6
+ var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "6.6.2";
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/dist/index.cjs CHANGED
@@ -13,6 +13,7 @@ exports.loadPkg = consoleSpy.loadPkg;
13
13
  exports.loadPkgWithReporting = consoleSpy.loadPkgWithReporting;
14
14
  exports.loadTSConfig = consoleSpy.loadTSConfig;
15
15
  exports.parseExports = consoleSpy.parseExports;
16
+ exports.parseStrictOptions = consoleSpy.parseStrictOptions;
16
17
  exports.pkgExtMap = consoleSpy.pkgExtMap;
17
18
  exports.resolveConfigProperty = consoleSpy.resolveConfigProperty;
18
19
  exports.strictOptions = consoleSpy.strictOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/node/core/config/defineConfig.ts"],"sourcesContent":["import type {PkgConfigOptions} from './types'\n\n/** @public */\nexport function defineConfig<const T extends PkgConfigOptions>(configOptions: T): T {\n return configOptions\n}\n"],"names":[],"mappings":";;;AAGO,SAAS,aAA+C,eAAqB;AAC3E,SAAA;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/node/core/config/defineConfig.ts"],"sourcesContent":["import type {PkgConfigOptions} from './types'\n\n/** @public */\nexport function defineConfig<const T extends PkgConfigOptions>(configOptions: T): T {\n return configOptions\n}\n"],"names":[],"mappings":";;;AAGO,SAAS,aAA+C,eAAqB;AAC3E,SAAA;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.cts CHANGED
@@ -273,6 +273,9 @@ export declare function parseExports(options: {
273
273
  _path: string
274
274
  })[]
275
275
 
276
+ /** @internal */
277
+ export declare function parseStrictOptions(input: unknown): InferredStrictOptions
278
+
276
279
  /** @public */
277
280
  export declare interface PkgBundle {
278
281
  source: string
package/dist/index.d.ts CHANGED
@@ -273,6 +273,9 @@ export declare function parseExports(options: {
273
273
  _path: string
274
274
  })[]
275
275
 
276
+ /** @internal */
277
+ export declare function parseStrictOptions(input: unknown): InferredStrictOptions
278
+
276
279
  /** @public */
277
280
  export declare interface PkgBundle {
278
281
  source: string
package/dist/index.js CHANGED
@@ -840,7 +840,7 @@ async function buildTypes(options2) {
840
840
  } : {}
841
841
  }, program = ts.createProgram(tsconfig.fileNames, compilerOptions), emitResult = program.emit(), allDiagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
842
842
  for (const diagnostic of allDiagnostics)
843
- diagnostic.code !== 2307 && printDiagnostic({ cwd, logger, diagnostic });
843
+ printDiagnostic({ cwd, logger, diagnostic });
844
844
  if (emitResult.emitSkipped && allDiagnostics.filter((diag) => diag.category === ts.DiagnosticCategory.Error).length && strict)
845
845
  throw new Error("failed to compile TypeScript definitions");
846
846
  }
@@ -21613,6 +21613,7 @@ export {
21613
21613
  loadPkgWithReporting,
21614
21614
  loadTSConfig,
21615
21615
  parseExports,
21616
+ parseStrictOptions,
21616
21617
  pkgExtMap,
21617
21618
  resolveBuildTasks,
21618
21619
  resolveConfigProperty,