Skip to content

Commit

Permalink
fix: use valid links for local packages in sources zip
Browse files Browse the repository at this point in the history
  • Loading branch information
mezannic committed Oct 3, 2024
1 parent d270250 commit 71c5e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/wxt/e2e/tests/zip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('Zipping', () => {
"flatten": "1.0.3"
},
"resolutions": {
"[email protected]": "file://./.wxt/local_modules/flatten-1.0.3.tgz"
"[email protected]": "file:./.wxt/local_modules/flatten-1.0.3.tgz"
}
}"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/wxt/src/core/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function addOverridesToPackageJson(
};
Object.entries(overrides).forEach(([key, absolutePath]) => {
newPackage[wxt.pm.overridesKey][key] =
'file://./' + normalizePath(path.relative(packageJsonDir, absolutePath));
'file:./' + normalizePath(path.relative(packageJsonDir, absolutePath));
});
return JSON.stringify(newPackage, null, 2);
}

0 comments on commit 71c5e6c

Please sign in to comment.