Update script creating

This commit is contained in:
pengfei.zhou 2021-12-08 11:25:47 +08:00 committed by osborn
parent e740cadcad
commit ca7a7bf207

View File

@ -86,6 +86,7 @@ export async function create(name: string) {
}
await fs.promises.mkdir(name)
console.log(`Create doric project at ${cwd}`);
await shellCopy(path.resolve(cwd, "assets"), path.resolve(targetJSPath, "assets"));
await initJS(cwd, name)
const androidDir = `${cwd}/android`
if (fs.existsSync(androidDir)) {