|
22 | 22 | ], |
23 | 23 | "readmeFilename": "README.md", |
24 | 24 | "devDependencies": { |
| 25 | + "@rollup/plugin-terser": "^0.4.3", |
| 26 | + "@rollup/plugin-typescript": "^11.1.1", |
25 | 27 | "@types/jest": "^29.5.2", |
26 | 28 | "@types/node": "^20.3.1", |
27 | 29 | "benchmark": "^2.1.4", |
28 | 30 | "jest": "^29.5.0", |
29 | 31 | "prettier": "^2.8.8", |
30 | 32 | "rimraf": "^5.0.1", |
31 | 33 | "rollup": "^3.25.1", |
32 | | - "rollup-plugin-typescript": "^1.0.1", |
33 | | - "rollup-plugin-typescript2": "^0.35.0", |
34 | | - "terser": "^5.18.1", |
35 | 34 | "ts-jest": "^29.1.0", |
| 35 | + "tslib": "^2.5.3", |
36 | 36 | "tslint": "^6.1.3", |
37 | 37 | "tslint-config-prettier": "^1.18.0", |
38 | 38 | "typescript": "^5.1.3" |
39 | 39 | }, |
40 | 40 | "scripts": { |
41 | 41 | "clean": "rimraf dist/**/*.js dist/**/*.ts dist/**/*.map", |
42 | | - "build:umd": "rollup -c rollup.config.es3.js --format umd -o dist/umd/random-js.js --name Random -m", |
43 | | - "build:esm": "rollup -c rollup.config.js --format esm --sourcemap true -o dist/esm/random-js.js", |
| 42 | + "build:umd": "rollup --c --environment BUILD:prod", |
| 43 | + "build:dev": "rollup --c --environment BUILD:dev", |
44 | 44 | "prebuild": "yarn clean", |
45 | | - "build": "yarn build:umd && yarn build:esm", |
46 | | - "minify": "terser --source-map content=dist/umd/random-js.js.map --compress --mangle --output dist/umd/random-js.min.js dist/umd/random-js.js", |
47 | | - "postbuild": "yarn minify", |
| 45 | + "build": "yarn build:dev && yarn build:prod", |
| 46 | + "watch": "yarn build:dev -- -w", |
48 | 47 | "benchmark": "for k in benchmark/*.cjs; do node $k; done", |
49 | 48 | "test": "jest", |
50 | 49 | "lint": "tslint --project .", |
|
0 commit comments