From c62c27e4ce68f334b670b6fcd15d226338780071 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Fri, 4 Oct 2024 07:20:00 +0200 Subject: [PATCH] Fix distribution --- package.json | 2 +- scripts/build.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4554064..e20a1d4 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "types": "dist/index.d.ts", "exports": { ".": "./dist/index.js", - "./lib/config/parseParams": "./dist/*.js" + "./lib/config/parseParams": "./dist/lib/config/parseParams.js" }, "repository": { "type": "git", diff --git a/scripts/build.ts b/scripts/build.ts index 6959068..df23f5b 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -98,6 +98,10 @@ transformCodebase({ return { "modifiedSourceCode": sourceCode }; } + if (filePath.endsWith("parseParams.js")) { + return { "modifiedSourceCode": sourceCode }; + } + return undefined; } });