Skip to content

Commit cd592f8

Browse files
committed
update: more builds + moving around
1 parent 30cb2b9 commit cd592f8

File tree

2 files changed

+507
-783
lines changed

2 files changed

+507
-783
lines changed

package.json

Lines changed: 55 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,67 @@
11
{
22
"name": "@casperengl/try-catch",
3+
"license": "MIT",
34
"version": "1.8.3",
5+
"description": "Functional library to try-catch code that accepts functions and promises",
6+
"author": "Casper Engelmann <me@casperengelmann.com>",
47
"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+
},
923
"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"
1537
},
16-
"license": "MIT",
1738
"publishConfig": {
1839
"registry": "https://registry.npmjs.org/",
1940
"access": "public"
2041
},
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"
3160
],
3261
"devDependencies": {
3362
"@rollup/plugin-commonjs": "^17.0.0",
3463
"@rollup/plugin-node-resolve": "^11.1.0",
64+
"@rollup/plugin-replace": "^2.3.4",
3565
"@rollup/plugin-typescript": "^8.1.0",
3666
"@size-limit/preset-small-lib": "^4.9.1",
3767
"@types/jest": "^26.0.10",
@@ -43,45 +73,18 @@
4373
"eslint-config-airbnb-base": "^14.0.0",
4474
"eslint-config-prettier": "^7.2.0",
4575
"eslint-plugin-import": "^2.18.2",
76+
"fs-extra": "^9.1.0",
4677
"jest": "^26.4.2",
78+
"lodash": "^4.17.20",
4779
"miragejs": "^0.1.41",
48-
"rollup": "^2.36.2",
80+
"rollup": "^2.38.5",
4981
"rollup-plugin-cleanup": "^3.2.1",
5082
"rollup-plugin-copy": "^3.3.0",
83+
"rollup-plugin-sourcemaps": "^0.6.3",
5184
"rollup-plugin-terser": "^7.0.0",
5285
"size-limit": "^4.9.1",
5386
"ts-jest": "^26.2.0",
5487
"ts-loader": "^8.0.14",
5588
"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+
}
8790
}

0 commit comments

Comments
 (0)