Skip to content

Commit 2af240a

Browse files
author
Cameron Knight
committed
v2.0.0-rc5
1 parent da89d1d commit 2af240a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.0.0-rc5 (2019-03-15)
2+
3+
- Add sourcemaps
4+
15
# 2.0.0-rc4 (2019-03-15)
26

37
- Improve minified bundle size

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "random-js",
33
"description": "A mathematically correct random number generator library for JavaScript.",
4-
"version": "2.0.0-rc4",
4+
"version": "2.0.0-rc5",
55
"author": {
66
"name": "Cameron Kenneth Knight",
77
"email": "ckknight@gmail.com"
@@ -39,11 +39,11 @@
3939
},
4040
"scripts": {
4141
"clean": "rimraf dist",
42-
"build:umd": "rollup -c rollup.config.es3.js --format umd -o dist/random-js.js --name Random",
43-
"build:esm": "rollup -c rollup.config.js --format esm -o dist/random-js.mjs",
42+
"build:umd": "rollup -c rollup.config.es3.js --format umd -o dist/random-js.js --name Random -m",
43+
"build:esm": "rollup -c rollup.config.js --format esm --sourcemap true -o dist/random-js.mjs",
4444
"prebuild": "yarn clean",
4545
"build": "yarn build:umd && yarn build:esm",
46-
"minify": "terser --compress --mangle --output dist/random-js.min.js dist/random-js.js",
46+
"minify": "terser --source-map content=dist/random-js.js.map --compress --mangle --output dist/random-js.min.js dist/random-js.js",
4747
"postbuild": "yarn minify",
4848
"benchmark": "for k in benchmark/*.js; do node $k; done",
4949
"test": "jest",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
"module": "esnext",
55
"declaration": true,
66
"rootDir": "./src",
7-
"strict": true
7+
"strict": true,
88
// "noUnusedLocals": true,
99
// "noUnusedParameters": true,
1010
// "noImplicitReturns": true,
1111
// "noFallthroughCasesInSwitch": true
12+
"sourceMap": true
1213
},
1314
"exclude": ["dist/**"]
1415
}

0 commit comments

Comments
 (0)