Skip to content

Commit 3869f9a

Browse files
committed
Enforce constraints for packages in packages folder only.
1 parent 3e23799 commit 3869f9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

yarn.config.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ async function enforceCompilerMeta({ Yarn }) {
1515

1616
for (const workspace of Yarn.workspaces()) {
1717
const { ident } = workspace.pkg;
18-
if (ident === "rescript" || ident.startsWith("@rescript/")) {
18+
if (
19+
workspace.cwd.startsWith("packages") &&
20+
(ident === "rescript" || ident.startsWith("@rescript/"))
21+
) {
1922
workspace.set("version", EXPECTED_VERSION);
2023
workspace.set("homepage", "https://rescript-lang.org");
2124
workspace.set("bugs", "https://github.com/rescript-lang/rescript/issues");

0 commit comments

Comments
 (0)