Skip to content

Commit 7e57199

Browse files
committed
Update publish section of README.md
`yarn publish` is already supported prepack script in yarn 1.0.0. (and prepublish scripts is running before packing in yarn 1.2.0) See: yarnpkg/yarn#4193 yarnpkg/yarn#4553
1 parent a9f692f commit 7e57199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ $ yarn build
139139
### Publish to npm
140140

141141
```bash
142-
$ npm publish
142+
$ yarn publish
143143
```
144144

145-
:warning: ***CAUTION:*** You should not use `yarn publish` when you would publish to npm. It would cause publishing wrong / empty build because the building process on `prepublish` will run after packaging.
145+
:warning: Use yarn >= 1.0.0 or npm >= 5.0.0.
146146

147147
## Author
148148

0 commit comments

Comments
 (0)