Skip to content

Commit f473fc6

Browse files
committed
🐞 fix: 编译区块物料,只编译 src 文件夹
1 parent 9110a93 commit f473fc6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "lowcode",
44
"description": "lowcode tool, support ChatGPT",
55
"author": "wjkang <[email protected]>",
6-
"version": "1.4.5",
6+
"version": "1.4.6",
77
"icon": "asset/icon.png",
88
"publisher": "wjkang",
99
"repository": "https://github.com/lowcoding/lowcode-vscode",

src/utils/generate.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ export const genCodeByBlock = async (data: {
8383
...extendModel,
8484
};
8585
}
86-
await renderEjsTemplates(data.model, tempWorkPath, excludeCompile);
86+
await renderEjsTemplates(
87+
data.model,
88+
path.join(tempWorkPath, 'src'),
89+
excludeCompile,
90+
);
8791
await hook.afterCompile(context);
8892
fs.copySync(
8993
path.join(tempWorkPath, 'src'),

0 commit comments

Comments
 (0)