Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/test-template
Browse files Browse the repository at this point in the history
  • Loading branch information
Tedezed committed Sep 30, 2024
2 parents 029605d + 1ff5e8d commit 1d90f33
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/create-angular/scripts/create.js
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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);
14 changes: 7 additions & 7 deletions packages/create-react/scripts/create.js
Original file line number Diff line number Diff line change
@@ -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(
`
Expand All @@ -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);
4 changes: 2 additions & 2 deletions packages/create-vue/scripts/create.js
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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);

0 comments on commit 1d90f33

Please sign in to comment.