Skip to content

Commit

Permalink
chore: transform private references to be local (aws#3320)
Browse files Browse the repository at this point in the history
In order for dependabot to be able to identify package updates, it needs
to be able to resolve all packages in the dependency closure. Private
packages are not published to the npmjs.com registry and fail resolving.

This changes the private packages to use local path references within
the mono-repo, so that dependabot can work normally. This can also
enable standard use of `npm audit`.
  • Loading branch information
RomainMuller authored Jul 17, 2019
1 parent 50c7319 commit b6dadd1
Show file tree
Hide file tree
Showing 258 changed files with 81,259 additions and 72,900 deletions.
4 changes: 2 additions & 2 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ update_configs:
ignored_updates:
- match:
# Don't suggest upgrading @types/node to versions >= 9
dependency_name: @types/node
version_requirements: '>= 9'
dependency_name: '@types/node'
version_requirement: '>= 9'
version_requirement_updates: increase_versions
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ echo "==========================================================================
echo "cleanup and start bootstrapping..."
lerna clean --yes
lerna bootstrap --reject-cycles --ci

echo "============================================================================================="
echo "installing local links..."
node scripts/install-local-deps.js
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lerna": "2.5.1",
"lerna": "3.15.0",
"packages": [
"packages/*",
"packages/@aws-cdk/*",
Expand Down
2,648 changes: 1,054 additions & 1,594 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
},
"devDependencies": {
"@types/jest": "^24.0.15",
"@types/node": "^8.10.49",
"@types/node": "^8.10.50",
"@types/nodeunit": "^0.0.30",
"conventional-changelog-cli": "^2.0.21",
"fs-extra": "^8.1.0",
"jest": "^24.8.0",
"jsii-diff": "^0.14.0",
"lerna": "^3.15.0",
"nodeunit": "^0.11.3",
"nyc": "^14.1.1",
"ts-jest": "^24.0.2",
"tslint": "^5.17.0",
"typescript": "^3.5.2"
"tslint": "^5.18.0",
"typescript": "^3.5.3"
},
"repository": {
"type": "git",
Expand Down
66 changes: 63 additions & 3 deletions packages/@aws-cdk/alexa-ask/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/assert": "^1.0.0",
"cdk-build-tools": "^1.0.0",
"cfn2ts": "^1.0.0",
"pkglint": "^1.0.0"
"cdk-build-tools": "file:../../../tools/cdk-build-tools",
"cfn2ts": "file:../../../tools/cfn2ts",
"pkglint": "file:../../../tools/pkglint"
},
"dependencies": {
"@aws-cdk/core": "^1.0.0"
Expand Down
70 changes: 56 additions & 14 deletions packages/@aws-cdk/app-delivery/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
"devDependencies": {
"@aws-cdk/assert": "^1.0.0",
"@aws-cdk/aws-s3": "^1.0.0",
"cdk-build-tools": "^1.0.0",
"cdk-integ-tools": "^1.0.0",
"cdk-build-tools": "file:../../../tools/cdk-build-tools",
"cdk-integ-tools": "file:../../../tools/cdk-integ-tools",
"fast-check": "^1.15.1",
"pkglint": "^1.0.0"
"pkglint": "file:../../../tools/pkglint"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit b6dadd1

Please sign in to comment.