-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 loc) · 2.05 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
86
87
88
89
90
91
{
"name": "@moeenn/recover",
"version": "2.0.1",
"author": "moeenn",
"license": "ISC",
"description": "Easy type-safe error handling without try-catch",
"keywords": [
"error",
"handling",
"error-handling",
"try-catch",
"typescript"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"dev": "nodemon --ext ts --exec 'npm run build && node build/src/index.js'",
"build-package": "tsup",
"build": "swc src --out-dir build",
"start": "NODE_ENV=production node build/src/index.js",
"type-check": "tsc --noEmit",
"test": "jest",
"fmt": "npx prettier --write ./src/",
"lint": "npx eslint --fix ./src/ --ext .ts",
"pub": "npm publish --access=public"
},
"jest": {
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
},
"testEnvironment": "node",
"modulePathIgnorePatterns": [
"<rootDir>/build/"
],
"moduleNameMapper": {
"@/(.*)": "<rootDir>/src/$1"
}
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-console": "warn",
"quotes": [
"warn",
"double",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": [
"warn",
"never"
],
"no-unused-vars": "warn"
}
},
"prettier": {
"singleQuote": false,
"semi": false,
"tabWidth": 2,
"trailingComma": "all"
},
"devDependencies": {
"@swc/cli": "^0.3.12",
"@swc/core": "^1.5.5",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.11",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"nodemon": "^3.1.0",
"prettier": "^3.2.5",
"tsup": "^8.1.0",
"typescript": "^5.4.5"
}
}