chore: fix OAS circular dependencies (#7693)

This commit is contained in:
Shahed Nasser
2024-06-12 19:42:03 +02:00
committed by GitHub
parent 3693f61dc3
commit 7e7e6e3311
7 changed files with 29 additions and 8 deletions
+3 -1
View File
@@ -7,7 +7,9 @@
"scripts": {
"build": "turbo run build",
"watch": "turbo run watch",
"lint": "turbo run lint"
"lint": "turbo run lint",
"generate:references": "turbo run generate:references",
"generate:oas": "turbo run generate:oas"
},
"dependencies": {
"@babel/core": "^7.23.0",
@@ -6,7 +6,8 @@
"start": "node dist/index.js",
"build": "tsc",
"watch": "tsc --watch",
"prepublishOnly": "cross-env NODE_ENV=production tsc --build"
"prepublishOnly": "cross-env NODE_ENV=production tsc --build",
"generate:oas": "yarn start run ../../../../packages/medusa/src/api --type oas && yarn start clean:oas"
},
"publishConfig": {
"access": "public"
@@ -6,7 +6,8 @@
"start": "node dist/index.js",
"build": "tsc",
"watch": "tsc --watch",
"prepublishOnly": "cross-env NODE_ENV=production tsc --build"
"prepublishOnly": "cross-env NODE_ENV=production tsc --build",
"generate:references": "yarn start generate all --merge"
},
"publishConfig": {
"access": "public"
+11 -1
View File
@@ -10,6 +10,16 @@
]
},
"lint": { },
"watch": { }
"watch": { },
"generate:references": {
"dependsOn": [
"^build"
]
},
"generate:oas": {
"dependsOn": [
"^build"
]
}
}
}