Skip to content

Commit

Permalink
perf: upgrade json-schema-to-typescript and various other dependencies (
Browse files Browse the repository at this point in the history
#9076)

This further reduces the amount of dependencies installed by payload.
Special thanks to @benmccann for this PR
(bcherny/json-schema-to-typescript#639) !

json-schema-to-typescript before this PR (15.0.1):

![CleanShot 2024-11-07 at 15 35
53@2x](https://github.com/user-attachments/assets/83cb671c-82a8-4b59-b488-cf941d673c8e)

14mb, 37 dependencies

json-schema-to-typescript after this PR (15.0.3):

![CleanShot 2024-11-07 at 15 36
08@2x](https://github.com/user-attachments/assets/d9463275-37e5-452e-aca5-9c1bdeb2a435)

11 MB, 14 dependencies

This PR also upgrades:
- console-table-printer
- croner
- get-tsconfig
- jose
- pino-pretty
- ts-essentials
- tsx
  • Loading branch information
AlessioGr authored Nov 7, 2024
1 parent cd49783 commit 0cd83f0
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 94 deletions.
22 changes: 11 additions & 11 deletions examples/testing/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"name": "jest-payload",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "yarn build:server && yarn build:payload",
"build:payload": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload build",
"build:server": "tsc",
"dev": "nodemon",
"generate:types": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types",
"serve": "PAYLOAD_CONFIG_PATH=dist/payload.config.js NODE_ENV=production node dist/server.js",
"test": "jest --forceExit --detectOpenHandles"
},
"dependencies": {
"@payloadcms/bundler-webpack": "^1.0.5",
"@payloadcms/db-mongodb": "^1.1.0",
"@payloadcms/richtext-slate": "^1.3.1",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"get-tsconfig": "^4.7.0",
"get-tsconfig": "4.8.1",
"payload": "^2.4.0"
},
"devDependencies": {
Expand All @@ -21,14 +30,5 @@
"nodemon": "^3.0.1",
"ts-node": "10.9.1",
"typescript": "^5.2.2"
},
"scripts": {
"generate:types": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types",
"dev": "nodemon",
"build:payload": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload build",
"build:server": "tsc",
"build": "yarn build:server && yarn build:payload",
"serve": "PAYLOAD_CONFIG_PATH=dist/payload.config.js NODE_ENV=production node dist/server.js",
"test": "jest --forceExit --detectOpenHandles"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"sort-package-json": "^2.10.0",
"swc-plugin-transform-remove-imports": "1.15.0",
"tempy": "1.0.1",
"tsx": "4.19.1",
"tsx": "4.19.2",
"turbo": "^2.1.3",
"typescript": "5.6.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/db-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@payloadcms/drizzle": "workspace:*",
"@types/pg": "8.10.2",
"console-table-printer": "2.11.2",
"console-table-printer": "2.12.1",
"drizzle-kit": "0.26.2",
"drizzle-orm": "0.35.1",
"pg": "8.11.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/db-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@libsql/client": "0.14.0",
"@payloadcms/drizzle": "workspace:*",
"console-table-printer": "2.11.2",
"console-table-printer": "2.12.1",
"drizzle-kit": "0.26.2",
"drizzle-orm": "0.35.1",
"prompts": "2.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/db-vercel-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"@payloadcms/drizzle": "workspace:*",
"@vercel/postgres": "^0.9.0",
"console-table-printer": "2.11.2",
"console-table-printer": "2.12.1",
"drizzle-kit": "0.26.2",
"drizzle-orm": "0.35.1",
"pg": "8.11.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/drizzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prepublishOnly": "pnpm clean && pnpm turbo build"
},
"dependencies": {
"console-table-printer": "2.11.2",
"console-table-printer": "2.12.1",
"drizzle-orm": "0.35.1",
"prompts": "2.4.2",
"to-snake-case": "1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"dependencies": {
"graphql-scalars": "1.22.2",
"pluralize": "8.0.0",
"ts-essentials": "10.0.2",
"tsx": "4.19.1"
"ts-essentials": "10.0.3",
"tsx": "4.19.2"
},
"devDependencies": {
"@payloadcms/eslint-config": "workspace:*",
Expand Down
16 changes: 8 additions & 8 deletions packages/payload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@
"ajv": "8.17.1",
"bson-objectid": "2.0.4",
"ci-info": "^4.0.0",
"console-table-printer": "2.11.2",
"croner": "8.1.2",
"console-table-printer": "2.12.1",
"croner": "9.0.0",
"dataloader": "2.2.2",
"deepmerge": "4.3.1",
"file-type": "19.3.0",
"get-tsconfig": "^4.7.2",
"get-tsconfig": "4.8.1",
"http-status": "1.6.2",
"image-size": "^1.1.1",
"jose": "5.9.2",
"json-schema-to-typescript": "15.0.1",
"jose": "5.9.6",
"json-schema-to-typescript": "15.0.3",
"minimist": "1.2.8",
"pino": "9.5.0",
"pino-pretty": "11.3.0",
"pino-pretty": "12.0.0",
"pluralize": "8.0.0",
"sanitize-filename": "1.6.3",
"scmp": "2.1.0",
"ts-essentials": "10.0.2",
"tsx": "4.19.1",
"ts-essentials": "10.0.3",
"tsx": "4.19.2",
"uuid": "10.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const bin = async () => {
const queue = args.queue ? args.queue : undefined

if (args.cron) {
Cron(args.cron, async () => {
new Cron(args.cron, async () => {
await payload.jobs.run({
limit,
queue,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"react-select": "5.8.0",
"scheduler": "0.0.0-experimental-3edc000d-20240926",
"sonner": "^1.5.0",
"ts-essentials": "10.0.2",
"ts-essentials": "10.0.3",
"use-context-selector": "2.0.0",
"uuid": "10.0.0"
},
Expand Down
Loading

0 comments on commit 0cd83f0

Please sign in to comment.