Skip to content

Commit

Permalink
feat: move framework packages to devDependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: components no longer install core framework packages as
their own dependencies, they use the framework packages provided by the
target application instead.

If you are getting `npm install` errors after upgrade, then make sure
your project lists all dependencies required by the extensions you are
using.

Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Sep 8, 2020
1 parent afb99eb commit e2c61ce
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 18 deletions.
8 changes: 6 additions & 2 deletions packages/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
"publishConfig": {
"access": "public"
},
"dependencies": {
"peerDependencies": {
"@loopback/core": "^2.9.5",
"@loopback/rest": "^6.2.0",
"@loopback/rest": "^6.2.0"
},
"dependencies": {
"@loopback/security": "^0.2.18",
"@types/express": "^4.17.8",
"@types/lodash": "^4.14.161",
Expand All @@ -34,8 +36,10 @@
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/openapi-spec-builder": "^2.1.13",
"@loopback/rest": "^6.2.0",
"@loopback/testlab": "^3.2.4",
"@types/node": "^10.17.29",
"jsonwebtoken": "^8.5.1"
Expand Down
5 changes: 4 additions & 1 deletion packages/authorization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"@loopback/security": "^0.2.18",
"debug": "^4.1.1",
"tslib": "^2.0.1"
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/testlab": "^3.2.4",
"@types/debug": "^4.1.5",
"@types/node": "10.17.29",
Expand Down
5 changes: 4 additions & 1 deletion packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"@loopback/model-api-builder": "^2.1.13",
"@loopback/repository": "^2.11.2",
"@loopback/service-proxy": "^2.3.8",
Expand All @@ -36,6 +38,7 @@
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/rest": "^6.2.0",
"@loopback/rest-crud": "^0.8.13",
Expand Down
5 changes: 4 additions & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
"src",
"!*/__tests__"
],
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"@loopback/http-server": "^2.2.0",
"@types/body-parser": "^1.19.0",
"@types/express": "^4.17.8",
Expand All @@ -53,6 +55,7 @@
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/testlab": "^3.2.4",
"@types/debug": "^4.1.5",
"@types/node": "^10.17.29",
Expand Down
5 changes: 4 additions & 1 deletion packages/openapi-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"engines": {
"node": ">=10.16"
},
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"@loopback/repository-json-schema": "^2.4.10",
"debug": "^4.1.1",
"http-status": "^1.4.2",
Expand All @@ -19,6 +21,7 @@
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/openapi-spec-builder": "^2.1.13",
"@loopback/repository": "^2.11.2",
Expand Down
8 changes: 6 additions & 2 deletions packages/repository-json-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,20 @@
"TypeScript",
"JSON Schema"
],
"dependencies": {
"peerDependencies": {
"@loopback/core": "^2.9.5",
"@loopback/repository": "^2.11.2",
"@loopback/repository": "^2.11.2"
},
"dependencies": {
"@types/json-schema": "^7.0.6",
"debug": "^4.1.1",
"tslib": "^2.0.1"
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/repository": "^2.11.2",
"@loopback/testlab": "^3.2.4",
"@types/debug": "^4.1.5",
"@types/node": "^10.17.29",
Expand Down
9 changes: 5 additions & 4 deletions packages/repository-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,25 @@
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@loopback/core": "^2.9.5",
"@loopback/repository": "^2.11.2"
},
"devDependencies": {
"@loopback/build": "^1.7.1",
"@loopback/core": "^2.9.5",
"@loopback/repository": "^2.11.2",
"@types/debug": "^4.1.5",
"@types/lodash": "^4.14.161",
"@types/node": "^10.17.29",
"lodash": "^4.17.20"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"@loopback/testlab": "^3.2.4",
"@types/debug": "^4.1.5",
"debug": "^4.1.1",
"tslib": "^2.0.1"
},
"peerDependencies": {
"@loopback/repository": "^2.11.2"
},
"files": [
"README.md",
"dist",
Expand Down
5 changes: 4 additions & 1 deletion packages/repository/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/testlab": "^3.2.4",
"@types/bson": "^4.0.2",
Expand All @@ -32,7 +36,6 @@
"bson": "4.1.0"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"@loopback/filter": "^1.0.0",
"@types/debug": "^4.1.5",
"debug": "^4.1.1",
Expand Down
8 changes: 6 additions & 2 deletions packages/rest-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@
"publishConfig": {
"access": "public"
},
"dependencies": {
"peerDependencies": {
"@loopback/core": "^2.9.5",
"@loopback/rest": "^6.2.0",
"@loopback/rest": "^6.2.0"
},
"dependencies": {
"ejs": "^3.1.5",
"swagger-ui-dist": "3.32.5",
"tslib": "^2.0.1"
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/rest": "^6.2.0",
"@loopback/testlab": "^3.2.4",
"@types/ejs": "^3.0.4",
"@types/express": "^4.17.8",
Expand Down
5 changes: 4 additions & 1 deletion packages/rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"@loopback/express": "^1.4.1",
"@loopback/http-server": "^2.2.0",
"@loopback/openapi-v3": "^3.4.9",
Expand Down Expand Up @@ -58,6 +60,7 @@
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/openapi-spec-builder": "^2.1.13",
"@loopback/repository": "^2.11.2",
Expand Down
5 changes: 4 additions & 1 deletion packages/security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"debug": "^4.1.1",
"tslib": "^2.0.1"
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/testlab": "^3.2.4",
"@types/debug": "^4.1.5",
"@types/node": "^10.17.29"
Expand Down
5 changes: 4 additions & 1 deletion packages/service-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@loopback/core": "^2.9.5"
},
"devDependencies": {
"@loopback/build": "^6.2.2",
"@loopback/core": "^2.9.5",
"@loopback/eslint-config": "^9.0.2",
"@loopback/testlab": "^3.2.4",
"@types/node": "^10.17.29"
},
"dependencies": {
"@loopback/core": "^2.9.5",
"loopback-datasource-juggler": "^4.24.0",
"tslib": "^2.0.1"
},
Expand Down

0 comments on commit e2c61ce

Please sign in to comment.