Skip to content

Commit 07296d3

Browse files
committed
fix(bundle): use fileURLToPath for packageRoot resolution; update version to 1.0.2
1 parent 2052c7a commit 07296d3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/ddb-publisher/scripts/bundle-release.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// eslint-disable no-console
22
import { mkdir, rm, writeFile } from "node:fs/promises";
33
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
45

56
import esbuild from "esbuild";
67

@@ -14,7 +15,7 @@ const { dirname, resolve } = path;
1415
//
1516
// The release workflow tars up the `artifacts/ddb-publish` directory.
1617

17-
const packageRoot = resolve(new URL("..", import.meta.url).pathname);
18+
const packageRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
1819
const repoRoot = resolve(packageRoot, "../..");
1920

2021
const outDir = resolve(packageRoot, "artifacts/ddb-publish");

packages/events/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@
3939
"test:unit": "jest"
4040
},
4141
"types": "dist/index.d.ts",
42-
"version": "1.0.1"
42+
"version": "1.0.2"
4343
}

0 commit comments

Comments
 (0)