|
1 | 1 | { |
2 | 2 | "name": "@casperengl/try-catch", |
| 3 | + "license": "MIT", |
3 | 4 | "version": "1.8.3", |
| 5 | + "description": "Functional library to try-catch code that accepts functions and promises", |
| 6 | + "author": "Casper Engelmann <me@casperengelmann.com>", |
4 | 7 | "type": "module", |
5 | | - "main": "lib/try-catch.umd.js", |
6 | | - "browser": "lib/try-catch.umd.js", |
7 | | - "module": "lib/try-catch.es.js", |
8 | | - "types": "lib/try-catch.d.ts", |
| 8 | + "main": "./lib/index.js", |
| 9 | + "module": "./lib/index.esm.js", |
| 10 | + "jsnext:main": "./lib/index.esm.js", |
| 11 | + "umd:main": "./lib/try-catch.umd.production.js", |
| 12 | + "unpkg": "./lib/try-catch.umd.production.js", |
| 13 | + "jsdelivr": "./lib/try-catch.umd.production.js", |
| 14 | + "browser": "./lib/try-catch.umd.production.js", |
| 15 | + "source": "./src/index.ts", |
| 16 | + "types": "./lib/index.d.ts", |
| 17 | + "files": [ |
| 18 | + "lib" |
| 19 | + ], |
| 20 | + "directories": { |
| 21 | + "lib": "lib" |
| 22 | + }, |
9 | 23 | "exports": { |
10 | | - "require": "./lib/try-catch.cjs.js", |
11 | | - "import": "./lib/try-catch.es.js", |
12 | | - "default": "./lib/try-catch.es.js", |
13 | | - "node": "./lib/try-catch.cjs.js", |
14 | | - "browser": "./lib/try-catch.umd.js" |
| 24 | + "./package.json": "./package.json", |
| 25 | + ".": { |
| 26 | + "import": "./lib/try-catch.esm.js", |
| 27 | + "require": "./lib/try-catch.cjs.js" |
| 28 | + } |
| 29 | + }, |
| 30 | + "scripts": { |
| 31 | + "coverage": "jest --coverage --coverageReporters=text-lcov", |
| 32 | + "test": "cross-env NODE_ENV=testing jest", |
| 33 | + "watch:test": "npm run test --watch", |
| 34 | + "prebuild": "tsc -d", |
| 35 | + "build": "rollup -c rollup.config.js", |
| 36 | + "prepublishOnly": "npm test" |
15 | 37 | }, |
16 | | - "license": "MIT", |
17 | 38 | "publishConfig": { |
18 | 39 | "registry": "https://registry.npmjs.org/", |
19 | 40 | "access": "public" |
20 | 41 | }, |
21 | | - "size-limit": [ |
22 | | - { |
23 | | - "path": "./lib/try-catch.es.js" |
24 | | - }, |
25 | | - { |
26 | | - "path": "./lib/try-catch.js" |
27 | | - }, |
28 | | - { |
29 | | - "path": "./lib/try-catch.umd.js" |
30 | | - } |
| 42 | + "repository": { |
| 43 | + "type": "git", |
| 44 | + "url": "git+https://github.com/CasperEngl/try-catch.git" |
| 45 | + }, |
| 46 | + "bugs": { |
| 47 | + "url": "https://github.com/CasperEngl/try-catch/issues" |
| 48 | + }, |
| 49 | + "homepage": "https://refined-github-html-preview.kidonng.workers.dev/CasperEngl/try-catch/raw/master/example/index.html", |
| 50 | + "keywords": [ |
| 51 | + "trycatch", |
| 52 | + "try catch", |
| 53 | + "react", |
| 54 | + "util", |
| 55 | + "utility", |
| 56 | + "promise", |
| 57 | + "function", |
| 58 | + "callback", |
| 59 | + "functional" |
31 | 60 | ], |
32 | 61 | "devDependencies": { |
33 | 62 | "@rollup/plugin-commonjs": "^17.0.0", |
34 | 63 | "@rollup/plugin-node-resolve": "^11.1.0", |
| 64 | + "@rollup/plugin-replace": "^2.3.4", |
35 | 65 | "@rollup/plugin-typescript": "^8.1.0", |
36 | 66 | "@size-limit/preset-small-lib": "^4.9.1", |
37 | 67 | "@types/jest": "^26.0.10", |
|
43 | 73 | "eslint-config-airbnb-base": "^14.0.0", |
44 | 74 | "eslint-config-prettier": "^7.2.0", |
45 | 75 | "eslint-plugin-import": "^2.18.2", |
| 76 | + "fs-extra": "^9.1.0", |
46 | 77 | "jest": "^26.4.2", |
| 78 | + "lodash": "^4.17.20", |
47 | 79 | "miragejs": "^0.1.41", |
48 | | - "rollup": "^2.36.2", |
| 80 | + "rollup": "^2.38.5", |
49 | 81 | "rollup-plugin-cleanup": "^3.2.1", |
50 | 82 | "rollup-plugin-copy": "^3.3.0", |
| 83 | + "rollup-plugin-sourcemaps": "^0.6.3", |
51 | 84 | "rollup-plugin-terser": "^7.0.0", |
52 | 85 | "size-limit": "^4.9.1", |
53 | 86 | "ts-jest": "^26.2.0", |
54 | 87 | "ts-loader": "^8.0.14", |
55 | 88 | "typescript": "^4.1.3" |
56 | | - }, |
57 | | - "scripts": { |
58 | | - "test": "jest", |
59 | | - "watch:test": "npm run test --watch", |
60 | | - "prebuild": "tsc -d --emitDeclarationOnly", |
61 | | - "build": "rollup -c rollup.config.js", |
62 | | - "prepublishOnly": "npm test" |
63 | | - }, |
64 | | - "description": "Package to trycatch code that accepts functions and promises", |
65 | | - "directories": { |
66 | | - "lib": "lib" |
67 | | - }, |
68 | | - "repository": { |
69 | | - "type": "git", |
70 | | - "url": "git+https://github.com/CasperEngl/try-catch.git" |
71 | | - }, |
72 | | - "author": "Casper Engelmann <me@casperengelmann.com>", |
73 | | - "bugs": { |
74 | | - "url": "https://github.com/CasperEngl/try-catch/issues" |
75 | | - }, |
76 | | - "homepage": "https://github.com/CasperEngl/try-catch#readme", |
77 | | - "keywords": [ |
78 | | - "trycatch", |
79 | | - "try catch", |
80 | | - "react", |
81 | | - "util", |
82 | | - "utility", |
83 | | - "promise", |
84 | | - "function", |
85 | | - "callback" |
86 | | - ] |
| 89 | + } |
87 | 90 | } |
0 commit comments