Skip to content

Commit add61ac

Browse files
committed
feat(compiler): add support for workspace
1 parent d7127f1 commit add61ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/compiler/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ class LesyCompiler {
8181

8282
return {
8383
parse: (argv: string[]) =>
84-
lesy.then((l: typeof LesyCoreClass) =>
85-
l.run(argv || process.argv.slice(2)),
86-
),
84+
lesy.then((l: typeof LesyCoreClass) => {
85+
if (global["lesyWorkspace"]) return l;
86+
l.run(argv || process.argv.slice(2));
87+
}),
8788
};
8889
}
8990

0 commit comments

Comments
 (0)