Skip to content

Commit eb05fc9

Browse files
authored
fix(lesy-plugin-pilot): lookup for localState when loading workspace projects
1 parent f71b6b6 commit eb05fc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compiler/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class LesyCompiler {
8888
if (this.opts.loadDefaultPlugins) {
8989
appData.plugins = [
9090
...this.defaultPlugins.map((p: string) => require.resolve(p)),
91-
...appData.plugins,
91+
...(appData.plugins || []),
9292
];
9393
}
9494
const config = this.defaultConfig;

packages/plugins/lesy-plugin-pilot/src/pilot.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class PilotCommand {
6868
const projectsPaths = await this.fetchProjectPaths(); // todo: remove same project dup
6969
for (let i = 0; i < projectsPaths.length; i = i + 1) {
7070
const p = await require(projectsPaths[i]).default;
71-
global.lesyWorkspace[p.feature.pkg.name] = p.localState;
71+
global.lesyWorkspace[p.localState.feature.pkg.name] = p.localState;
7272
}
7373
return global.lesyWorkspace;
7474
}

0 commit comments

Comments
 (0)