fix: bin scripts cannot import dependencies without explicit "type": "module" (backport) (#16848)

Backport of https://github.com/payloadcms/payload/pull/16847
This commit is contained in:
Alessio Gravili
2026-06-03 11:15:57 +01:00
committed by GitHub
parent 0be11b62a9
commit 6707e854f2
12 changed files with 2716 additions and 3126 deletions
+1 -1
View File
@@ -237,7 +237,7 @@
"swc-plugin-transform-remove-imports": "8.3.0",
"tempy": "1.0.1",
"tstyche": "3.5.0",
"tsx": "4.21.0",
"tsx": "4.22.4",
"turbo": "^2.5.4",
"typescript": "5.7.3",
"vitest": "4.1.2",
+1 -1
View File
@@ -56,7 +56,7 @@
"graphql-scalars": "1.22.2",
"pluralize": "8.0.0",
"ts-essentials": "10.0.3",
"tsx": "4.21.0"
"tsx": "4.22.4"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
+1 -1
View File
@@ -126,7 +126,7 @@
"range-parser": "1.2.1",
"sanitize-filename": "1.6.3",
"ts-essentials": "10.0.3",
"tsx": "4.21.0",
"tsx": "4.22.4",
"undici": "7.24.4",
"uuid": "13.0.2",
"ws": "^8.16.0"
+2705 -3115
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -42,7 +42,7 @@
"eslint-config-next": "16.2.6",
"jsdom": "28.0.0",
"prettier": "^3.4.2",
"tsx": "4.21.0",
"tsx": "4.22.4",
"typescript": "5.7.3",
"vite-tsconfig-paths": "6.0.5",
"vitest": "4.0.18"
+1 -1
View File
@@ -89,7 +89,7 @@
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^4.1.18",
"tsx": "4.21.0",
"tsx": "4.22.4",
"tw-animate-css": "^1.4.0",
"typescript": "5.7.2",
"vite-tsconfig-paths": "6.0.5",
+1 -1
View File
@@ -72,7 +72,7 @@
"postcss": "^8.4.38",
"prettier": "^3.4.2",
"tailwindcss": "^4.1.18",
"tsx": "4.21.0",
"tsx": "4.22.4",
"tw-animate-css": "^1.4.0",
"typescript": "5.7.3",
"vite-tsconfig-paths": "6.0.5",
+1 -1
View File
@@ -51,7 +51,7 @@
"eslint-config-next": "15.4.11",
"jsdom": "28.0.0",
"prettier": "^3.4.2",
"tsx": "4.21.0",
"tsx": "4.22.4",
"typescript": "5.7.3",
"vite-tsconfig-paths": "6.0.5",
"vitest": "4.0.18",
+1 -1
View File
@@ -43,7 +43,7 @@
"eslint-config-next": "16.2.6",
"jsdom": "28.0.0",
"prettier": "^3.4.2",
"tsx": "4.21.0",
"tsx": "4.22.4",
"typescript": "5.7.3",
"vite-tsconfig-paths": "6.0.5",
"vitest": "4.0.18"
+1 -1
View File
@@ -42,7 +42,7 @@
"eslint-config-next": "16.2.6",
"jsdom": "28.0.0",
"prettier": "^3.4.2",
"tsx": "4.21.0",
"tsx": "4.22.4",
"typescript": "5.7.3",
"vite-tsconfig-paths": "6.0.5",
"vitest": "4.0.18"
+1 -1
View File
@@ -43,7 +43,7 @@
"eslint-config-next": "16.2.6",
"jsdom": "28.0.0",
"prettier": "^3.4.2",
"tsx": "4.21.0",
"tsx": "4.22.4",
"typescript": "5.7.3",
"vite-tsconfig-paths": "6.0.5",
"vitest": "4.0.18"
+1 -1
View File
@@ -74,7 +74,7 @@
"postcss": "^8.4.38",
"prettier": "^3.4.2",
"tailwindcss": "^4.1.18",
"tsx": "4.21.0",
"tsx": "4.22.4",
"tw-animate-css": "^1.4.0",
"typescript": "5.7.3",
"vite-tsconfig-paths": "6.0.5",