chore(): Cleanup and organize deps (#13940)

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* Create lucky-poets-scream.md

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* chore(): Cleanup and organize deps

* dedupe snapshot this build

* split into 4 shard

* re configure packages integration tests

* re configure packages integration tests

* re configure packages integration tests

* re configure packages integration tests

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* update scripts

* reduce shard for packages
This commit is contained in:
Adrien de Peretti
2025-11-03 19:06:37 +01:00
committed by GitHub
parent cdbb4b925b
commit afb40d437b
83 changed files with 6898 additions and 11792 deletions

View File

@@ -26,13 +26,7 @@
"author": "Medusa",
"license": "MIT",
"devDependencies": {
"@medusajs/framework": "2.11.2",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"expect-type": "^0.20.0",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
"@medusajs/framework": "2.11.2"
},
"dependencies": {
"csv-parse": "^5.6.0",
@@ -43,8 +37,8 @@
"@medusajs/framework": "2.11.2"
},
"scripts": {
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"test": "jest --bail --forceExit --passWithNoTests"
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"watch": "yarn run -T tsc --build --watch",
"test": "../../../node_modules/.bin/jest --bail --forceExit --passWithNoTests"
}
}

View File

@@ -61,25 +61,13 @@
"author": "Medusa",
"license": "MIT",
"scripts": {
"watch": "tsc --watch ",
"watch:test": "tsc --watch",
"build": "rimraf dist && tsc --build",
"test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts"
"watch": "yarn run -T tsc --watch ",
"watch:test": "yarn run -T tsc --watch",
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"test": "../../../node_modules/.bin/jest --bail --forceExit --testPathPattern=src"
},
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.218.0",
"@medusajs/cli": "2.11.2",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/cors": "^2.8.17",
"@types/jsonwebtoken": "^8.5.9",
"connect-dynamodb": "^3.0.5",
"ioredis": "^5.4.1",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"supertest": "^7.1.4",
"typescript": "^5.6.2",
"vite": "^5.4.14"
"@medusajs/cli": "2.11.2"
},
"dependencies": {
"@jercle/yargonaut": "^1.1.5",

View File

@@ -53,7 +53,7 @@ export function createBodyParserMiddlewaresStack(
handler: RequestHandler | MiddlewareFunction,
route: { route: string; method?: string }
) => RequestHandler | MiddlewareFunction
) {
): RequestHandler[] {
return (["json", "text", "urlencoded"] as (keyof typeof parsers)[]).map(
(parser) => {
function bodyParser(

View File

@@ -29,19 +29,15 @@
"author": "Medusa",
"license": "MIT",
"devDependencies": {
"@medusajs/types": "2.11.2",
"jest": "^29.7.0",
"msw": "^2.3.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
"@medusajs/types": "2.11.2"
},
"dependencies": {
"fetch-event-stream": "^0.1.5",
"qs": "^6.12.1"
},
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.json && tsc -p tsconfig.esm.json",
"test": "jest --passWithNoTests --bail --forceExit --detectOpenHandles",
"watch": "tsc --build --watch"
"build": "yarn run -T rimraf dist && yarn run -T tsc -p tsconfig.json && yarn run -T tsc -p tsconfig.esm.json",
"test": "../../../node_modules/.bin/jest --passWithNoTests --bail --forceExit --detectOpenHandles",
"watch": "yarn run -T tsc --build --watch"
}
}

View File

@@ -26,25 +26,16 @@
"author": "Medusa",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc --build",
"test": "jest --bail --forceExit",
"watch": "tsc --build --watch"
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"test": "../../../node_modules/.bin/jest --bail --forceExit",
"watch": "yarn run -T tsc --build --watch"
},
"devDependencies": {
"@medusajs/types": "2.11.2",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
"@medusajs/types": "2.11.2"
},
"dependencies": {
"@medusajs/deps": "2.11.2",
"@medusajs/orchestration": "2.11.2",
"@medusajs/utils": "2.11.2"
},
"peerDependencies": {
"express": "^4.21.0"
}
}

View File

@@ -26,24 +26,16 @@
"author": "Medusa",
"license": "MIT",
"devDependencies": {
"@medusajs/types": "2.11.2",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
"@medusajs/types": "2.11.2"
},
"dependencies": {
"@medusajs/deps": "2.11.2",
"@medusajs/utils": "2.11.2",
"ulid": "^2.3.0"
},
"peerDependencies": {
"express": "^4.21.0"
},
"scripts": {
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"test": "jest --bail --forceExit"
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"watch": "yarn run -T tsc --build --watch",
"test": "../../../node_modules/.bin/jest --bail --forceExit"
}
}

View File

@@ -27,21 +27,15 @@
"author": "Medusa",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"watch": "yarn run -T tsc --build --watch",
"test": "exit 0"
},
"dependencies": {
"bignumber.js": "^9.1.2"
},
"devDependencies": {
"@medusajs/deps": "2.11.2",
"@types/jsonwebtoken": "^8.5.9",
"expect-type": "^0.20.0",
"ioredis": "^5.4.1",
"rimraf": "^5.0.1",
"typescript": "^5.6.2",
"vite": "^5.4.14"
"@medusajs/deps": "2.11.2"
},
"peerDependencies": {
"ioredis": "^5.4.1",

View File

@@ -27,17 +27,7 @@
"license": "MIT",
"devDependencies": {
"@medusajs/types": "2.11.2",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/autocannon": "^7.12.5",
"@types/express": "^4.17.21",
"autocannon": "^8.0.0",
"expect-type": "^0.20.0",
"express": "^4.21.0",
"jest": "^29.7.0",
"pg-god": "^1.0.12",
"rimraf": "^5.0.1",
"typescript": "^5.6.2"
"express": "^4.21.0"
},
"dependencies": {
"@graphql-codegen/core": "^4.0.2",
@@ -60,9 +50,9 @@
"express": "^4.21.0"
},
"scripts": {
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"test": "jest --silent=false --bail --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts",
"test:integration": "jest --silent --bail --forceExit -- src/**/integration-tests/__tests__/**/*.ts"
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"watch": "yarn run -T tsc --build --watch",
"test": "../../../node_modules/.bin/jest --silent=false --bail --forceExit --testPathIgnorePatterns='/integration-tests/' --testPathPattern=src",
"test:integration": "../../../node_modules/.bin/jest --passWithNoTests --silent --bail --forceExit --testPathPattern=\"src/.*/integration-tests/__tests__/.*\\.ts\""
}
}

View File

@@ -27,14 +27,7 @@
"author": "Medusa",
"license": "MIT",
"devDependencies": {
"@medusajs/types": "2.11.2",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"expect-type": "^0.20.0",
"jest": "^29.7.0",
"rimraf": "^5.0.1",
"typescript": "^5.6.2",
"zod": "3.25.76"
"@medusajs/types": "2.11.2"
},
"dependencies": {
"@medusajs/deps": "2.11.2",
@@ -43,13 +36,10 @@
"@medusajs/utils": "2.11.2",
"ulid": "^2.3.0"
},
"peerDependencies": {
"express": "^4.21.0"
},
"scripts": {
"build": "rimraf dist && tsc --build",
"watch": "tsc --build --watch",
"test": "jest --bail --forceExit -- src/**/__tests__/**/*.spec.ts",
"build": "yarn run -T rimraf dist && yarn run -T tsc --build",
"watch": "yarn run -T tsc --build --watch",
"test": "../../../node_modules/.bin/jest --bail --forceExit --testPathPattern=src",
"test:run": "node ./dist/utils/_playground.js"
}
}