feat(backend): update collections, config and migration tools
Update Payload CMS configuration, collections (Audit, Posts), and add migration scripts/reports.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
|
||||
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
|
||||
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
|
||||
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev --port 3000",
|
||||
"dev:prod": "cross-env NODE_OPTIONS=--no-deprecation rm -rf .next && pnpm build && pnpm start",
|
||||
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
|
||||
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
|
||||
@@ -25,7 +25,10 @@
|
||||
"test:load:all": "k6 run tests/k6/public-browsing.js && k6 run tests/k6/api-performance.js",
|
||||
"test:load:admin": "k6 run tests/k6/admin-operations.js",
|
||||
"test:load:api": "k6 run tests/k6/api-performance.js",
|
||||
"typecheck": "tsc --noEmit"
|
||||
"typecheck": "tsc --noEmit",
|
||||
"migrate": "tsx scripts/migration/migrate.ts",
|
||||
"migrate:dry": "tsx scripts/migration/migrate.ts --dry-run --verbose",
|
||||
"migrate:posts": "tsx scripts/migration/migrate.ts --collection posts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@enchun/shared": "workspace:*",
|
||||
@@ -74,15 +77,19 @@
|
||||
"@types/react-dom": "19.1.6",
|
||||
"@vitejs/plugin-react": "4.5.2",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"cheerio": "^1.2.0",
|
||||
"copyfiles": "^2.4.1",
|
||||
"csv-parse": "^6.1.0",
|
||||
"eslint": "^9.16.0",
|
||||
"eslint-config-next": "15.4.4",
|
||||
"html-parse-stringify": "^3.0.1",
|
||||
"jsdom": "26.1.0",
|
||||
"playwright": "1.54.1",
|
||||
"playwright-core": "1.54.1",
|
||||
"postcss": "^8.4.38",
|
||||
"prettier": "^3.4.2",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"tsx": "^4.21.0",
|
||||
"typescript": "5.7.3",
|
||||
"vite-tsconfig-paths": "5.1.4",
|
||||
"vitest": "3.2.3"
|
||||
|
||||
Reference in New Issue
Block a user