-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
85 lines (85 loc) · 2.25 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"name": "try-flatten",
"version": "1.3.0",
"description": "✈ 类型安全的扁平化的 try-catch,支持同步函数、回调函数和 PromiseLike",
"scripts": {
"prepare": "husky install",
"build": "vite build",
"lint:js": "eslint --ext=.cjs,.mjs,.ts,.tsx src test",
"lint:js:fix": "eslint --ext=.cjs,.mjs,.ts,.tsx src test --fix",
"lint:type": " tsc --project tsconfig.json",
"lint": "npm run lint:js && npm run lint:type",
"lint:fix": "npm run lint:js:fix && npm run lint:type",
"test": "vitest run",
"test:coverage": "vitest run --coverage"
},
"engines": {
"node": ">=12"
},
"engineStrict": true,
"sideEffects": false,
"main": "./dist-cjs/index.cjs",
"module": "./dist-esm/index.mjs",
"exports": {
".": {
"import": "./dist-esm/index.mjs",
"require": "./dist-cjs/index.cjs",
"types": "./dist-types/index.d.ts"
},
"./package.json": "./package.json"
},
"types": "./dist-types/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist-types/index.d.ts",
"./dist-types/*"
]
}
},
"files": [
"dist-cjs",
"dist-esm",
"dist-types"
],
"keywords": [
"cloudcome",
"ydr.me",
"try",
"catch",
"finally",
"error",
"flat",
"flatten",
"promise",
"async",
"await",
"callback"
],
"author": "云淡然 <[email protected]> (https://ydr.me)",
"homepage": "https://github.com/FrontEndDev-org/try-flatten",
"repository": "https://github.com/FrontEndDev-org/try-flatten",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@commitlint/types": "^17.4.4",
"@types/lodash": "^4.14.194",
"@types/node": "^18.16.8",
"@types/prettier": "^2.7.2",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@vitest/coverage-c8": "^0.31.0",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-define-config": "^1.20.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"typescript": "^5.0.4",
"vite": "^4.3.5",
"vite-plugin-dts": "^2.3.0",
"vite-plugin-externalize-deps": "^0.6.0",
"vitest": "^0.31.0"
}
}