|
1 | 1 | { |
2 | 2 | "name": "iterable-observer", |
3 | | - "version": "1.0.0-beta.0", |
| 3 | + "version": "1.0.0-beta.3", |
4 | 4 | "license": "LGPL-3.0", |
5 | 5 | |
6 | 6 | "description": "Observable Proposal implement based on Async Generator (ES 2018) & TypeScript", |
|
23 | 23 | }, |
24 | 24 | "source": "source/index.ts", |
25 | 25 | "types": "dist/index.d.ts", |
26 | | - "main": "dist/iterable-observer.umd.js", |
27 | | - "module": "dist/iterable-observer.js", |
| 26 | + "main": "dist/index.js", |
28 | 27 | "devDependencies": { |
29 | | - "@types/jest": "^24.0.23", |
30 | | - "husky": "^3.1.0", |
31 | | - "jest": "^24.9.0", |
32 | | - "lint-staged": "^9.4.3", |
33 | | - "microbundle": "^0.11.0", |
34 | | - "open-cli": "^5.0.0", |
35 | | - "prettier": "^1.19.1", |
36 | | - "ts-jest": "^24.2.0", |
37 | | - "typedoc": "^0.15.3", |
38 | | - "typescript": "^3.7.2" |
| 28 | + "@types/jest": "^25.2.1", |
| 29 | + "@types/node": "^13.11.1", |
| 30 | + "husky": "^4.2.5", |
| 31 | + "jest": "^25.3.0", |
| 32 | + "lint-staged": "^10.1.3", |
| 33 | + "open-cli": "^6.0.1", |
| 34 | + "parcel-bundler": "^1.12.4", |
| 35 | + "prettier": "^2.0.4", |
| 36 | + "ts-jest": "^25.3.1", |
| 37 | + "typedoc": "^0.17.4", |
| 38 | + "typescript": "^3.8.3" |
39 | 39 | }, |
40 | 40 | "prettier": { |
41 | 41 | "singleQuote": true, |
| 42 | + "trailingComma": "none", |
| 43 | + "arrowParens": "avoid", |
42 | 44 | "tabWidth": 4 |
43 | 45 | }, |
44 | 46 | "lint-staged": { |
45 | 47 | "*.{md,json,ts}": [ |
46 | | - "prettier --write", |
47 | | - "git add" |
| 48 | + "prettier --write" |
48 | 49 | ] |
49 | 50 | }, |
50 | 51 | "jest": { |
51 | 52 | "preset": "ts-jest", |
52 | | - "testEnvironment": "node", |
53 | | - "testRegex": "/test/.*\\.(test|spec)?\\.ts$", |
54 | | - "moduleFileExtensions": [ |
55 | | - "js", |
56 | | - "ts", |
57 | | - "json" |
58 | | - ] |
| 53 | + "testTimeout": 8000 |
59 | 54 | }, |
60 | 55 | "scripts": { |
61 | | - "test": "lint-staged && jest", |
| 56 | + "test": "lint-staged && jest --no-cache", |
62 | 57 | "debug": "node --inspect node_modules/jest/bin/jest --runInBand", |
| 58 | + "pack-type": "tsc && rm -f dist/*.{js,map}", |
| 59 | + "pack-dist": "parcel build source/index.ts --global IterableObserver", |
63 | 60 | "pack-docs": "typedoc --name \"Iterable Observer\" --out docs/ source/", |
64 | | - "build": "rm -rf dist/ && microbundle && npm run pack-docs", |
| 61 | + "build": "rm -rf dist/ && npm run pack-type && npm run pack-dist && npm run pack-docs", |
65 | 62 | "help": "npm run pack-docs && open-cli docs/index.html", |
66 | 63 | "prepublishOnly": "npm test && npm run build" |
67 | 64 | }, |
|
0 commit comments