@sanity/pkg-utils 6.6.3 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "6.6.3",
3
+ "version": "6.6.4-canary.0",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -136,7 +136,7 @@
136
136
  "typescript": "5.4.5",
137
137
  "vitest": "^1.5.0",
138
138
  "vitest-github-actions-reporter": "^0.11.1",
139
- "@sanity/pkg-utils": "6.6.3"
139
+ "@sanity/pkg-utils": "6.6.4-canary.0"
140
140
  },
141
141
  "peerDependencies": {
142
142
  "typescript": "5.4.x"
@@ -67,6 +67,7 @@ export function validatePkg(input: unknown): PackageJSON {
67
67
 
68
68
  const invalidKey = Object.keys(input as PackageJSON).find((key) => {
69
69
  const needle = key.toUpperCase()
70
+
70
71
  return typoMap.has(needle) ? typoMap.get(needle) !== key : false
71
72
  })
72
73
 
@@ -20,19 +20,6 @@ export async function buildTypes(options: {
20
20
  emitDeclarationOnly: true,
21
21
  noEmit: false,
22
22
  outDir,
23
- /*
24
- // Support the new `module: 'preserve'` option in TypeScript 5.4
25
- ...(tsconfig.options.module === ts.ModuleKind.Preserve
26
- ? {
27
- // Set the equivalent options to `module: 'Preserve'`
28
- // 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
29
- module: ts.ModuleKind.ESNext,
30
- moduleResolution: ts.ModuleResolutionKind.Bundler,
31
- esModuleInterop: true,
32
- resolveJsonModule: true,
33
- }
34
- : {}),
35
- // */
36
23
  }
37
24
 
38
25
  const program = ts.createProgram(tsconfig.fileNames, compilerOptions)