Skip to content

Commit

Permalink
fix(test): update package.json generate script to work with override …
Browse files Browse the repository at this point in the history
…queries
  • Loading branch information
dominikg committed Jul 8, 2024
1 parent a42130f commit 2136e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/create-svelte/test/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const workspace = {
private: true,
version: '0.0.0',
pnpm: { overrides },
devDependencies: overrides
// convert override query "@foo/bar@>x <y" to package name @foo/bar
devDependencies: Object.fromEntries(Object.entries(overrides).map(([query,range])=>([query.replace(/(@?[^@]+)@.*$/,'$1'),range])))
};

fs.writeFileSync(
Expand Down

0 comments on commit 2136e0d

Please sign in to comment.