Skip to content

Commit 0b8bbe8

Browse files
committed
Add lib clean to build script
1 parent 8620ec7 commit 0b8bbe8

File tree

4 files changed

+5
-211
lines changed

4 files changed

+5
-211
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Efficiently generate cryptographically strong random strings of specified entrop
1515
- [Efficiency](#Efficiency)
1616
- [Custom Bytes](#CustomBytes)
1717
- [Entropy Bits](#EntropyBits)
18-
- [Upgrading From Version 2 to 3](#Upgrade)
18+
- [Upgrading To Version 3](#Upgrade)
1919
- [TL;DR 2](#TLDR2)
2020

2121
### <a name="Installation"></a>Installation
@@ -508,7 +508,7 @@ The final line represents the number of entropy bits `N` as a function of the nu
508508

509509
[TOC](#TOC)
510510

511-
### <a name="Upgrade"></a>Upgrading From Version 2 to 3
511+
### <a name="Upgrade"></a>Upgrading To Version 3
512512

513513
EntropyString version 3 does not introduce any new functionality. The sole purpose of the version 3 release is to simplify and tighten the API. Backward incompatible changes made in this effort necessitated a semantic major release.
514514

@@ -569,8 +569,7 @@ becomes
569569

570570
- Remove `bitsWithRiskPower` and `bitsWithPowers` from `Entropy`
571571
- Move predefined `CharSet` declarations from `CharSet` to `Entropy`
572-
- `Entropy.bits` is a class method of the new `Entropy` class
573-
572+
- `Entropy.bits` is a class method of the new `Entropy` class
574573

575574
[TOC](#TOC)
576575

dist/lib/random.js

Lines changed: 0 additions & 206 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"test": "test"
1010
},
1111
"scripts": {
12-
"build": "BABEL_ENV=production babel --out-dir=dist lib/*.js",
12+
"build": "yarn clean && BABEL_ENV=production babel --out-dir=dist lib/*.js",
13+
"clean": "rm -f dist/lib/*.js",
1314
"examples": "cd examples && BABEL_ENV=development babel --out-dir=dist *.js && cd ..",
1415
"prepare": "yarn build",
1516
"test": "ava"

0 commit comments

Comments
 (0)