@sanity/pkg-utils 6.6.1 → 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.1";
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.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
  }