@sanity/pkg-utils 6.6.2 → 6.6.3

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.2";
6
+ var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "6.6.3";
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
@@ -828,16 +828,20 @@ async function buildTypes(options2) {
828
828
  declarationDir: outDir,
829
829
  emitDeclarationOnly: !0,
830
830
  noEmit: !1,
831
- outDir,
831
+ outDir
832
+ /*
832
833
  // Support the new `module: 'preserve'` option in TypeScript 5.4
833
- ...tsconfig.options.module === ts.ModuleKind.Preserve ? {
834
- // Set the equivalent options to `module: 'Preserve'`
835
- // https://github.com/microsoft/TypeScript/pull/56785/files?file-filters%5B%5D=.js&file-filters%5B%5D=.json&file-filters%5B%5D=.symbols&file-filters%5B%5D=.ts&file-filters%5B%5D=.types&show-viewed-files=true#diff-31d3c12bafea26bc9e8c8a77920c41af0c593206442add70c45a06c063767445
836
- module: ts.ModuleKind.ESNext,
837
- moduleResolution: ts.ModuleResolutionKind.Bundler,
838
- esModuleInterop: !0,
839
- resolveJsonModule: !0
840
- } : {}
834
+ ...(tsconfig.options.module === ts.ModuleKind.Preserve
835
+ ? {
836
+ // Set the equivalent options to `module: 'Preserve'`
837
+ // https://github.com/microsoft/TypeScript/pull/56785/files?file-filters%5B%5D=.js&file-filters%5B%5D=.json&file-filters%5B%5D=.symbols&file-filters%5B%5D=.ts&file-filters%5B%5D=.types&show-viewed-files=true#diff-31d3c12bafea26bc9e8c8a77920c41af0c593206442add70c45a06c063767445
838
+ module: ts.ModuleKind.ESNext,
839
+ moduleResolution: ts.ModuleResolutionKind.Bundler,
840
+ esModuleInterop: true,
841
+ resolveJsonModule: true,
842
+ }
843
+ : {}),
844
+ // */
841
845
  }, program = ts.createProgram(tsconfig.fileNames, compilerOptions), emitResult = program.emit(), allDiagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
842
846
  for (const diagnostic of allDiagnostics)
843
847
  printDiagnostic({ cwd, logger, diagnostic });