Skip to content

Commit 4865c13

Browse files
committed
Enforce constraints for packages in packages folder only.
1 parent 72e3c82 commit 4865c13

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
@@ -18,7 +18,10 @@ async function enforceCompilerMeta({ Yarn }) {
1818

1919
for (const workspace of Yarn.workspaces()) {
2020
const { ident } = workspace.pkg;
21-
if (ident === "rescript" || ident.startsWith("@rescript/")) {
21+
if (
22+
workspace.cwd.startsWith("packages") &&
23+
(ident === "rescript" || ident.startsWith("@rescript/"))
24+
) {
2225
workspace.set("version", EXPECTED_VERSION);
2326
workspace.set("homepage", "https://rescript-lang.org");
2427
workspace.set("bugs", "https://github.com/rescript-lang/rescript/issues");

0 commit comments

Comments
 (0)