UNPKG

1.87 kBJSONView Raw
1{
2 "name": "random-js",
3 "description": "A mathematically correct random number generator library for JavaScript.",
4 "version": "2.1.0",
5 "author": {
6 "name": "Cameron Kenneth Knight",
7 "email": "ckknight@gmail.com"
8 },
9 "keywords": [
10 "random"
11 ],
12 "homepage": "https://github.com/ckknight/random-js",
13 "bugs": "https://github.com/ckknight/random-js/issues",
14 "license": "MIT",
15 "repository": "git://github.com/ckknight/random-js",
16 "main": "dist/random-js.umd.js",
17 "module": "dist/random-js.esm.js",
18 "unpkg": "dist/random-js.umd.min.js",
19 "types": "dist/index.d.ts",
20 "files": [
21 "dist"
22 ],
23 "readmeFilename": "README.md",
24 "devDependencies": {
25 "@types/jest": "^24.0.5",
26 "@types/node": "^11.9.4",
27 "benchmark": "^2.1.4",
28 "jest": "^24.1.0",
29 "prettier": "^1.16.4",
30 "rimraf": "^2.6.3",
31 "rollup": "^1.2.1",
32 "rollup-plugin-typescript": "^1.0.0",
33 "rollup-plugin-typescript2": "^0.19.2",
34 "terser": "^3.16.1",
35 "ts-jest": "^23.10.5",
36 "tslint": "^5.12.1",
37 "tslint-config-prettier": "^1.18.0",
38 "typescript": "^3.3.3"
39 },
40 "scripts": {
41 "clean": "rimraf dist",
42 "build:umd": "rollup -c rollup.config.es3.js --format umd -o dist/random-js.umd.js --name Random -m",
43 "build:esm": "rollup -c rollup.config.js --format esm --sourcemap true -o dist/random-js.esm.js",
44 "prebuild": "yarn clean",
45 "build": "yarn build:umd && yarn build:esm",
46 "minify": "terser --source-map content=dist/random-js.umd.js.map --compress --mangle --output dist/random-js.umd.min.js dist/random-js.umd.js",
47 "postbuild": "yarn minify",
48 "benchmark": "for k in benchmark/*.js; do node $k; done",
49 "test": "jest",
50 "lint": "tslint --project .",
51 "prepublish": "yarn clean && yarn lint && yarn test && yarn build"
52 },
53 "testling": {
54 "files": "spec/*.js"
55 },
56 "sideEffects": false
57}