Skip to content

Commit

Permalink
Merge branch 'main' into skeleton-as
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh authored Sep 6, 2023
2 parents 9da1a24 + 85a7521 commit 2521b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/createPackageJsonsWithESMPointers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const createPackageJsonsWithESMPointers = async () => {
"package.json"
);

const depth = (packageJsonPath.match(/\//g) || []).length;
const depth = packageJsonPath.split(path.sep).length - 1;
const esmDir = `../`.repeat(depth) + "esm";

const packageJson = {
Expand Down

0 comments on commit 2521b2e

Please sign in to comment.