From ca7a7bf2071c4c1bc9f85eee297addd0cd1c7a87 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 8 Dec 2021 11:25:47 +0800 Subject: [PATCH] Update script creating --- doric-cli/src/create.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/doric-cli/src/create.ts b/doric-cli/src/create.ts index 967d0024..7cd46ff3 100644 --- a/doric-cli/src/create.ts +++ b/doric-cli/src/create.ts @@ -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)) {