diff --git a/.changeset/ten-cats-swim.md b/.changeset/ten-cats-swim.md new file mode 100644 index 00000000..e3db2bde --- /dev/null +++ b/.changeset/ten-cats-swim.md @@ -0,0 +1,6 @@ +--- +"@pantheon-systems/pcc-cli": minor +--- + +No longer download turbo.json when initializing a new project from the starter +kit. diff --git a/packages/cli/package.json b/packages/cli/package.json index 261eeb2e..d7db3563 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -7,7 +7,6 @@ "license": "MIT", "keywords": [ "pcc", - "gatsby", "nextjs", "react", "pantheon" diff --git a/packages/cli/src/cli/index.ts b/packages/cli/src/cli/index.ts index dcb2a8fc..fbc2a138 100755 --- a/packages/cli/src/cli/index.ts +++ b/packages/cli/src/cli/index.ts @@ -92,7 +92,7 @@ yargs(hideBin(process.argv)) .option("template", { describe: "Template from which files should be copied.", type: "string", - choices: ["nextjs", "gatsby", "vue"], + choices: ["nextjs"], default: "nextjs", demandOption: true, }) diff --git a/packages/cli/src/lib/downloadTemplateDirectory.ts b/packages/cli/src/lib/downloadTemplateDirectory.ts index 1797af2d..58085d25 100644 --- a/packages/cli/src/lib/downloadTemplateDirectory.ts +++ b/packages/cli/src/lib/downloadTemplateDirectory.ts @@ -23,7 +23,10 @@ export async function downloadTemplateDirectory( printVerbose?: boolean, ) { try { - const files = await fetchFiles(directory, printVerbose); + // Fetch files but ignore certain ones. + const files = (await fetchFiles(directory, printVerbose)).filter( + (file) => !["turbo.json"].includes(file.path), + ); await Promise.all(files.map((file) => output(file, outputDirectory)));