@bunup/dts 0.14.36 → 0.14.43

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 +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -373,7 +373,7 @@ async function fakeJsToDts(fakeJsContent) {
373
373
  const statementText = fakeJsContent.substring(statement.start, statement.end);
374
374
  if (isImportDeclaration(statement) || isExportAllDeclaration(statement) || isReExportStatement(statement)) {
375
375
  if (isImportDeclaration(statement)) {
376
- resultParts.push(statementText.replace(/.(?:mjs|cjs|js)\b/g, ""));
376
+ resultParts.push(statementText.replace(/\.(mjs|cjs|js)\b/g, ""));
377
377
  continue;
378
378
  }
379
379
  resultParts.push(statementText);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunup/dts",
3
- "version": "0.14.36",
3
+ "version": "0.14.43",
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": {