@bunup/dts 0.14.28 → 0.14.30

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ var TOKENIZE_RE = /(\s+|\/\/.*?(?:\n|$)|\/\*[\s\S]*?\*\/|[a-zA-Z_$][a-zA-Z0-9_$]
22
22
  var CAPITAL_LETTER_RE = /[A-Z]/;
23
23
  var JS_RE = /\.[cm]?jsx?$/;
24
24
  var TS_RE = /\.[cm]?tsx?$|\.d\.[cm]?ts$/;
25
- var EXTENSION_REGEX = /\.(d\.(ts|cts|mts)|[cm]?[jt]s)$/;
25
+ var EXTENSION_REGEX = /\.(d\.(ts|cts|mts)|[cm]?[jt]sx?)$/;
26
26
  var NODE_MODULES_RE = /node_modules/;
27
27
 
28
28
  // src/ast.ts
@@ -477,6 +477,8 @@ async function runTypescriptCompiler(root, tsgo, tsconfig) {
477
477
  "false",
478
478
  "--declaration",
479
479
  "--emitDeclarationOnly",
480
+ "--isolatedDeclarations",
481
+ "false",
480
482
  ...tsconfig ? ["-p", tsconfig] : [],
481
483
  "--outDir",
482
484
  dist,
@@ -484,7 +486,11 @@ async function runTypescriptCompiler(root, tsgo, tsconfig) {
484
486
  root,
485
487
  "--noCheck"
486
488
  ]);
487
- await proc.exited;
489
+ const exitCode = await proc.exited;
490
+ if (exitCode !== 0) {
491
+ const stderr = await new Response(proc.stdout).text();
492
+ throw new Error(stderr || `TypeScript compiler failed with exit code ${exitCode}`);
493
+ }
488
494
  return dist;
489
495
  }
490
496
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunup/dts",
3
- "version": "0.14.28",
3
+ "version": "0.14.30",
4
4
  "description": "An extremely fast TypeScript declaration bundler built on Bun's native bundler.",
5
5
  "homepage": "https://github.com/bunup/dts#readme",
6
6
  "bugs": {
@@ -16,7 +16,6 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@babel/parser": "^7.28.4",
19
- "@typescript/native-preview": "^7.0.0-dev.20251016.1",
20
19
  "coffi": "^0.1.37",
21
20
  "oxc-minify": "^0.93.0",
22
21
  "oxc-resolver": "^11.9.0",
@@ -40,8 +39,9 @@
40
39
  "devDependencies": {
41
40
  "@biomejs/biome": "^2.2.6",
42
41
  "@types/bun": "^1.3.0",
42
+ "@typescript/native-preview": "^7.0.0-dev.20251019.1",
43
43
  "bumpp": "^10.3.1",
44
- "bunup": "^0.14.21",
44
+ "bunup": "^0.15.4",
45
45
  "simple-git-hooks": "^2.13.1",
46
46
  "typescript": "^5.9.3"
47
47
  },