diff --git a/LERNA.md b/LERNA.md index b87c944..cc55121 100644 --- a/LERNA.md +++ b/LERNA.md @@ -101,3 +101,22 @@ Lerna publish supports automaticall creation of CHANGELOG.md if you use [commits # you need to provide public access lerna publish --access public ``` + +### Publishing scoped packages + +To publish scoped packages as open source you need to [add definition in package.json](https://github.com/lerna/lerna/tree/master/commands/publish#per-package-configuration) + +```json +// ... OTHER +"publishConfig": { + "access": "public" +}, +// ... OTHER + +``` + +When publishing scoped packages, the access level defaults to restricted. If you want your scoped package to be [publicly viewable (and installable)](https://docs.npmjs.com/misc/config#access): + +```bash +npm config set access public +``` diff --git a/NPM.md b/NPM.md index 3c461db..f0083c8 100644 --- a/NPM.md +++ b/NPM.md @@ -91,3 +91,11 @@ lerna run release ``` Alternatively you can use [lerna publish command](LERNA.md) which will perform all these task and update CHANGELOG file you. + +### Publishing scoped packages + +When publishing scoped packages, the access level defaults to restricted. If you want your scoped package to be [publicly viewable (and installable)](https://docs.npmjs.com/misc/config#access): + +```bash +npm config set access public +``` diff --git a/components/package.json b/components/package.json index c112bd6..d98a356 100644 --- a/components/package.json +++ b/components/package.json @@ -52,5 +52,8 @@ "@dv4all/icons": "^0.1.2", "@dv4all/wcp-utils": "^0.1.2" }, + "publishConfig": { + "access": "public" + }, "gitHead": "1b7eb9b21d7b61c21c73c4fa3385141b470fe16a" } diff --git a/icons/package.json b/icons/package.json index a72c57c..35d63fd 100644 --- a/icons/package.json +++ b/icons/package.json @@ -57,5 +57,8 @@ "dependencies": { "@dv4all/wcp-utils": "^0.1.2" }, + "publishConfig": { + "access": "public" + }, "gitHead": "1b7eb9b21d7b61c21c73c4fa3385141b470fe16a" } diff --git a/loaders/package.json b/loaders/package.json index 65042f9..db80307 100644 --- a/loaders/package.json +++ b/loaders/package.json @@ -40,6 +40,9 @@ "type": "git", "url": "git+https://github.com/dmijatovic/dv4all-wcp-lerna.git" }, + "publishConfig": { + "access": "public" + }, "bugs": { "url": "https://github.com/dmijatovic/dv4all-wcp-lerna/issues" }, diff --git a/utils/fs/package.json b/utils/fs/package.json index 0c2a42e..fe73641 100644 --- a/utils/fs/package.json +++ b/utils/fs/package.json @@ -31,6 +31,9 @@ "type": "git", "url": "git+https://github.com/dmijatovic/dv4all-wcp-lerna.git" }, + "publishConfig": { + "access": "public" + }, "bugs": { "url": "https://github.com/dmijatovic/dv4all-wcp-lerna/issues" }, diff --git a/utils/wcp/package.json b/utils/wcp/package.json index 75090b1..f7b0799 100644 --- a/utils/wcp/package.json +++ b/utils/wcp/package.json @@ -38,6 +38,9 @@ "type": "git", "url": "git+https://github.com/dmijatovic/nuxt-next-lerna.git" }, + "publishConfig": { + "access": "public" + }, "bugs": { "url": "https://github.com/dmijatovic/nuxt-next-lerna/issues" },