Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dependencies): Separate SDK Dependencies #61

Merged
8 changes: 8 additions & 0 deletions .github/workflows/generate-and-test-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
with:
name: core
path: core
- uses: actions/upload-artifact@v3
with:
name: dependencies
path: generator/src/main/resources/dependencies/package.json
- uses: actions/upload-artifact@v3
with:
name: sdk
Expand All @@ -41,6 +45,10 @@ jobs:
with:
name: sdk
path: generator/target/sdk
- uses: actions/download-artifact@v3
with:
name: dependencies
path: generator/src/main/resources/dependencies/package.json
- uses: actions/download-artifact@v3
with:
name: core
Expand Down
19 changes: 19 additions & 0 deletions generator/src/main/resources/dependencies/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"main": "lib/index.js",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@types/node": "20.1.2",
"@types/uuid": "9.0.1",
"uuid": "9.0.0",
"typescript-json-serializer": "6.0.0"
},
"devDependencies": {
"prettier": "2.8.7",
"prettier-plugin-organize-imports": "3.2.2",
"typedoc": "0.25.0",
"typedoc-plugin-markdown": "4.0.0-next.17",
"typedoc-plugin-missing-exports": "2.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,8 @@
"clean": "rm -rf .openapi-generator apis auth http types",
"build": "prettier --write '**/*.ts'",
"fetch-core": "mkdir -p core/src && cp -r ../../../core/src ./core/ && cp -r ../../../core/index.ts ./core/index.ts",
"merge-packages": "npm install -g merge-packages && npx merge-packages -o package.json package.json ../../../core/package.json",
"merge-packages": "npm install -g merge-packages && npx merge-packages -o package.json package.json ../../src/main/resources/dependencies/package.json ../../../core/package.json",
"generate-docs": "npx typedoc",
"prepare-sdk": "npm run merge-packages && npm run fetch-core && npm run clean && npm i && npm run build"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@types/node": "20.1.2",
"@types/uuid": "9.0.1",
"uuid": "9.0.0",
"typescript-json-serializer": "6.0.0"
},
"devDependencies": {
"prettier": "2.8.7",
"prettier-plugin-organize-imports": "3.2.2",
"typedoc": "0.25.0",
"typedoc-plugin-markdown": "4.0.0-next.17",
"typedoc-plugin-missing-exports": "2.1.0"
}
}