Files
payload/tools/scripts/package.json
Alessio Gravili 319d3355de feat: improve turbopack compatibility (#11376)
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
2025-06-02 22:01:07 +00:00

48 lines
1.9 KiB
JSON

{
"name": "@tools/scripts",
"version": "0.0.1",
"description": "Shared scripts for Payload internal tooling",
"keywords": [],
"license": "MIT",
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
"type": "module",
"exports": {
".": {
"import": "./src/index.ts"
}
},
"main": "src/index.ts",
"scripts": {
"build": "tsc --project tsconfig.build.json",
"build-template-with-local-pkgs": "pnpm runts src/build-template-with-local-pkgs.ts",
"gen-templates": "pnpm runts src/generate-template-variations.ts",
"generateTranslations:core": "node --no-deprecation --import @swc-node/register/esm-register src/generateTranslations/core.ts",
"generateTranslations:plugin-import-export": "node --no-deprecation --import @swc-node/register/esm-register src/generateTranslations/plugin-import-export.ts",
"generateTranslations:plugin-multi-tenant": "node --no-deprecation --import @swc-node/register/esm-register src/generateTranslations/plugin-multi-tenant.ts",
"license-check": "pnpm runts src/license-check.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pack-all-to-dest": "pnpm runts src/pack-all-to-dest.ts",
"runts": "cross-env NODE_OPTIONS=--no-deprecation node --no-deprecation --import @swc-node/register/esm-register",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@swc-node/register": "1.10.10",
"@tools/constants": "workspace:*",
"@tools/releaser": "workspace:*",
"chalk": "^4.1.2",
"changelogen": "^0.5.5",
"create-payload-app": "workspace:*",
"csv-stringify": "^6.5.2",
"license-checker": "25.0.1",
"open": "^10.1.0",
"payload": "workspace:*"
},
"devDependencies": {
"@payloadcms/plugin-import-export": "workspace:*",
"@payloadcms/plugin-multi-tenant": "workspace:*",
"@payloadcms/richtext-lexical": "workspace:*",
"@payloadcms/translations": "workspace:*"
}
}