Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/admin-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion packages/create-payload-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"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"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/db-d1-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepack": "pnpm clean && pnpm turbo build",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@payloadcms/drizzle": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/db-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"mongoose": "8.15.1",
Expand Down
2 changes: 0 additions & 2 deletions packages/db-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepack": "pnpm clean && pnpm turbo build",
"prepublishOnly": "pnpm clean && pnpm turbo build --filter=./",
"renamePredefinedMigrations": "node --no-deprecation --import @swc-node/register/esm-register ./scripts/renamePredefinedMigrations.ts"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/db-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepack": "pnpm clean && pnpm turbo build",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@libsql/client": "0.14.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/db-vercel-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepack": "pnpm clean && pnpm turbo build",
"prepublishOnly": "pnpm clean && pnpm turbo build",
"renamePredefinedMigrations": "node --no-deprecation --import @swc-node/register/esm-register ./scripts/renamePredefinedMigrations.ts"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepack": "pnpm clean && pnpm turbo build",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"console-table-printer": "2.12.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/email-nodemailer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"nodemailer": "7.0.9"
Expand Down
1 change: 0 additions & 1 deletion packages/email-resend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build",
"test": "jest"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"graphql-scalars": "1.22.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/kv-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"ioredis": "^5.4.1"
Expand Down
3 changes: 1 addition & 2 deletions packages/live-preview-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@payloadcms/live-preview": "workspace:*"
Expand Down
3 changes: 1 addition & 2 deletions packages/live-preview-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@payloadcms/live-preview": "workspace:*"
Expand Down
3 changes: 1 addition & 2 deletions packages/live-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
Expand Down
27 changes: 27 additions & 0 deletions packages/next/.swcrc-debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": true,
"jsc": {
"target": "esnext",
"parser": {
"syntax": "typescript",
"tsx": true,
"dts": true
},
"transform": {
"react": {
"runtime": "automatic",
"pragmaFrag": "React.Fragment",
"throwIfNamespace": true,
"development": true,
"useBuiltins": true
}
},
"keepClassNames": true,
"preserveAllComments": true
},
"module": {
"type": "es6"
},
"minify": false
}
24 changes: 24 additions & 0 deletions packages/next/createStubScss.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { mkdirSync, writeFileSync } from 'fs'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is run for build:debug - since we don't have a css bundle there

import { dirname, join } from 'path'
import { fileURLToPath } from 'url'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

const distProdDir = join(__dirname, 'dist', 'prod')
const stylesPath = join(distProdDir, 'styles.css')

const comment = `/*
* This file is a stub for debug builds.
* Direct SCSS imports are preserved for debug builds, so this file is not needed.
* For production builds, the actual bundled styles are generated by the build:esbuild script.
*/
`

// Create the dist/prod directory if it doesn't exist
mkdirSync(distProdDir, { recursive: true })

// Write the stub CSS file with comment
writeFileSync(stylesPath, comment, 'utf8')

console.log('Created stub styles.css for debug build')
7 changes: 6 additions & 1 deletion packages/next/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ export const index = [
tsconfigRootDir: import.meta.dirname,
projectService: {
// See comment in packages/eslint-config/index.mjs
allowDefaultProject: ['bundleScss.js', 'bundle.js', 'babel.config.cjs'],
allowDefaultProject: [
'bundleScss.js',
'createStubScss.js',
'bundle.js',
'babel.config.cjs',
],
},
},
},
Expand Down
9 changes: 5 additions & 4 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,18 @@
"build:babel": "rm -rf dist_optimized && babel dist --out-dir dist_optimized --source-maps --extensions .ts,.js,.tsx,.jsx,.cjs,.mjs && rm -rf dist && mv dist_optimized dist",
"build:bundle-for-analysis": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm build:swc && pnpm build:babel && pnpm copyfiles && node ./bundle.js esbuild",
"build:cjs": "swc ./src/withPayload.js -o ./dist/cjs/withPayload.cjs --config-file .swcrc-cjs --strip-leading-paths",
"build:debug": "pnpm build",
"build:debug": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm build:swc:debug && pnpm copyfiles:debug && pnpm build:types && pnpm build:cjs && node createStubScss.js",
"build:esbuild": "node bundleScss.js",
"build:reactcompiler": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm build:swc && pnpm build:babel && pnpm copyfiles && pnpm build:types && pnpm build:esbuild && pnpm build:cjs",
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
"build:swc:debug": "swc ./src -d ./dist --config-file .swcrc-debug --strip-leading-paths",
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"build:without_reactcompiler": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm copyfiles && pnpm build:types && pnpm build:swc && pnpm build:cjs && pnpm build:esbuild",
"clean": "rimraf -g {dist,*.tsbuildinfo,esbuild}",
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"copyfiles:debug": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"lint-staged": {
"**/package.json": "sort-package-json",
Expand Down
1 change: 0 additions & 1 deletion packages/payload-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build",
"test": "jest"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/payload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build",
"pretest": "pnpm build"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-cloud-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build",
"test": "echo \"No tests available.\""
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@payloadcms/translations": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-form-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"clean": "rimraf -g {dist,*.tsbuildinfo}",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build",
"test": "echo \"No tests available.\""
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-import-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@
"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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@faceless-ui/modal": "3.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"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"
"pack:plugin": "pnpm build && pnpm pack"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.17.2",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-multi-tenant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@
"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"
"pack:plugin": "pnpm build && pnpm pack"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-nested-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-redirects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@payloadcms/translations": "workspace:*",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepublishOnly": "pnpm clean && pnpm turbo build",
"test": "echo \"Error: no tests specified\""
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@sentry/nextjs": "^8.33.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-seo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@payloadcms/translations": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-stripe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
"clean": "rimraf -g {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",
"prepublishOnly": "pnpm clean && pnpm turbo build"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@payloadcms/translations": "workspace:*",
Expand Down
Loading
Loading