Skip to content

Commit 961f011

Browse files
committed
Bugfix
1 parent 8f0868a commit 961f011

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

esbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const cjsDeclarationFiles = async (directoryPath: string) => {
5959
return entry.isFile() && entry.name.endsWith('.d.ts');
6060
})
6161
.map(async (file) => {
62-
const name = join(file.path, file.name);
62+
const name = join(file.parentPath, file.name);
6363
const newName = name.slice(0, -2) + 'cts';
6464

6565
const contents = await readFile(name, { encoding: 'utf-8' });

loader.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { register } from 'node:module';
22
import { pathToFileURL } from 'node:url';
33

4-
process.on('uncaughtException', (e) => console.error('Loader error', e));
4+
process.on('uncaughtException', (e) => {
5+
console.error('Loader error', e);
6+
throw e;
7+
});
58
register('ts-node/esm', pathToFileURL('./'));

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apeleghq/esbuild-plugin-inline-js",
3-
"version": "1.1.12",
3+
"version": "1.1.13",
44
"description": "esbuild plugin for inline scripts",
55
"type": "module",
66
"main": "dist/index.cjs",

0 commit comments

Comments
 (0)