create-payload-app
Advanced tools
Comparing version 3.0.0-beta.126 to 3.0.0-beta.127
import { error, info } from '../utils/log.js'; | ||
import { PACKAGE_VERSION } from './constants.js'; | ||
export function validateTemplate(templateName) { | ||
@@ -17,3 +18,3 @@ const validTemplates = getValidTemplates(); | ||
description: 'Blank 3.0 Template', | ||
url: 'https://github.com/payloadcms/payload/templates/blank#beta' | ||
url: `https://github.com/payloadcms/payload/templates/blank#v${PACKAGE_VERSION}` | ||
}, | ||
@@ -24,3 +25,3 @@ { | ||
description: 'Website Template', | ||
url: 'https://github.com/payloadcms/payload/templates/website#beta' | ||
url: `https://github.com/payloadcms/payload/templates/website#v${PACKAGE_VERSION}` | ||
} | ||
@@ -27,0 +28,0 @@ ]; |
@@ -8,2 +8,3 @@ import * as p from '@clack/prompts'; | ||
import { configurePayloadConfig } from './lib/configure-payload-config.js'; | ||
import { PACKAGE_VERSION } from './lib/constants.js'; | ||
import { createProject } from './lib/create-project.js'; | ||
@@ -19,3 +20,3 @@ import { generateSecret } from './lib/generate-secret.js'; | ||
import { writeEnvFile } from './lib/write-env-file.js'; | ||
import { error, info } from './utils/log.js'; | ||
import { debug, error, info } from './utils/log.js'; | ||
import { feedbackOutro, helpMessage, moveMessage, successfulNextInit, successMessage } from './utils/messages.js'; | ||
@@ -65,2 +66,3 @@ export class Main { | ||
} | ||
const debugFlag = this.args['--debug']; | ||
// eslint-disable-next-line no-console | ||
@@ -162,2 +164,5 @@ console.log('\n'); | ||
} | ||
if (debugFlag) { | ||
debug(`Using templates from git tag: ${PACKAGE_VERSION}`); | ||
} | ||
const validTemplates = getValidTemplates(); | ||
@@ -164,0 +169,0 @@ const template = await parseTemplate(this.args, validTemplates); |
{ | ||
"name": "create-payload-app", | ||
"version": "3.0.0-beta.126", | ||
"version": "3.0.0-beta.127", | ||
"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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
236970
120
2385
17