diff --git a/packages/create-angular/scripts/create.js b/packages/create-angular/scripts/create.js index 2470ebc..a861551 100755 --- a/packages/create-angular/scripts/create.js +++ b/packages/create-angular/scripts/create.js @@ -1,7 +1,7 @@ #!/usr/bin/env node import { resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { createProject } from '@carto/create-common'; +import { createProjectFromPrompt } from '@carto/create-common'; import meow from 'meow'; const cli = meow( @@ -18,4 +18,4 @@ const cli = meow( const templateDir = resolve(fileURLToPath(import.meta.url), '../..'); const targetDir = cli.input.at(0) || '.'; -await createProject(templateDir, targetDir); +await createProjectFromPrompt(templateDir, targetDir); diff --git a/packages/create-react/scripts/create.js b/packages/create-react/scripts/create.js index a8cc49d..868395f 100755 --- a/packages/create-react/scripts/create.js +++ b/packages/create-react/scripts/create.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -import { resolve } from "node:path"; -import { fileURLToPath } from "node:url"; -import { createProject } from "@carto/create-common"; -import meow from "meow"; +import { resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createProjectFromPrompt } from '@carto/create-common'; +import meow from 'meow'; const cli = meow( ` @@ -16,6 +16,6 @@ const cli = meow( }, ); -const templateDir = resolve(fileURLToPath(import.meta.url), "../.."); -const targetDir = cli.input.at(0) || "."; -await createProject(templateDir, targetDir); +const templateDir = resolve(fileURLToPath(import.meta.url), '../..'); +const targetDir = cli.input.at(0) || '.'; +await createProjectFromPrompt(templateDir, targetDir); diff --git a/packages/create-vue/scripts/create.js b/packages/create-vue/scripts/create.js index eb2e52e..837f5e2 100755 --- a/packages/create-vue/scripts/create.js +++ b/packages/create-vue/scripts/create.js @@ -1,7 +1,7 @@ #!/usr/bin/env node import { resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { createProject } from '@carto/create-common'; +import { createProjectFromPrompt } from '@carto/create-common'; import meow from 'meow'; const cli = meow( @@ -18,4 +18,4 @@ const cli = meow( const templateDir = resolve(fileURLToPath(import.meta.url), '../..'); const targetDir = cli.input.at(0) || '.'; -await createProject(templateDir, targetDir); +await createProjectFromPrompt(templateDir, targetDir);