|
2 | 2 | "name": "scrolldir-observable", |
3 | 3 | "version": "1.0.0", |
4 | 4 | "description": "An observable for getting the scroll direction.", |
5 | | - "main": "dist/scrolldir-observable.umd.js", |
6 | | - "module": "dist/scrolldir-observable.esm.js", |
| 5 | + "main": "dist/index.js", |
| 6 | + "module": "dist/index.es.js", |
7 | 7 | "typings": "dist/types/index.d.ts", |
8 | 8 | "files": [ |
9 | 9 | "dist" |
10 | 10 | ], |
11 | 11 | "scripts": { |
12 | | - "build": "rimraf dist && tsc && rollup -c rollup.config.ts", |
13 | | - "test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --timeout 20000 --reporter nyan --require ts-node/register test/index.spec.ts", |
| 12 | + "clean": "rimraf dist", |
| 13 | + "build": "npm run clean && tsc && npm run build:standalone && npm run build:bundle", |
| 14 | + "build:bundle": "rollup -c rollup.bundle.config.js", |
| 15 | + "build:standalone": "rollup -c rollup.config.ts", |
| 16 | + "test": "npm run build:bundle && TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --timeout 10000 --reporter nyan --require ts-node/register test/*.spec.ts", |
14 | 17 | "prepare": "npm run build", |
15 | 18 | "prepublish": "check-node-version --npm \">=4\" || npm run prepare" |
16 | 19 | }, |
|
24 | 27 | "author": "Jan Riemer <janriemer@tutanota.de>", |
25 | 28 | "license": "MIT", |
26 | 29 | "dependencies": { |
27 | | - "rxjs": "^6.2.1" |
| 30 | + "rxjs": "^6.3.3" |
28 | 31 | }, |
29 | 32 | "devDependencies": { |
30 | 33 | "@types/chai": "^4.1.4", |
31 | | - "@types/jsdom": "^11.0.6", |
| 34 | + "@types/jsdom": "11.12.0", |
32 | 35 | "@types/mocha": "^5.2.4", |
33 | 36 | "@types/sinon": "^5.0.1", |
34 | 37 | "chai": "^4.1.2", |
35 | 38 | "check-node-version": "^3.2.0", |
36 | 39 | "coffeescript": "^2.3.1", |
37 | | - "jsdom": "11.0.0", |
| 40 | + "jsdom": "11.5.1", |
38 | 41 | "mocha": "^5.2.0", |
39 | 42 | "rimraf": "^2.6.2", |
40 | | - "rollup": "^0.64.1", |
| 43 | + "rollup": "^0.66.6", |
41 | 44 | "rollup-plugin-commonjs": "^9.1.5", |
42 | 45 | "rollup-plugin-json": "^3.0.0", |
43 | 46 | "rollup-plugin-node-resolve": "^3.3.0", |
44 | 47 | "rollup-plugin-sourcemaps": "^0.4.2", |
| 48 | + "rollup-plugin-terser": "^3.0.0", |
45 | 49 | "rollup-plugin-typescript2": "^0.16.1", |
46 | 50 | "rxjs-marbles": "^4.3.1", |
47 | 51 | "sinon": "^6.1.5", |
|
0 commit comments