Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ title: bolt publish

---

Publish new version(s) of your package(s) to npm
Publish new version of your package(s) on npm

### `publish-lock`
*Once a package is published, you can never modify that specific version, so take care before publishing.*

Lock your package(s) on the npm registry
## Commands

### `publish-unlock`
### **`bolt publish`**

Unlock your package(s) on the npm registry
This will visit every workspace in the repository and try to publish workspace which has version greater than already published version.
36 changes: 35 additions & 1 deletion docs/run.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,38 @@ title: bolt run

---

`bolt run [script]` Run a script in a package
Runs a defined package script.

You may define [scripts](https://yarnpkg.com/en/docs/package-json#toc-scripts) in your repository's [package.json](https://yarnpkg.com/en/docs/package-json) file.

```
{
"name": "my-package",
"scripts": {
"build": "babel src -d lib",
"test": "jest"
}
}
```

## Commands

### **bolt run \<script\> [arguments]**

This will run the script defined in your package json. All the arguments are passed down to the script. For example:

```
bolt run test
```

You can pass arguments to the script by keeping them after the command. For example, to run *jest* in watch mode:

```
bolt run test --watch
```

## Related commands

[`bolt workspace run`](/docs/workspace-run.html)

[`bolt workspaces run`](/docs/workspaces-run.html)