create-payload-app
Advanced tools
Comparing version 3.16.0 to 3.16.1-canary.9004205
@@ -42,2 +42,3 @@ import fs from 'fs-extra'; | ||
const { cliArgs, databaseType, databaseUri, payloadSecret, projectDir, template } = args; | ||
const debugFlag = cliArgs['--debug']; | ||
if (cliArgs['--dry-run']) { | ||
@@ -60,3 +61,5 @@ debug(`DRY RUN: Environment files managed`); | ||
await fs.writeFile(envExamplePath, updatedExampleContents.trimEnd() + '\n'); | ||
debug(`.env.example file successfully updated`); | ||
if (debugFlag) { | ||
debug(`.env.example file successfully updated`); | ||
} | ||
} else { | ||
@@ -70,3 +73,5 @@ updatedExampleContents = `# Added by Payload\nDATABASE_URI=your-connection-string-here\nPAYLOAD_SECRET=YOUR_SECRET_HERE\n`; | ||
await fs.writeFile(envPath, `# Added by Payload\n${envContent.trimEnd()}\n`); | ||
debug(`.env file successfully created or updated`); | ||
if (debugFlag) { | ||
debug(`.env file successfully created or updated`); | ||
} | ||
} catch (err) { | ||
@@ -73,0 +78,0 @@ error('Unable to manage environment files'); |
@@ -29,3 +29,3 @@ /* eslint-disable no-console */ import chalk from 'chalk'; | ||
-t {underline template_name} Choose specific template | ||
-e {underline example_name} Choose specific exmaple | ||
-e {underline example_name} Choose specific example | ||
@@ -32,0 +32,0 @@ {dim Available templates: ${formatTemplates(validTemplates)}} |
{ | ||
"name": "create-payload-app", | ||
"version": "3.16.0", | ||
"version": "3.16.1-canary.9004205", | ||
"homepage": "https://payloadcms.com", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
267670
2650
1