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
93 lines
2.4 KiB
JSON
93 lines
2.4 KiB
JSON
{
|
|
"name": "@payloadcms/graphql",
|
|
"version": "3.40.0",
|
|
"homepage": "https://payloadcms.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/graphql"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
"maintainers": [
|
|
{
|
|
"name": "Payload",
|
|
"email": "info@payloadcms.com",
|
|
"url": "https://payloadcms.com"
|
|
}
|
|
],
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./types": {
|
|
"import": "./src/exports/types.ts",
|
|
"types": "./src/exports/types.ts",
|
|
"default": "./src/exports/types.ts"
|
|
},
|
|
"./utilities": {
|
|
"import": "./src/exports/utilities.ts",
|
|
"types": "./src/exports/utilities.ts",
|
|
"default": "./src/exports/utilities.ts"
|
|
}
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"bin": {
|
|
"payload-graphql": "bin.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm build:types && pnpm build:swc",
|
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
"clean": "rimraf -g {dist,*.tsbuildinfo}",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"prepublishOnly": "pnpm clean && pnpm turbo build"
|
|
},
|
|
"dependencies": {
|
|
"graphql-scalars": "1.22.2",
|
|
"pluralize": "8.0.0",
|
|
"ts-essentials": "10.0.3",
|
|
"tsx": "4.19.2"
|
|
},
|
|
"devDependencies": {
|
|
"@payloadcms/eslint-config": "workspace:*",
|
|
"@types/pluralize": "^0.0.33",
|
|
"graphql-http": "^1.22.0",
|
|
"payload": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"graphql": "^16.8.1",
|
|
"payload": "workspace:*"
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./types": {
|
|
"import": "./dist/exports/types.js",
|
|
"types": "./dist/exports/types.d.ts",
|
|
"default": "./dist/exports/types.js"
|
|
},
|
|
"./utilities": {
|
|
"import": "./dist/exports/utilities.js",
|
|
"types": "./dist/exports/utilities.d.ts",
|
|
"default": "./dist/exports/utilities.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
}
|