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
152 lines
4.4 KiB
JSON
152 lines
4.4 KiB
JSON
{
|
|
"name": "@payloadcms/plugin-multi-tenant",
|
|
"version": "3.40.0",
|
|
"description": "Multi Tenant plugin for Payload",
|
|
"keywords": [
|
|
"payload",
|
|
"cms",
|
|
"plugin",
|
|
"typescript",
|
|
"react",
|
|
"multi-tenant",
|
|
"nextjs"
|
|
],
|
|
"sideEffects": [
|
|
"*.scss",
|
|
"*.css"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/payloadcms/payload.git",
|
|
"directory": "packages/plugin-multi-tenant"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Payload <dev@payloadcms.com> (https://payloadcms.com)",
|
|
"maintainers": [
|
|
{
|
|
"name": "Payload",
|
|
"email": "info@payloadcms.com",
|
|
"url": "https://payloadcms.com"
|
|
}
|
|
],
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./fields": {
|
|
"import": "./src/exports/fields.ts",
|
|
"types": "./src/exports/fields.ts",
|
|
"default": "./src/exports/fields.ts"
|
|
},
|
|
"./types": {
|
|
"import": "./src/exports/types.ts",
|
|
"types": "./src/exports/types.ts",
|
|
"default": "./src/exports/types.ts"
|
|
},
|
|
"./rsc": {
|
|
"import": "./src/exports/rsc.ts",
|
|
"types": "./src/exports/rsc.ts",
|
|
"default": "./src/exports/rsc.ts"
|
|
},
|
|
"./client": {
|
|
"import": "./src/exports/client.ts",
|
|
"types": "./src/exports/client.ts",
|
|
"default": "./src/exports/client.ts"
|
|
},
|
|
"./utilities": {
|
|
"import": "./src/exports/utilities.ts",
|
|
"types": "./src/exports/utilities.ts",
|
|
"default": "./src/exports/utilities.ts"
|
|
},
|
|
"./translations/languages/all": {
|
|
"import": "./src/translations/index.ts",
|
|
"types": "./src/translations/index.ts",
|
|
"default": "./src/translations/index.ts"
|
|
},
|
|
"./translations/languages/*": {
|
|
"import": "./src/translations/languages/*.ts",
|
|
"types": "./src/translations/languages/*.ts",
|
|
"default": "./src/translations/languages/*.ts"
|
|
}
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"files": [
|
|
"dist",
|
|
"types.js",
|
|
"types.d.ts"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm copyfiles && 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 {dist,*.tsbuildinfo}",
|
|
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"pack:plugin": "pnpm prepublishOnly && pnpm copyfiles && pnpm pack",
|
|
"prepublishOnly": "pnpm clean && pnpm turbo build"
|
|
},
|
|
"devDependencies": {
|
|
"@payloadcms/eslint-config": "workspace:*",
|
|
"@payloadcms/translations": "workspace:*",
|
|
"@payloadcms/ui": "workspace:*",
|
|
"payload": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"@payloadcms/ui": "workspace:*",
|
|
"next": "^15.2.3",
|
|
"payload": "workspace:*"
|
|
},
|
|
"publishConfig": {
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./fields": {
|
|
"import": "./dist/exports/fields.js",
|
|
"types": "./dist/exports/fields.d.ts",
|
|
"default": "./dist/exports/fields.js"
|
|
},
|
|
"./types": {
|
|
"import": "./dist/exports/types.js",
|
|
"types": "./dist/exports/types.d.ts",
|
|
"default": "./dist/exports/types.js"
|
|
},
|
|
"./rsc": {
|
|
"import": "./dist/exports/rsc.js",
|
|
"types": "./dist/exports/rsc.d.ts",
|
|
"default": "./dist/exports/rsc.js"
|
|
},
|
|
"./client": {
|
|
"import": "./dist/exports/client.js",
|
|
"types": "./dist/exports/client.d.ts",
|
|
"default": "./dist/exports/client.js"
|
|
},
|
|
"./utilities": {
|
|
"import": "./dist/exports/utilities.js",
|
|
"types": "./dist/exports/utilities.d.ts",
|
|
"default": "./dist/exports/utilities.js"
|
|
},
|
|
"./translations/languages/all": {
|
|
"import": "./dist/translations/index.js",
|
|
"types": "./dist/translations/index.d.ts",
|
|
"default": "./dist/translations/index.js"
|
|
},
|
|
"./translations/languages/*": {
|
|
"import": "./dist/translations/languages/*.js",
|
|
"types": "./dist/translations/languages/*.d.ts",
|
|
"default": "./dist/translations/languages/*.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"homepage:": "https://payloadcms.com"
|
|
}
|