create-cloudflare 0.0.0-70a54e97 → 0.0.0-775eb3bd

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 +15 -10
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -53155,6 +53155,8 @@ var space = (n = 1) => {
53155
53155
  return hidden("\u200A".repeat(n));
53156
53156
  };
53157
53157
  var logRaw = (msg) => {
53158
+ if (process.env.VITEST)
53159
+ return;
53158
53160
  process.stdout.write(`${msg}
53159
53161
  `);
53160
53162
  };
@@ -59410,7 +59412,7 @@ var Yargs = YargsFactory(esm_default);
59410
59412
  var yargs_default = Yargs;
59411
59413
 
59412
59414
  // package.json
59413
- var version = "0.0.0-70a54e97";
59415
+ var version = "0.0.0-775eb3bd";
59414
59416
 
59415
59417
  // src/common.ts
59416
59418
  var import_fs6 = require("fs");
@@ -59475,10 +59477,11 @@ var runCommand = async (command2, opts = {}) => {
59475
59477
  doneText: opts.doneText,
59476
59478
  promise() {
59477
59479
  const [executable, ...args] = command2;
59480
+ const squelch = opts.silent || process.env.VITEST;
59478
59481
  const cmd = (0, import_cross_spawn.spawn)(executable, [...args], {
59479
59482
  // TODO: ideally inherit stderr, but npm install uses this for warnings
59480
59483
  // stdio: [ioMode, ioMode, "inherit"],
59481
- stdio: opts.silent ? "pipe" : "inherit",
59484
+ stdio: squelch ? "pipe" : "inherit",
59482
59485
  env: {
59483
59486
  ...process.env,
59484
59487
  ...opts.env
@@ -59486,7 +59489,7 @@ var runCommand = async (command2, opts = {}) => {
59486
59489
  cwd: opts.cwd
59487
59490
  });
59488
59491
  let output = ``;
59489
- if (opts.captureOutput ?? opts.silent) {
59492
+ if (opts?.captureOutput ?? squelch) {
59490
59493
  cmd.stdout?.on("data", (data) => {
59491
59494
  output += data;
59492
59495
  });
@@ -59850,7 +59853,7 @@ var chooseAccount = async (ctx) => {
59850
59853
  };
59851
59854
  var printSummary = async (ctx) => {
59852
59855
  const nextSteps = [
59853
- [`Navigate to the new directory`, `cd ${ctx.project.name}`],
59856
+ [`Navigate to the new directory:`, `cd ${ctx.project.name}`],
59854
59857
  [
59855
59858
  `Run the development server`,
59856
59859
  `${npm} run ${ctx.framework?.config.devCommand ?? "start"}`
@@ -60807,12 +60810,14 @@ var runWorkersGenerator = async (args) => {
60807
60810
  await printSummary(ctx);
60808
60811
  };
60809
60812
  async function getTemplate(ctx) {
60810
- ctx.args.ts = await processArgument(ctx.args, "ts", {
60811
- type: "confirm",
60812
- question: "Do you want to use TypeScript?",
60813
- label: "typescript",
60814
- defaultValue: C3_DEFAULTS.ts
60815
- });
60813
+ if (ctx.args.ts === void 0) {
60814
+ ctx.args.ts = await processArgument(ctx.args, "ts", {
60815
+ type: "confirm",
60816
+ question: "Do you want to use TypeScript?",
60817
+ label: "typescript",
60818
+ defaultValue: C3_DEFAULTS.ts
60819
+ });
60820
+ }
60816
60821
  const preexisting = ctx.args.type === "pre-existing";
60817
60822
  const template = preexisting ? "hello-world" : ctx.args.type;
60818
60823
  const path3 = (0, import_path9.resolve)(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "0.0.0-70a54e97",
3
+ "version": "0.0.0-775eb3bd",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",