@sanity/pkg-utils 6.6.1 → 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.
@@ -79,19 +79,23 @@ async function buildTypes(options2) {
79
79
  declarationDir: outDir,
80
80
  emitDeclarationOnly: !0,
81
81
  noEmit: !1,
82
- outDir,
82
+ outDir
83
+ /*
83
84
  // Support the new `module: 'preserve'` option in TypeScript 5.4
84
- ...tsconfig.options.module === ts__default.default.ModuleKind.Preserve ? {
85
- // Set the equivalent options to `module: 'Preserve'`
86
- // 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
87
- module: ts__default.default.ModuleKind.ESNext,
88
- moduleResolution: ts__default.default.ModuleResolutionKind.Bundler,
89
- esModuleInterop: !0,
90
- resolveJsonModule: !0
91
- } : {}
85
+ ...(tsconfig.options.module === ts.ModuleKind.Preserve
86
+ ? {
87
+ // Set the equivalent options to `module: 'Preserve'`
88
+ // 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
89
+ module: ts.ModuleKind.ESNext,
90
+ moduleResolution: ts.ModuleResolutionKind.Bundler,
91
+ esModuleInterop: true,
92
+ resolveJsonModule: true,
93
+ }
94
+ : {}),
95
+ // */
92
96
  }, program = ts__default.default.createProgram(tsconfig.fileNames, compilerOptions), emitResult = program.emit(), allDiagnostics = ts__default.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
93
97
  for (const diagnostic of allDiagnostics)
94
- diagnostic.code !== 2307 && printDiagnostic({ cwd, logger, diagnostic });
98
+ printDiagnostic({ cwd, logger, diagnostic });
95
99
  if (emitResult.emitSkipped && allDiagnostics.filter((diag) => diag.category === ts__default.default.DiagnosticCategory.Error).length && strict)
96
100
  throw new Error("failed to compile TypeScript definitions");
97
101
  }