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:
@@ -45,8 +45,8 @@
|
||||
"@payloadcms/translations": "workspace:*",
|
||||
"@payloadcms/ui": "workspace:*",
|
||||
"@sentry/react": "^7.77.0",
|
||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
||||
"@types/react-dom": "npm:types-react-dom@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-rc.0",
|
||||
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
||||
"comment-json": "^4.2.3",
|
||||
"create-payload-app": "workspace:*",
|
||||
@@ -64,10 +64,11 @@
|
||||
"tempy": "^1.0.1",
|
||||
"ts-essentials": "7.0.3",
|
||||
"typescript": "5.5.3",
|
||||
"uploadthing": "^6.10.1"
|
||||
"uploadthing": "^6.10.1",
|
||||
"uuid": "10.0.0"
|
||||
},
|
||||
"overrides": {
|
||||
"@types/react": "npm:types-react@19.0.0-beta.2",
|
||||
"@types/react-dom": "npm:types-react-dom@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-rc.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import glob from 'glob'
|
||||
import globby from 'globby'
|
||||
import minimist from 'minimist'
|
||||
import path from 'path'
|
||||
import shelljs from 'shelljs'
|
||||
@@ -18,7 +18,7 @@ const suiteName = args[0]
|
||||
|
||||
// Run all
|
||||
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
|
||||
|
||||
@@ -74,9 +74,9 @@ function executePlaywright(suitePath: string, bail = false) {
|
||||
|
||||
const cmd = slash(`${playwrightBin} test ${suitePath} -c ${playwrightCfg}`)
|
||||
console.log('\n', cmd)
|
||||
const { stdout, code } = shelljs.exec(cmd)
|
||||
const { code, stdout } = shelljs.exec(cmd)
|
||||
const suite = path.basename(path.dirname(suitePath))
|
||||
const results = { suiteName: suite, code }
|
||||
const results = { code, suiteName: suite }
|
||||
if (code) {
|
||||
if (bail) {
|
||||
console.error(`TEST FAILURE DURING ${suite} suite.`)
|
||||
|
||||
Reference in New Issue
Block a user