Skip to content

Commit 95586c2

Browse files
committed
Add a constraint to prevent js-slang from being resolved to something weird
1 parent d562ab0 commit 95586c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

yarn.config.cjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ module.exports = defineConfig({
1212

1313
// Make sure that if the dependency is defined in the root workspace
1414
// that all child workspaces use the same version of that dependency
15-
const [mainWorkspace] = Yarn.workspaces({ ident: name });
15+
const [rootWorkspace] = Yarn.workspaces({ ident: name });
1616

17-
for (const workspaceDep of Yarn.dependencies({ workspace: mainWorkspace })) {
17+
// There should not be any resolutions value for js-slang,
18+
// which might be present if you linked js-slang to a local copy
19+
rootWorkspace.set('resolutions.js-slang', undefined);
20+
21+
for (const workspaceDep of Yarn.dependencies({ workspace: rootWorkspace })) {
1822
if (workspaceDep.type === 'peerDependencies') continue;
1923

2024
for (const otherDep of Yarn.dependencies({ ident: workspaceDep.ident })) {

0 commit comments

Comments
 (0)