@sanity/pkg-utils 6.6.2 → 6.6.4-canary.0

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,16 +79,7 @@ async function buildTypes(options2) {
79
79
  declarationDir: outDir,
80
80
  emitDeclarationOnly: !0,
81
81
  noEmit: !1,
82
- outDir,
83
- // 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
- } : {}
82
+ outDir
92
83
  }, program = ts__default.default.createProgram(tsconfig.fileNames, compilerOptions), emitResult = program.emit(), allDiagnostics = ts__default.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
93
84
  for (const diagnostic of allDiagnostics)
94
85
  printDiagnostic({ cwd, logger, diagnostic });