feat!: upgrade minimum react, react-dom, @types/react and @types/react-dom versions to match exactly what Next.js is using, various dependency cleanup (#7106)
**BREAKING:** - Upgrades minimum supported @types/react version from npm:types-react@19.0.0-beta.2 to npm:types-react@19.0.0-rc.0 - Upgrades minimum supported @types/react-dom version from npm:types-react-dom@19.0.0-beta.2 to npm:types-react-dom@19.0.0-rc.0 - Upgrades minimum supported react and react-dom version from 19.0.0-rc-f994737d14-20240522 to 19.0.0-rc-6230622a1a-20240610
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
/** @type {import('jest').Config} */ const baseJestConfig = {
|
/** @type {import('jest').Config} */
|
||||||
|
const baseJestConfig = {
|
||||||
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
||||||
setupFiles: ['<rootDir>/test/jest.setup.env.js'],
|
setupFiles: ['<rootDir>/test/jest.setup.env.js'],
|
||||||
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.js'],
|
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.js'],
|
||||||
|
|||||||
42
package.json
42
package.json
@@ -46,9 +46,9 @@
|
|||||||
"build:translations": "turbo build --filter translations",
|
"build:translations": "turbo build --filter translations",
|
||||||
"build:ui": "turbo build --filter ui",
|
"build:ui": "turbo build --filter ui",
|
||||||
"clean": "turbo clean",
|
"clean": "turbo clean",
|
||||||
"clean:all": "node ./scripts/delete-recursively.js '@node_modules' 'media' '**/dist' '**/.cache' '**/.next' '**/.turbo' '**/tsconfig.tsbuildinfo' '**/payload*.tgz' '**/meta_*.json'",
|
"clean:all": "node ./scripts/delete-recursively.js '@node_modules' 'media/*' '**/dist/' '**/.cache/*' '**/.next/*' '**/.turbo/*' '**/tsconfig.tsbuildinfo' '**/payload*.tgz' '**/meta_*.json'",
|
||||||
"clean:build": "node ./scripts/delete-recursively.js 'media' '**/dist' '**/.cache' '**/.next' '**/.turbo' '**/tsconfig.tsbuildinfo' '**/payload*.tgz' '**/meta_*.json'",
|
"clean:build": "node ./scripts/delete-recursively.js 'media/' '**/dist/' '**/.cache/' '**/.next/' '**/.turbo/' '**/tsconfig.tsbuildinfo' '**/payload*.tgz' '**/meta_*.json'",
|
||||||
"clean:cache": "node ./scripts/delete-recursively.js node_modules/.cache! packages/payload/node_modules/.cache! .next",
|
"clean:cache": "node ./scripts/delete-recursively.js node_modules/.cache! packages/payload/node_modules/.cache! .next/*",
|
||||||
"dev": "cross-env NODE_OPTIONS=--no-deprecation node ./test/dev.js",
|
"dev": "cross-env NODE_OPTIONS=--no-deprecation node ./test/dev.js",
|
||||||
"dev:generate-graphql-schema": "cross-env NODE_OPTIONS=--no-deprecation tsx ./test/generateGraphQLSchema.ts",
|
"dev:generate-graphql-schema": "cross-env NODE_OPTIONS=--no-deprecation tsx ./test/generateGraphQLSchema.ts",
|
||||||
"dev:generate-types": "cross-env NODE_OPTIONS=--no-deprecation tsx ./test/generateTypes.ts",
|
"dev:generate-types": "cross-env NODE_OPTIONS=--no-deprecation tsx ./test/generateTypes.ts",
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "29.7.0",
|
||||||
"@next/bundle-analyzer": "^14.1.0",
|
"@next/bundle-analyzer": "15.0.0-canary.53",
|
||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@payloadcms/eslint-plugin": "workspace:*",
|
"@payloadcms/eslint-plugin": "workspace:*",
|
||||||
"@payloadcms/live-preview-react": "workspace:*",
|
"@payloadcms/live-preview-react": "workspace:*",
|
||||||
@@ -103,8 +103,8 @@
|
|||||||
"@types/minimist": "1.2.5",
|
"@types/minimist": "1.2.5",
|
||||||
"@types/node": "20.12.5",
|
"@types/node": "20.12.5",
|
||||||
"@types/prompts": "^2.4.5",
|
"@types/prompts": "^2.4.5",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"@types/semver": "^7.5.3",
|
"@types/semver": "^7.5.3",
|
||||||
"@types/shelljs": "0.8.15",
|
"@types/shelljs": "0.8.15",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
@@ -120,43 +120,37 @@
|
|||||||
"execa": "5.1.1",
|
"execa": "5.1.1",
|
||||||
"form-data": "3.0.1",
|
"form-data": "3.0.1",
|
||||||
"fs-extra": "10.1.0",
|
"fs-extra": "10.1.0",
|
||||||
"glob": "8.1.0",
|
|
||||||
"globby": "11.1.0",
|
"globby": "11.1.0",
|
||||||
"husky": "9.0.11",
|
"husky": "9.0.11",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"jest-environment-jsdom": "29.7.0",
|
"jest-environment-jsdom": "29.7.0",
|
||||||
"json-schema-to-typescript": "11.0.3",
|
|
||||||
"lint-staged": "15.2.7",
|
"lint-staged": "15.2.7",
|
||||||
"minimist": "1.2.8",
|
"minimist": "1.2.8",
|
||||||
"mongodb-memory-server": "^9.0",
|
"mongodb-memory-server": "^9.0",
|
||||||
"next": "15.0.0-canary.53",
|
"next": "15.0.0-canary.53",
|
||||||
"open": "^10.1.0",
|
"open": "^10.1.0",
|
||||||
"p-limit": "^5.0.0",
|
"p-limit": "^5.0.0",
|
||||||
"pino": "8.15.0",
|
|
||||||
"pino-pretty": "10.2.0",
|
|
||||||
"playwright": "1.43.0",
|
"playwright": "1.43.0",
|
||||||
"playwright-core": "1.43.0",
|
"playwright-core": "1.43.0",
|
||||||
"prettier": "3.3.2",
|
"prettier": "3.3.2",
|
||||||
"prompts": "2.4.2",
|
"prompts": "2.4.2",
|
||||||
"react": "^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0-rc-f994737d14-20240522",
|
"react-dom": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.5.4",
|
||||||
"sharp": "0.32.6",
|
"sharp": "0.32.6",
|
||||||
"shelljs": "0.8.5",
|
"shelljs": "0.8.5",
|
||||||
"slash": "3.0.0",
|
"slash": "3.0.0",
|
||||||
"sort-package-json": "^2.10.0",
|
"sort-package-json": "^2.10.0",
|
||||||
"swc-plugin-transform-remove-imports": "^1.12.1",
|
"swc-plugin-transform-remove-imports": "1.14.0",
|
||||||
"tempy": "^1.0.1",
|
"tempy": "1.0.1",
|
||||||
"ts-node": "10.9.1",
|
"tsx": "4.16.2",
|
||||||
"tsx": "^4.7.1",
|
|
||||||
"turbo": "^1.13.3",
|
"turbo": "^1.13.3",
|
||||||
"typescript": "5.5.3",
|
"typescript": "5.5.3"
|
||||||
"uuid": "10.0.0"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.20.2 || >=20.9.0",
|
"node": "^18.20.2 || >=20.9.0",
|
||||||
@@ -168,8 +162,8 @@
|
|||||||
"domexception": "4"
|
"domexception": "4"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"copyfiles": "$copyfiles",
|
"copyfiles": "$copyfiles",
|
||||||
"cross-env": "$cross-env",
|
"cross-env": "$cross-env",
|
||||||
"dotenv": "$dotenv",
|
"dotenv": "$dotenv",
|
||||||
@@ -185,8 +179,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
},
|
},
|
||||||
"workspaces:": [
|
"workspaces:": [
|
||||||
"packages/*",
|
"packages/*",
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@types/pg": "8.10.2",
|
"@types/pg": "8.10.2",
|
||||||
"@types/to-snake-case": "1.0.0",
|
"@types/to-snake-case": "1.0.0",
|
||||||
"esbuild": "^0.21.4",
|
"esbuild": "0.23.0",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@@ -36,13 +36,13 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
"types": "./dist/index.d.ts"
|
"types": "./dist/index.d.ts"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
45
packages/next/bundleScss.js
Normal file
45
packages/next/bundleScss.js
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
import * as esbuild from 'esbuild'
|
||||||
|
import fs from 'fs'
|
||||||
|
import path from 'path'
|
||||||
|
import { fileURLToPath } from 'url'
|
||||||
|
const filename = fileURLToPath(import.meta.url)
|
||||||
|
const dirname = path.dirname(filename)
|
||||||
|
import { sassPlugin } from 'esbuild-sass-plugin'
|
||||||
|
|
||||||
|
// Bundle only the .scss files into a single css file
|
||||||
|
await esbuild
|
||||||
|
.build({
|
||||||
|
entryPoints: ['src/esbuildEntry.ts'],
|
||||||
|
bundle: true,
|
||||||
|
minify: true,
|
||||||
|
outdir: 'dist/prod',
|
||||||
|
packages: 'external',
|
||||||
|
plugins: [sassPlugin({ css: 'external' })],
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
fs.rename('dist/prod/esbuildEntry.css', 'dist/prod/styles.css', (err) => {
|
||||||
|
if (err) console.error(`Error while renaming index.css: ${err}`)
|
||||||
|
})
|
||||||
|
|
||||||
|
fs.unlink('dist/esbuildEntry.js', (err) => {
|
||||||
|
if (err) console.error(`Error while deleting dist/esbuildEntry.js: ${err}`)
|
||||||
|
})
|
||||||
|
|
||||||
|
fs.unlink('dist/prod/esbuildEntry.js', (err) => {
|
||||||
|
if (err) console.error(`Error while deleting dist/prod/esbuildEntry.js: ${err}`)
|
||||||
|
})
|
||||||
|
|
||||||
|
fs.unlink('dist/esbuildEntry.d.ts', (err) => {
|
||||||
|
if (err) console.error(`Error while deleting dist/esbuildEntry.d.ts: ${err}`)
|
||||||
|
})
|
||||||
|
fs.unlink('dist/esbuildEntry.d.ts.map', (err) => {
|
||||||
|
if (err) console.error(`Error while deleting dist/esbuildEntry.d.ts.map: ${err}`)
|
||||||
|
})
|
||||||
|
fs.unlink('dist/esbuildEntry.js.map', (err) => {
|
||||||
|
if (err) console.error(`Error while deleting dist/esbuildEntry.js.map: ${err}`)
|
||||||
|
})
|
||||||
|
console.log('styles.css bundled successfully')
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
throw e
|
||||||
|
})
|
||||||
@@ -50,11 +50,11 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm copyfiles && pnpm build:types && pnpm build:swc && pnpm build:cjs && pnpm build:webpack",
|
"build": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm copyfiles && pnpm build:types && pnpm build:swc && pnpm build:cjs && pnpm build:esbuild",
|
||||||
"build:cjs": "swc ./src/withPayload.js -o ./dist/cjs/withPayload.cjs --config-file .swcrc-cjs --strip-leading-paths",
|
"build:cjs": "swc ./src/withPayload.js -o ./dist/cjs/withPayload.cjs --config-file .swcrc-cjs --strip-leading-paths",
|
||||||
|
"build:esbuild": "node bundleScss.js",
|
||||||
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
||||||
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
||||||
"build:webpack": "webpack --config webpack.config.js",
|
|
||||||
"clean": "rimraf {dist,*.tsbuildinfo}",
|
"clean": "rimraf {dist,*.tsbuildinfo}",
|
||||||
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" \"src/app/api/**\" dist/",
|
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" \"src/app/api/**\" dist/",
|
||||||
"fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
|
"fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
|
||||||
@@ -76,27 +76,21 @@
|
|||||||
"react-diff-viewer-continued": "3.2.6",
|
"react-diff-viewer-continued": "3.2.6",
|
||||||
"sass": "1.77.4",
|
"sass": "1.77.4",
|
||||||
"sonner": "^1.5.0",
|
"sonner": "^1.5.0",
|
||||||
|
"uuid": "10.0.0",
|
||||||
"ws": "^8.16.0"
|
"ws": "^8.16.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@next/eslint-plugin-next": "^14.1.0",
|
"@next/eslint-plugin-next": "^14.1.0",
|
||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@types/busboy": "^1.5.3",
|
"@types/busboy": "^1.5.3",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
|
"@types/uuid": "10.0.0",
|
||||||
"@types/ws": "^8.5.10",
|
"@types/ws": "^8.5.10",
|
||||||
"css-loader": "^6.10.0",
|
"esbuild": "0.23.0",
|
||||||
"css-minimizer-webpack-plugin": "^6.0.0",
|
"esbuild-sass-plugin": "3.3.1",
|
||||||
"mini-css-extract-plugin": "1.6.2",
|
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"postcss-loader": "^8.1.1",
|
"swc-plugin-transform-remove-imports": "1.14.0"
|
||||||
"postcss-preset-env": "^9.5.14",
|
|
||||||
"sass-loader": "14.2.1",
|
|
||||||
"swc-loader": "^0.2.6",
|
|
||||||
"swc-plugin-transform-remove-imports": "^1.12.1",
|
|
||||||
"terser-webpack-plugin": "^5.3.10",
|
|
||||||
"webpack": "^5.78.0",
|
|
||||||
"webpack-cli": "^5.1.4"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
@@ -148,7 +142,7 @@
|
|||||||
"types": "./dist/index.js"
|
"types": "./dist/index.js"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,115 +0,0 @@
|
|||||||
import OptimizeCSSAssetsPlugin from 'css-minimizer-webpack-plugin'
|
|
||||||
import MiniCSSExtractPlugin from 'mini-css-extract-plugin'
|
|
||||||
import path from 'path'
|
|
||||||
import TerserJSPlugin from 'terser-webpack-plugin'
|
|
||||||
import { fileURLToPath } from 'url'
|
|
||||||
import webpack from 'webpack'
|
|
||||||
|
|
||||||
const filename = fileURLToPath(import.meta.url)
|
|
||||||
const dirname = path.dirname(filename)
|
|
||||||
|
|
||||||
/** @type {import('webpack').Configuration} */
|
|
||||||
const componentWebpackConfig = {
|
|
||||||
entry: path.resolve(dirname, './src/webpackEntry.ts'),
|
|
||||||
externals: [
|
|
||||||
'react',
|
|
||||||
'react-dom',
|
|
||||||
'payload',
|
|
||||||
'react-image-crop',
|
|
||||||
'payload/shared',
|
|
||||||
'payload/server',
|
|
||||||
],
|
|
||||||
mode: 'production',
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
oneOf: [
|
|
||||||
{
|
|
||||||
// exclude: /node_modules/,
|
|
||||||
test: /\.(t|j)sx?$/,
|
|
||||||
use: [
|
|
||||||
{
|
|
||||||
loader: 'swc-loader',
|
|
||||||
options: {
|
|
||||||
jsc: {
|
|
||||||
experimental: {
|
|
||||||
plugins: [
|
|
||||||
// clear the plugins used in .swcrc
|
|
||||||
],
|
|
||||||
},
|
|
||||||
parser: {
|
|
||||||
syntax: 'typescript',
|
|
||||||
tsx: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
sideEffects: true,
|
|
||||||
test: /\.(scss|css)$/,
|
|
||||||
use: [
|
|
||||||
MiniCSSExtractPlugin.loader,
|
|
||||||
'css-loader',
|
|
||||||
{
|
|
||||||
loader: 'postcss-loader',
|
|
||||||
options: {
|
|
||||||
postcssOptions: {
|
|
||||||
plugins: ['postcss-preset-env'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'sass-loader',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'asset/resource',
|
|
||||||
generator: {
|
|
||||||
filename: 'payload/[name][ext]',
|
|
||||||
},
|
|
||||||
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/, /\.svg$/, /\.woff$/, /\.woff2$/],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
optimization: {
|
|
||||||
minimizer: [
|
|
||||||
new TerserJSPlugin({
|
|
||||||
extractComments: false,
|
|
||||||
}),
|
|
||||||
new OptimizeCSSAssetsPlugin({}),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
filename: 'index.js',
|
|
||||||
libraryTarget: 'commonjs2',
|
|
||||||
path: path.resolve(dirname, './dist/prod'),
|
|
||||||
publicPath: '/',
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new MiniCSSExtractPlugin({
|
|
||||||
filename: 'styles.css',
|
|
||||||
ignoreOrder: true,
|
|
||||||
}),
|
|
||||||
new webpack.optimize.LimitChunkCountPlugin({
|
|
||||||
maxChunks: 1,
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
resolve: {
|
|
||||||
extensionAlias: {
|
|
||||||
'.js': ['.ts', '.tsx', '.js', '.scss', '.css'],
|
|
||||||
'.mjs': ['.mts', '.mjs'],
|
|
||||||
},
|
|
||||||
extensions: ['.js', '.ts', '.tsx', '.scss', '.css'],
|
|
||||||
modules: [
|
|
||||||
'node_modules',
|
|
||||||
path.resolve(dirname, '../../node_modules'),
|
|
||||||
path.resolve(dirname, './node_modules'),
|
|
||||||
],
|
|
||||||
},
|
|
||||||
stats: 'errors-only',
|
|
||||||
}
|
|
||||||
|
|
||||||
export default componentWebpackConfig
|
|
||||||
@@ -128,13 +128,13 @@
|
|||||||
"@types/uuid": "10.0.0",
|
"@types/uuid": "10.0.0",
|
||||||
"copyfiles": "2.4.1",
|
"copyfiles": "2.4.1",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"esbuild": "^0.21.4",
|
"esbuild": "0.23.0",
|
||||||
"graphql-http": "^1.22.0",
|
"graphql-http": "^1.22.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"sharp": "0.32.6"
|
"sharp": "0.32.6"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@swc/core": "^1.6.1",
|
"@swc/core": "^1.6.13",
|
||||||
"graphql": "^16.8.1"
|
"graphql": "^16.8.1"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
|||||||
@@ -55,18 +55,16 @@
|
|||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@types/escape-html": "^1.0.4",
|
"@types/escape-html": "^1.0.4",
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"nodemon": "3.0.3",
|
"payload": "workspace:*"
|
||||||
"payload": "workspace:*",
|
|
||||||
"ts-node": "10.9.1"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -87,7 +85,7 @@
|
|||||||
},
|
},
|
||||||
"homepage:": "https://payloadcms.com",
|
"homepage:": "https://payloadcms.com",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,8 +49,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@types/express": "^4.17.9",
|
"@types/express": "^4.17.9",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
},
|
},
|
||||||
"homepage:": "https://payloadcms.com",
|
"homepage:": "https://payloadcms.com",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,14 +50,14 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@types/express": "^4.17.9",
|
"@types/express": "^4.17.9",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
},
|
},
|
||||||
"homepage:": "https://payloadcms.com",
|
"homepage:": "https://payloadcms.com",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,20 +47,19 @@
|
|||||||
"@types/express": "^4.17.9",
|
"@types/express": "^4.17.9",
|
||||||
"@types/jest": "29.5.12",
|
"@types/jest": "29.5.12",
|
||||||
"@types/node": "20.12.5",
|
"@types/node": "20.12.5",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"nodemon": "3.0.3",
|
"nodemon": "3.0.3",
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"ts-jest": "^29.1.0",
|
"ts-jest": "^29.1.0"
|
||||||
"webpack": "^5.78.0"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -75,7 +74,7 @@
|
|||||||
},
|
},
|
||||||
"homepage:": "https://payloadcms.com",
|
"homepage:": "https://payloadcms.com",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,16 +56,16 @@
|
|||||||
"@payloadcms/next": "workspace:*",
|
"@payloadcms/next": "workspace:*",
|
||||||
"@payloadcms/translations": "workspace:*",
|
"@payloadcms/translations": "workspace:*",
|
||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@payloadcms/translations": "workspace:*",
|
"@payloadcms/translations": "workspace:*",
|
||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
},
|
},
|
||||||
"homepage:": "https://payloadcms.com",
|
"homepage:": "https://payloadcms.com",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,8 +61,8 @@
|
|||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"@types/express": "^4.17.9",
|
"@types/express": "^4.17.9",
|
||||||
"@types/lodash.get": "^4.4.7",
|
"@types/lodash.get": "^4.4.7",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"@types/uuid": "10.0.0",
|
"@types/uuid": "10.0.0",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*"
|
||||||
},
|
},
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
},
|
},
|
||||||
"homepage:": "https://payloadcms.com",
|
"homepage:": "https://payloadcms.com",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,11 +65,12 @@
|
|||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"@types/json-schema": "7.0.15",
|
"@types/json-schema": "7.0.15",
|
||||||
"@types/node": "20.12.5",
|
"@types/node": "20.12.5",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"esbuild": "^0.21.4",
|
"esbuild": "0.23.0",
|
||||||
"esbuild-sass-plugin": "^3.3.0",
|
"esbuild-sass-plugin": "3.3.1",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*",
|
||||||
|
"swc-plugin-transform-remove-imports": "1.14.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@faceless-ui/modal": "3.0.0-beta.2",
|
"@faceless-ui/modal": "3.0.0-beta.2",
|
||||||
@@ -89,8 +90,8 @@
|
|||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"lexical": "0.16.1",
|
"lexical": "0.16.1",
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.20.2 || >=20.9.0"
|
"node": "^18.20.2 || >=20.9.0"
|
||||||
@@ -113,7 +114,7 @@
|
|||||||
"types": "./dist/index.d.ts"
|
"types": "./dist/index.d.ts"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,15 +43,15 @@
|
|||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"@types/is-hotkey": "^0.1.10",
|
"@types/is-hotkey": "^0.1.10",
|
||||||
"@types/node": "20.12.5",
|
"@types/node": "20.12.5",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"payload": "workspace:*"
|
"payload": "workspace:*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@payloadcms/translations": "workspace:*",
|
"@payloadcms/translations": "workspace:*",
|
||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.20.2 || >=20.9.0"
|
"node": "^18.20.2 || >=20.9.0"
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
"types": "./dist/index.d.ts"
|
"types": "./dist/index.d.ts"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,9 +42,9 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@swc/core": "^1.6.1",
|
"@swc/core": "^1.6.13",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"dotenv": "16.4.5",
|
"dotenv": "16.4.5",
|
||||||
"prettier": "3.3.2",
|
"prettier": "3.3.2",
|
||||||
"typescript": "5.5.3"
|
"typescript": "5.5.3"
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
"types": "./dist/exports/index.d.ts"
|
"types": "./dist/exports/index.d.ts"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,27 +103,20 @@
|
|||||||
"@hyrious/esbuild-plugin-commonjs": "^0.2.4",
|
"@hyrious/esbuild-plugin-commonjs": "^0.2.4",
|
||||||
"@payloadcms/eslint-config": "workspace:*",
|
"@payloadcms/eslint-config": "workspace:*",
|
||||||
"@types/body-scroll-lock": "^3.1.0",
|
"@types/body-scroll-lock": "^3.1.0",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-datepicker": "6.2.0",
|
"@types/react-datepicker": "6.2.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"@types/uuid": "10.0.0",
|
"@types/uuid": "10.0.0",
|
||||||
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
||||||
"css-loader": "^6.10.0",
|
"esbuild": "0.23.0",
|
||||||
"esbuild": "^0.21.4",
|
"esbuild-sass-plugin": "3.3.1",
|
||||||
"esbuild-sass-plugin": "^3.3.0",
|
"payload": "workspace:*"
|
||||||
"mini-css-extract-plugin": "1.6.2",
|
|
||||||
"payload": "workspace:*",
|
|
||||||
"postcss-loader": "^8.1.1",
|
|
||||||
"postcss-preset-env": "^9.5.14",
|
|
||||||
"sass-loader": "14.2.1",
|
|
||||||
"swc-loader": "^0.2.6",
|
|
||||||
"turbopack": "^0.0.1"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"next": "^15.0.0-canary.53",
|
"next": "^15.0.0-canary.53",
|
||||||
"payload": "workspace:*",
|
"payload": "workspace:*",
|
||||||
"react": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0 || ^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0 || ^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.20.2 || >=20.9.0"
|
"node": "^18.20.2 || >=20.9.0"
|
||||||
@@ -200,7 +193,7 @@
|
|||||||
"types": "./dist/exports/client/index.d.ts"
|
"types": "./dist/exports/client/index.d.ts"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8451
pnpm-lock.yaml
generated
8451
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
import { promises as fs, existsSync } from 'fs'
|
import { promises as fs, existsSync } from 'fs'
|
||||||
import path, { join } from 'path'
|
import path, { join } from 'path'
|
||||||
import glob from 'glob'
|
import globby from 'globby'
|
||||||
import process from 'process'
|
import process from 'node:process'
|
||||||
import chalk from 'chalk'
|
import chalk from 'chalk'
|
||||||
|
|
||||||
// Helper function to format size appropriately in KB or MB
|
// Helper function to format size appropriately in KB or MB
|
||||||
@@ -73,35 +73,18 @@ async function cleanDirectories(patterns) {
|
|||||||
if (pattern === '@node_modules') {
|
if (pattern === '@node_modules') {
|
||||||
pattern = '**/node_modules'
|
pattern = '**/node_modules'
|
||||||
fulleDelete = true
|
fulleDelete = true
|
||||||
files = await new Promise((resolve, reject) => {
|
files = await globby(pattern, {
|
||||||
glob(pattern, { nodir: false }, (err, files) => {
|
onlyDirectories: true,
|
||||||
if (err) {
|
ignore: ['**/node_modules/**/node_modules'],
|
||||||
reject(err)
|
|
||||||
} else {
|
|
||||||
// Filter out node_modules within other node_modules
|
|
||||||
const topNodeModules = files.filter((file) => {
|
|
||||||
const parentDir = path.dirname(file)
|
|
||||||
return !parentDir.includes('node_modules')
|
|
||||||
})
|
|
||||||
resolve(topNodeModules)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const options = {
|
const options = {
|
||||||
ignore: ignoreNodeModules ? '**/node_modules/**' : '',
|
ignore: ignoreNodeModules ? '**/node_modules/**' : '',
|
||||||
nodir: false,
|
onlyDirectories: pattern.endsWith('/') ? true : false,
|
||||||
}
|
}
|
||||||
|
fulleDelete = options.onlyDirectories
|
||||||
|
|
||||||
files = await new Promise((resolve, reject) => {
|
files = await globby(pattern, options)
|
||||||
glob(pattern, options, (err, files) => {
|
|
||||||
if (err) {
|
|
||||||
reject(err)
|
|
||||||
} else {
|
|
||||||
resolve(files)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let count = 0
|
let count = 0
|
||||||
|
|||||||
@@ -22,14 +22,14 @@
|
|||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"next": "15.0.0-canary.53",
|
"next": "15.0.0-canary.53",
|
||||||
"payload": "beta",
|
"payload": "beta",
|
||||||
"react": "^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0-rc-f994737d14-20240522",
|
"react-dom": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"sharp": "0.32.6"
|
"sharp": "0.32.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.14.9",
|
"@types/node": "^20.14.9",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "15.0.0-rc.0",
|
"eslint-config-next": "15.0.0-rc.0",
|
||||||
"typescript": "5.5.3"
|
"typescript": "5.5.3"
|
||||||
@@ -39,12 +39,12 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,14 +22,14 @@
|
|||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"next": "15.0.0-rc.0",
|
"next": "15.0.0-rc.0",
|
||||||
"payload": "beta",
|
"payload": "beta",
|
||||||
"react": "^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0-rc-f994737d14-20240522",
|
"react-dom": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"sharp": "0.32.6"
|
"sharp": "0.32.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.12.12",
|
"@types/node": "^20.12.12",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "15.0.0-rc.0",
|
"eslint-config-next": "15.0.0-rc.0",
|
||||||
@@ -40,12 +40,12 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,14 +22,14 @@
|
|||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"next": "15.0.0-canary.53",
|
"next": "15.0.0-canary.53",
|
||||||
"payload": "beta",
|
"payload": "beta",
|
||||||
"react": "^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0-rc-f994737d14-20240522",
|
"react-dom": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"sharp": "0.32.6"
|
"sharp": "0.32.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.14.9",
|
"@types/node": "^20.14.9",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "15.0.0-rc.0",
|
"eslint-config-next": "15.0.0-rc.0",
|
||||||
"typescript": "5.5.3"
|
"typescript": "5.5.3"
|
||||||
@@ -39,12 +39,12 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
6933
templates/website/pnpm-lock.yaml
generated
6933
templates/website/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -22,14 +22,14 @@
|
|||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"next": "15.0.0-canary.53",
|
"next": "15.0.0-canary.53",
|
||||||
"payload": "beta",
|
"payload": "beta",
|
||||||
"react": "^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0-rc-f994737d14-20240522",
|
"react-dom": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"sharp": "0.32.6"
|
"sharp": "0.32.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.14.9",
|
"@types/node": "^20.14.9",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "15.0.0-rc.0",
|
"eslint-config-next": "15.0.0-rc.0",
|
||||||
"typescript": "5.5.3"
|
"typescript": "5.5.3"
|
||||||
@@ -39,12 +39,12 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,13 +23,13 @@
|
|||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"next": "15.0.0-canary.53",
|
"next": "15.0.0-canary.53",
|
||||||
"payload": "beta",
|
"payload": "beta",
|
||||||
"react": "^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.14.9",
|
"@types/node": "^20.14.9",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "15.0.0-rc.0",
|
"eslint-config-next": "15.0.0-rc.0",
|
||||||
"typescript": "5.5.3"
|
"typescript": "5.5.3"
|
||||||
@@ -39,12 +39,12 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,13 +23,13 @@
|
|||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"next": "15.0.0-canary.53",
|
"next": "15.0.0-canary.53",
|
||||||
"payload": "beta",
|
"payload": "beta",
|
||||||
"react": "^19.0.0-rc-f994737d14-20240522",
|
"react": "^19.0.0-rc-6230622a1a-20240610",
|
||||||
"react-dom": "^19.0.0-rc-f994737d14-20240522"
|
"react-dom": "^19.0.0-rc-6230622a1a-20240610"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.14.9",
|
"@types/node": "^20.14.9",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-next": "15.0.0-rc.0",
|
"eslint-config-next": "15.0.0-rc.0",
|
||||||
"typescript": "5.5.3"
|
"typescript": "5.5.3"
|
||||||
@@ -39,12 +39,12 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,8 +45,8 @@
|
|||||||
"@payloadcms/translations": "workspace:*",
|
"@payloadcms/translations": "workspace:*",
|
||||||
"@payloadcms/ui": "workspace:*",
|
"@payloadcms/ui": "workspace:*",
|
||||||
"@sentry/react": "^7.77.0",
|
"@sentry/react": "^7.77.0",
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||||
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
||||||
"comment-json": "^4.2.3",
|
"comment-json": "^4.2.3",
|
||||||
"create-payload-app": "workspace:*",
|
"create-payload-app": "workspace:*",
|
||||||
@@ -64,10 +64,11 @@
|
|||||||
"tempy": "^1.0.1",
|
"tempy": "^1.0.1",
|
||||||
"ts-essentials": "7.0.3",
|
"ts-essentials": "7.0.3",
|
||||||
"typescript": "5.5.3",
|
"typescript": "5.5.3",
|
||||||
"uploadthing": "^6.10.1"
|
"uploadthing": "^6.10.1",
|
||||||
|
"uuid": "10.0.0"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||||
"@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
|
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import glob from 'glob'
|
import globby from 'globby'
|
||||||
import minimist from 'minimist'
|
import minimist from 'minimist'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import shelljs from 'shelljs'
|
import shelljs from 'shelljs'
|
||||||
@@ -18,7 +18,7 @@ const suiteName = args[0]
|
|||||||
|
|
||||||
// Run all
|
// Run all
|
||||||
if (!suiteName) {
|
if (!suiteName) {
|
||||||
let files = glob.sync(`${path.resolve(dirname).replace(/\\/g, '/')}/**/*e2e.spec.ts`)
|
let files = await globby(`${path.resolve(dirname).replace(/\\/g, '/')}/**/*e2e.spec.ts`)
|
||||||
|
|
||||||
const totalFiles = files.length
|
const totalFiles = files.length
|
||||||
|
|
||||||
@@ -74,9 +74,9 @@ function executePlaywright(suitePath: string, bail = false) {
|
|||||||
|
|
||||||
const cmd = slash(`${playwrightBin} test ${suitePath} -c ${playwrightCfg}`)
|
const cmd = slash(`${playwrightBin} test ${suitePath} -c ${playwrightCfg}`)
|
||||||
console.log('\n', cmd)
|
console.log('\n', cmd)
|
||||||
const { stdout, code } = shelljs.exec(cmd)
|
const { code, stdout } = shelljs.exec(cmd)
|
||||||
const suite = path.basename(path.dirname(suitePath))
|
const suite = path.basename(path.dirname(suitePath))
|
||||||
const results = { suiteName: suite, code }
|
const results = { code, suiteName: suite }
|
||||||
if (code) {
|
if (code) {
|
||||||
if (bail) {
|
if (bail) {
|
||||||
console.error(`TEST FAILURE DURING ${suite} suite.`)
|
console.error(`TEST FAILURE DURING ${suite} suite.`)
|
||||||
|
|||||||
Reference in New Issue
Block a user