create-cloudflare 0.0.0-6c5bc704 → 0.0.0-6db2c2a8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +21 -17
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -60106,7 +60106,7 @@ var Yargs = YargsFactory(esm_default);
60106
60106
  var yargs_default = Yargs;
60107
60107
 
60108
60108
  // package.json
60109
- var version = "0.0.0-6c5bc704";
60109
+ var version = "0.0.0-6db2c2a8";
60110
60110
  var devDependencies = {
60111
60111
  "@babel/parser": "^7.21.3",
60112
60112
  "@babel/types": "^7.21.4",
@@ -60371,7 +60371,7 @@ function secondsSince(start) {
60371
60371
  var import_shell_quote = __toESM(require_shell_quote());
60372
60372
 
60373
60373
  // ../wrangler/package.json
60374
- var version2 = "3.18.0";
60374
+ var version2 = "3.20.0";
60375
60375
 
60376
60376
  // src/common.ts
60377
60377
  var { name, npm } = detectPackageManager();
@@ -60549,11 +60549,9 @@ var chooseAccount = async (ctx) => {
60549
60549
  ctx.account = { id: accountId, name: accountName };
60550
60550
  };
60551
60551
  var printSummary = async (ctx) => {
60552
+ const dirRelativePath = (0, import_path5.relative)(ctx.originalCWD, ctx.project.path);
60552
60553
  const nextSteps = [
60553
- [
60554
- `Navigate to the new directory`,
60555
- `cd ${(0, import_path5.relative)(ctx.originalCWD, ctx.project.path)}`
60556
- ],
60554
+ dirRelativePath ? [`Navigate to the new directory`, `cd ${dirRelativePath}`] : [],
60557
60555
  [
60558
60556
  `Run the development server`,
60559
60557
  quoteShellArgs([
@@ -61529,18 +61527,18 @@ var package_default = {
61529
61527
  "additionally it also contains a map that maps frameworks to their respective clis"
61530
61528
  ],
61531
61529
  dependencies: {
61532
- "create-astro": "4.5.1",
61533
- "@angular/create": "17.0.5",
61530
+ "create-astro": "4.5.2",
61531
+ "@angular/create": "17.0.6",
61534
61532
  "create-docusaurus": "3.0.1",
61535
61533
  "create-hono": "0.3.2",
61536
- "create-next-app": "14.0.3",
61537
- "create-qwik": "1.2.19",
61534
+ "create-next-app": "14.0.4",
61535
+ "create-qwik": "1.3.0",
61538
61536
  "create-react-app": "5.0.1",
61539
- "create-remix": "2.3.1",
61537
+ "create-remix": "2.4.0",
61540
61538
  "create-solid": "0.3.10",
61541
- "create-svelte": "5.3.2",
61542
- "create-vue": "3.8.0",
61543
- gatsby: "5.12.11",
61539
+ "create-svelte": "5.3.3",
61540
+ "create-vue": "3.9.0",
61541
+ gatsby: "5.12.12",
61544
61542
  nuxi: "3.10.0"
61545
61543
  },
61546
61544
  frameworkCliMap: {
@@ -62005,7 +62003,11 @@ var runWorkersGenerator = async (args) => {
62005
62003
  originalCWD,
62006
62004
  gitRepoAlreadyExisted: await isInsideGitRepo((0, import_path9.dirname)(path3))
62007
62005
  };
62008
- ctx.args.ts = await processArgument(ctx.args, "ts", {
62006
+ const { preexisting } = await getTemplate(ctx);
62007
+ if (preexisting) {
62008
+ ctx.args.ts = false;
62009
+ }
62010
+ await processArgument(ctx.args, "ts", {
62009
62011
  type: "confirm",
62010
62012
  question: "Do you want to use TypeScript?",
62011
62013
  label: "typescript",
@@ -62022,8 +62024,10 @@ var runWorkersGenerator = async (args) => {
62022
62024
  await installWorkersTypes(ctx);
62023
62025
  await gitCommit(ctx);
62024
62026
  endSection("Dependencies Installed");
62025
- await offerToDeploy(ctx);
62026
- await runDeploy(ctx);
62027
+ if (!preexisting) {
62028
+ await offerToDeploy(ctx);
62029
+ await runDeploy(ctx);
62030
+ }
62027
62031
  await printSummary(ctx);
62028
62032
  };
62029
62033
  async function getTemplate(ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "0.0.0-6c5bc704",
3
+ "version": "0.0.0-6db2c2a8",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -62,8 +62,8 @@
62
62
  "yargs": "^17.7.1",
63
63
  "yarn": "^1.22.19",
64
64
  "@cloudflare/cli": "1.0.0",
65
- "wrangler": "3.18.0",
66
- "@cloudflare/workers-tsconfig": "0.0.0"
65
+ "@cloudflare/workers-tsconfig": "0.0.0",
66
+ "wrangler": "3.20.0"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=18.14.1"