From e437055289c239a571b4e17ae2f090dba9e3b453 Mon Sep 17 00:00:00 2001 From: "yuqi.pyq" Date: Tue, 12 Nov 2019 16:18:12 +0800 Subject: [PATCH] chore(lerna): add publish config for leaf packages --- lerna.json | 8 ++++---- package.json | 2 +- packages/component/package.json | 5 ++++- packages/core/package.json | 5 ++++- packages/layers/package.json | 5 ++++- packages/maps/package.json | 5 ++++- packages/renderer/package.json | 5 ++++- packages/scene/package.json | 5 ++++- packages/source/package.json | 5 ++++- packages/utils/package.json | 5 ++++- 10 files changed, 37 insertions(+), 13 deletions(-) diff --git a/lerna.json b/lerna.json index 129044dfec..9d523790c5 100644 --- a/lerna.json +++ b/lerna.json @@ -4,10 +4,7 @@ ], "command": { "publish": { - "npmClient": "yarn", "ignoreChanges": ["*.md"], - "verifyAccess": false, - "verifyRegistry": false, "allowBranch": [ "master", "develop", @@ -18,5 +15,8 @@ }, "version": "0.0.1", "npmClient": "yarn", - "useWorkspaces": true + "useWorkspaces": true, + "publishConfig": { + "access": "public" + } } \ No newline at end of file diff --git a/package.json b/package.json index c337a97c86..0daea65d77 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "commit": "git-cz", "version": "lerna version --conventional-commits", "prerelease": "yarn build", - "release": "lerna publish from-package", + "release": "lerna publish from-package --registry https://registry.npmjs.com/", "storybook": "start-storybook -p 6006", "test": "jest", "coveralls": "jest --coverage && cat ./tests/coverage/lcov.info | coveralls", diff --git a/packages/component/package.json b/packages/component/package.json index fbc0b1eb69..01ee495b23 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -29,5 +29,8 @@ "inversify-inject-decorators": "^3.1.0", "inversify-logging": "^0.2.1" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } } diff --git a/packages/core/package.json b/packages/core/package.json index ec0c4f7041..5aa6dad2dd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -41,5 +41,8 @@ "@types/lodash": "^4.14.138", "@types/viewport-mercator-project": "^6.1.0" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } } diff --git a/packages/layers/package.json b/packages/layers/package.json index 49ecbf6253..55d4e74d3e 100644 --- a/packages/layers/package.json +++ b/packages/layers/package.json @@ -46,5 +46,8 @@ "@types/gl-matrix": "^2.4.5", "@types/lodash": "^4.14.138" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } } diff --git a/packages/maps/package.json b/packages/maps/package.json index 4440779373..9e2e404c3f 100644 --- a/packages/maps/package.json +++ b/packages/maps/package.json @@ -33,5 +33,8 @@ "@types/mapbox-gl": "^0.54.3", "@types/viewport-mercator-project": "^6.1.0" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } } diff --git a/packages/renderer/package.json b/packages/renderer/package.json index 7146ead8f1..4ac550ae11 100644 --- a/packages/renderer/package.json +++ b/packages/renderer/package.json @@ -26,5 +26,8 @@ "reflect-metadata": "^0.1.13", "regl": "^1.3.11" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } } diff --git a/packages/scene/package.json b/packages/scene/package.json index d673c20f9e..280684d364 100644 --- a/packages/scene/package.json +++ b/packages/scene/package.json @@ -28,5 +28,8 @@ "mapbox-gl": "^1.2.1", "reflect-metadata": "^0.1.13" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } } diff --git a/packages/source/package.json b/packages/source/package.json index 0e87e57885..991b3cdcde 100644 --- a/packages/source/package.json +++ b/packages/source/package.json @@ -46,5 +46,8 @@ "@types/lodash": "^4.14.138", "@types/viewport-mercator-project": "^6.1.0" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } } diff --git a/packages/utils/package.json b/packages/utils/package.json index f3bf854fcc..2de57cd6a4 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -33,5 +33,8 @@ "@types/gl-matrix": "^2.4.5", "@types/lodash": "^4.14.138" }, - "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae" + "gitHead": "0563f357f3a07c099bf1ffa9350e6fa3c88353ae", + "publishConfig": { + "access": "public" + } }