-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
89 lines (89 loc) · 2.29 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
{
"name": "@trs/expression",
"version": "2.0.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"files": [
"dist"
],
"license": "MIT",
"scripts": {
"prepare": "husky install",
"build": "run-p build:cjs build:esm",
"prebuild:cjs": "rimraf dist/cjs",
"prebuild:esm": "rimraf dist/esm",
"build:cjs": "tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json && tsc-alias -p tsconfig.esm.json",
"postbuild:cjs": "touch dist/cjs/package.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"postbuild:esm": "touch dist/esm/package.json && echo '{ \"type\": \"module\" }' > dist/esm/package.json",
"lint": "xo src/**/*.ts --fix",
"lint:check": "xo src/**/*.ts",
"test": "jest"
},
"dependencies": {
"ohm-js": "^16.3.2"
},
"devDependencies": {
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@swc/core": "^1.2.183",
"@swc/jest": "^0.2.21",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.33",
"husky": "^7.0.4",
"jest": "^28.1.0",
"lint-staged": "^12.4.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"tsc-alias": "^1.6.7",
"typescript": "^4.6.2",
"xo": "^0.48.0"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"jest": {
"transform": {
"^.+\\.(t|j)s?$": "@swc/jest"
},
"extensionsToTreatAsEsm": [
".ts"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"testMatch": [
"<rootDir>/src/**/*.test.ts"
],
"testEnvironment": "node"
},
"xo": {
"prettier": true,
"env": "node",
"rules": {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"unicorn/no-array-reduce": "off",
"no-eq-null": "off",
"eqeqeq": ["error", "always", {"null": "ignore"}]
}
},
"lint-staged": {
"*": "xo --fix"
},
"volta": {
"node": "16.14.2",
"yarn": "1.22.18"
}
}