This PR introduces a few changes to improve turbopack compatibility and ensure e2e tests pass with turbopack enabled ## Changes to improve turbopack compatibility - Use correct sideEffects configuration to fix scss issues - Import scss directly instead of duplicating our scss rules - Fix some scss rules that are not supported by turbopack - Bump Next.js and all other dependencies used to build payload ## Changes to get tests to pass For an unknown reason, flaky tests flake a lot more often in turbopack. This PR does the following to get them to pass: - add more `wait`s - fix actual flakes by ensuring previous operations are properly awaited ## Blocking turbopack bugs - [X] https://github.com/vercel/next.js/issues/76464 - Fix PR: https://github.com/vercel/next.js/pull/76545 - Once fixed: change `"sideEffectsDisabled":` back to `"sideEffects":` ## Non-blocking turbopack bugs - [ ] https://github.com/vercel/next.js/issues/76956 ## Related PRs https://github.com/payloadcms/payload/pull/12653 https://github.com/payloadcms/payload/pull/12652
86 lines
2.2 KiB
JSON
86 lines
2.2 KiB
JSON
{
|
|
"name": "create-payload-app",
|
|
"version": "3.40.0",
|
|
"homepage": "https://payloadcms.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/create-payload-app"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
"maintainers": [
|
|
{
|
|
"name": "Payload",
|
|
"email": "info@payloadcms.com",
|
|
"url": "https://payloadcms.com"
|
|
}
|
|
],
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"exports": {
|
|
"./types": {
|
|
"import": "./src/types.ts",
|
|
"require": "./src/types.ts"
|
|
},
|
|
"./commands": {
|
|
"import": "./src/lib/init-next.ts",
|
|
"require": "./src/lib/init-next.ts",
|
|
"types": "./src/lib/init-next.ts"
|
|
},
|
|
"./lib/*": {
|
|
"import": "./src/lib/*",
|
|
"require": "./src/lib/*",
|
|
"types": "./src/lib/*"
|
|
},
|
|
"./utils/*": {
|
|
"import": "./src/utils/*",
|
|
"require": "./src/utils/*",
|
|
"types": "./src/utils/*"
|
|
}
|
|
},
|
|
"bin": {
|
|
"create-payload-app": "bin/cli.js"
|
|
},
|
|
"files": [
|
|
"package.json",
|
|
"dist",
|
|
"bin"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm pack-template-files && pnpm typecheck && pnpm build:swc",
|
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
"clean": "rimraf -g {dist,*.tsbuildinfo}",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"pack-template-files": "node --no-deprecation --import @swc-node/register/esm-register src/scripts/pack-template-files.ts",
|
|
"prepublishOnly": "pnpm clean && pnpm build",
|
|
"test": "jest",
|
|
"typecheck": "tsc"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^0.7.0",
|
|
"@sindresorhus/slugify": "^1.1.0",
|
|
"@swc/core": "1.11.29",
|
|
"arg": "^5.0.0",
|
|
"chalk": "^4.1.0",
|
|
"comment-json": "^4.2.3",
|
|
"esprima-next": "^6.0.3",
|
|
"execa": "^5.0.0",
|
|
"figures": "^6.1.0",
|
|
"fs-extra": "^9.0.1",
|
|
"globby": "11.1.0",
|
|
"tar": "^7.4.3",
|
|
"terminal-link": "^2.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/esprima": "^4.0.6",
|
|
"@types/fs-extra": "^9.0.12",
|
|
"@types/jest": "29.5.12",
|
|
"@types/node": "22.5.4"
|
|
},
|
|
"engines": {
|
|
"node": "^18.20.2 || >=20.9.0"
|
|
}
|
|
}
|