@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "6.6.1",
3
+ "version": "6.6.3",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -92,7 +92,7 @@
92
92
  "pretty-bytes": "^5.6.0",
93
93
  "prompts": "^2.4.2",
94
94
  "rimraf": "^4.4.1",
95
- "rollup": "^4.14.1",
95
+ "rollup": "^4.14.2",
96
96
  "rollup-plugin-esbuild": "^6.1.1",
97
97
  "rxjs": "^7.8.1",
98
98
  "treeify": "^1.1.0",
@@ -124,7 +124,7 @@
124
124
  "eslint-config-prettier": "^9.1.0",
125
125
  "eslint-plugin-import": "^2.29.1",
126
126
  "eslint-plugin-prettier": "^5.1.3",
127
- "eslint-plugin-simple-import-sort": "12.0.0",
127
+ "eslint-plugin-simple-import-sort": "12.1.0",
128
128
  "husky": "^8.0.3",
129
129
  "lint-staged": "^15.0.2",
130
130
  "npm-run-all2": "^6.1.2",
@@ -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.1"
139
+ "@sanity/pkg-utils": "6.6.3"
140
140
  },
141
141
  "peerDependencies": {
142
142
  "typescript": "5.4.x"
@@ -20,6 +20,7 @@ export async function buildTypes(options: {
20
20
  emitDeclarationOnly: true,
21
21
  noEmit: false,
22
22
  outDir,
23
+ /*
23
24
  // Support the new `module: 'preserve'` option in TypeScript 5.4
24
25
  ...(tsconfig.options.module === ts.ModuleKind.Preserve
25
26
  ? {
@@ -31,6 +32,7 @@ export async function buildTypes(options: {
31
32
  resolveJsonModule: true,
32
33
  }
33
34
  : {}),
35
+ // */
34
36
  }
35
37
 
36
38
  const program = ts.createProgram(tsconfig.fileNames, compilerOptions)
@@ -40,11 +42,7 @@ export async function buildTypes(options: {
40
42
  const allDiagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics)
41
43
 
42
44
  for (const diagnostic of allDiagnostics) {
43
- // @TODO match the import with known export paths
44
- // Ignore TS2307 errors as they'll be captured elsewhere if they're actually a problem
45
- if (diagnostic.code !== 2307) {
46
- printDiagnostic({cwd, logger, diagnostic})
47
- }
45
+ printDiagnostic({cwd, logger, diagnostic})
48
46
  }
49
47
 
50
48
  if (emitResult.emitSkipped) {