create-payload-app
Advanced tools
Comparing version
@@ -32,3 +32,3 @@ import { jest } from '@jest/globals'; | ||
'--db': 'mongodb', | ||
'--local-template': 'blank-3.0', | ||
'--local-template': 'blank', | ||
'--no-deps': true | ||
@@ -61,7 +61,7 @@ }; | ||
[ | ||
'blank-3.0', | ||
'blank', | ||
'mongodb' | ||
], | ||
[ | ||
'blank-3.0', | ||
'blank', | ||
'postgres' | ||
@@ -68,0 +68,0 @@ ] |
@@ -132,3 +132,3 @@ import * as p from '@clack/prompts'; | ||
} | ||
const templateFilesPath = dirname.endsWith('dist') || useDistFiles ? path.resolve(dirname, '../..', 'dist/template') : path.resolve(dirname, '../../../../templates/blank-3.0'); | ||
const templateFilesPath = dirname.endsWith('dist') || useDistFiles ? path.resolve(dirname, '../..', 'dist/template') : path.resolve(dirname, '../../../../templates/blank'); | ||
logDebug(`Using template files from: ${templateFilesPath}`); | ||
@@ -135,0 +135,0 @@ if (!fs.existsSync(templateFilesPath)) { |
@@ -17,3 +17,3 @@ import { error, info } from '../utils/log.js'; | ||
description: 'Blank 3.0 Template', | ||
url: 'https://github.com/payloadcms/payload/templates/blank-3.0#beta' | ||
url: 'https://github.com/payloadcms/payload/templates/blank#beta' | ||
}, | ||
@@ -20,0 +20,0 @@ { |
@@ -62,3 +62,3 @@ import execa from 'execa'; | ||
info(`Updating Payload Next.js files...`); | ||
const templateFilesPath = process.env.JEST_WORKER_ID !== undefined ? path.resolve(dirname, '../../../../templates/blank-3.0') : path.resolve(dirname, '../..', 'dist/template'); | ||
const templateFilesPath = process.env.JEST_WORKER_ID !== undefined ? path.resolve(dirname, '../../../../templates/blank') : path.resolve(dirname, '../..', 'dist/template'); | ||
const templateSrcDir = path.resolve(templateFilesPath, 'src/app/(payload)'); | ||
@@ -65,0 +65,0 @@ copyRecursiveSync(templateSrcDir, path.resolve(projectDir, appDetails.isSrcDir ? 'src/app' : 'app', '(payload)')); |
@@ -1,2 +0,2 @@ | ||
import swc from '@swc/core'; | ||
import { parse } from '@swc/core'; | ||
import chalk from 'chalk'; | ||
@@ -176,5 +176,5 @@ import { Syntax, parseModule } from 'esprima-next'; | ||
*/ if (process.env.NODE_ENV === 'test') { | ||
parseOffset = (await swc.parse('')).span.end; | ||
parseOffset = (await parse('')).span.end; | ||
} | ||
const module = await swc.parse(fileContent, { | ||
const module = await parse(fileContent, { | ||
syntax: 'typescript' | ||
@@ -181,0 +181,0 @@ }); |
@@ -10,3 +10,3 @@ import fs from 'fs'; | ||
/** | ||
* Copy the necessary template files from `templates/blank-3.0` to `dist/template` | ||
* Copy the necessary template files from `templates/blank` to `dist/template` | ||
* | ||
@@ -17,3 +17,3 @@ * Eventually, this should be replaced with using tar.x to stream from the git repo | ||
const outputPath = path.resolve(dirname, '../../dist/template'); | ||
const sourceTemplatePath = path.resolve(root, 'templates/blank-3.0'); | ||
const sourceTemplatePath = path.resolve(root, 'templates/blank'); | ||
if (!fs.existsSync(sourceTemplatePath)) { | ||
@@ -27,3 +27,3 @@ throw new Error(`Source path does not exist: ${sourceTemplatePath}`); | ||
} | ||
// Copy the src directory from `templates/blank-3.0` to `dist` | ||
// Copy the src directory from `templates/blank` to `dist` | ||
const srcPath = path.resolve(sourceTemplatePath, 'src'); | ||
@@ -30,0 +30,0 @@ const distSrcPath = path.resolve(outputPath, 'src'); |
@@ -18,2 +18,5 @@ // storage-adapter-import-placeholder | ||
user: Users.slug, | ||
importMap: { | ||
baseDir: path.resolve(dirname), | ||
}, | ||
}, | ||
@@ -20,0 +23,0 @@ collections: [Users, Media], |
{ | ||
"name": "create-payload-app", | ||
"version": "3.0.0-canary.fb81f02", | ||
"version": "3.0.0-canary.ff8c8fd", | ||
"homepage": "https://payloadcms.com", | ||
@@ -44,3 +44,3 @@ "repository": { | ||
"@sindresorhus/slugify": "^1.1.0", | ||
"@swc/core": "^1.6.13", | ||
"@swc/core": "1.7.10", | ||
"arg": "^5.0.0", | ||
@@ -68,3 +68,3 @@ "chalk": "^4.1.0", | ||
"clean": "rimraf {dist,*.tsbuildinfo}", | ||
"pack-template-files": "tsx src/scripts/pack-template-files.ts", | ||
"pack-template-files": "node --no-deprecation --import @swc-node/register/esm-register src/scripts/pack-template-files.ts", | ||
"test": "jest", | ||
@@ -71,0 +71,0 @@ "typecheck": "tsc" |
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
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
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
226886
1.28%112
1.82%2279
6.35%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated