Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
ci: setting scoped packages to public scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dmijatovic committed Mar 4, 2020
1 parent ada59ca commit 5498383
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
19 changes: 19 additions & 0 deletions LERNA.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
8 changes: 8 additions & 0 deletions NPM.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
3 changes: 3 additions & 0 deletions components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@
"@dv4all/icons": "^0.1.2",
"@dv4all/wcp-utils": "^0.1.2"
},
"publishConfig": {
"access": "public"
},
"gitHead": "1b7eb9b21d7b61c21c73c4fa3385141b470fe16a"
}
3 changes: 3 additions & 0 deletions icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,8 @@
"dependencies": {
"@dv4all/wcp-utils": "^0.1.2"
},
"publishConfig": {
"access": "public"
},
"gitHead": "1b7eb9b21d7b61c21c73c4fa3385141b470fe16a"
}
3 changes: 3 additions & 0 deletions loaders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions utils/fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 3 additions & 0 deletions utils/wcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 5498383

Please sign in to comment.