diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5647bf6..5933905 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: run: | npm config set //registry.npmjs.org/:_authToken '${NPM_TOKEN}' [[ "$GITHUB_REF_NAME" =~ - ]] && npm config set tag=next - npm pkg set version="$GITHUB_REF_NAME" + npm pkg set version="${GITHUB_REF_NAME/v/}" npm publish --ignore-scripts env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 423def4..aed85e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deno2node", - "version": "1.10.0", + "version": "1.10.1", "description": "`tsc` replacement for transpiling Deno libraries to run on Node.js.", "type": "module", "bin": { diff --git a/src/_transformations/shim.ts b/src/_transformations/shim.ts index eda351e..f22904e 100644 --- a/src/_transformations/shim.ts +++ b/src/_transformations/shim.ts @@ -28,7 +28,9 @@ const isNodeSpecific = (sourceFile: SourceFile) => export function shimEverything(ctx: Context) { if (!ctx.config.shim) return; console.time("Shimming"); - const shim = shimFile(ctx.project.addSourceFileAtPath(ctx.config.shim)); + const shim = shimFile( + ctx.project.addSourceFileAtPath(ctx.resolve(ctx.config.shim)), + ); for (const sourceFile of ctx.project.getSourceFiles()) { if (!isNodeSpecific(sourceFile)) { shim(sourceFile);