Skip to content

Commit 03910f2

Browse files
committed
Fix: build instruction
1 parent 65494c3 commit 03910f2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This repository branch modifies Stylelint and creates a bundle:
1313

1414
* Download or clone this repository.
1515
* Run `npm install`
16-
* Run `npm run build` (will refresh the version of stylelint).
16+
* Run `npm run build`.
1717
* An IIFE bundle `stylelint-bundle.min.js` is created in `dist` directory using the modified version of Stylelint.
1818
* Run `npm test` for testing.
1919

@@ -53,12 +53,20 @@ The resulting bundle:
5353

5454
## For contributors
5555

56-
To update to a new version of Stylelint specify its **exact version** in package.json `version`:
56+
To update to a new version of Stylelint:
5757

5858
```
59-
"version": "14.2.0",
59+
npm install stylelint@latest
60+
npm run build
61+
```
62+
63+
It will install the latest stylelint, bump the version number in `package.json` and `package-lock.json`, then build the bundle.
64+
65+
To test it:
66+
67+
```
68+
npm test
6069
```
61-
Then run the `build` script. In case of failure update the rules in `build/index.js`.
6270

6371
## Debug the bundle
6472

0 commit comments

Comments
 (0)