Skip to content

Commit

Permalink
fix: Generation of aggregator package (#150)
Browse files Browse the repository at this point in the history
Co-authored-by: Junjie Tang <[email protected]>
  • Loading branch information
marikaner and jjtang1985 authored May 25, 2020
1 parent b406d7a commit 0bf1d89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
## Fixed Issues

- Fix the OData client generator to avoid a compilation error when a complex type only contain complex types.
- Fix the dependency versions in the aggregator package generated by the OData client generator.


# 1.20.1
Expand Down
4 changes: 2 additions & 2 deletions packages/generator/src/aggregator-package/package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export function packageJson(
version: 'node ../../../after-version-update.js'
},
dependencies: dependencies.reduce((deps, service) => {
deps[service] = `^${generatorVersion}`;
deps[service] = `^${versionInPackageJson || generatorVersion}`;
return deps;
}, {}),
peerDependencies: {
'@sap-cloud-sdk/core': `^${generatorVersion}`
'@sap-cloud-sdk/core': `^${versionInPackageJson || generatorVersion}`
}
},
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ describe('package-json', () => {
' "version": "node ../../../after-version-update.js"\n' +
' },\n' +
' "dependencies": {\n' +
' "@sap/cloud-sdk-vdm-business-area-service": "^1.17.4-alpha.8",\n' +
' "@sap/cloud-sdk-vdm-business-partner-service": "^1.17.4-alpha.8"\n' +
' "@sap/cloud-sdk-vdm-business-area-service": "^2.0.0",\n' +
' "@sap/cloud-sdk-vdm-business-partner-service": "^2.0.0"\n' +
' },\n' +
' "peerDependencies": {\n' +
' "@sap-cloud-sdk/core": "^1.17.4-alpha.8"\n' +
' "@sap-cloud-sdk/core": "^2.0.0"\n' +
' }\n' +
'}\n';
expect(actual).toEqual(expected);
Expand Down

0 comments on commit 0bf1d89

Please sign in to comment.