generated from un-ts/lib-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
86 lines (86 loc) · 2.08 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
{
"name": "sh-syntax",
"version": "0.0.2",
"type": "module",
"description": "A WASM shell parser and formatter with bash support, based on mvdan/sh",
"repository": "git+https://github.com/rx-ts/sh-syntax.git",
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"engines": {
"node": ">=v14"
},
"exports": {
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"browser": "./lib/browser.js",
"types": "./lib/index.d.ts"
},
"types": "lib",
"files": [
"lib",
"main.wasm",
"vendors",
"!**/*.tsbuildinfo"
],
"scripts": {
"build": "run-p build:*",
"build:r": "r -f cjs",
"build:ts": "tsc -p src",
"lint": "run-p lint:*",
"lint:es": "eslint . --cache -f friendly --max-warnings 10",
"lint:tsc": "tsc --noEmit",
"prepare": "simple-git-hooks",
"prerelease": "pnpm build",
"release": "changeset publish",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"typecov": "type-coverage",
"wasm": "GOOS=js GOARCH=wasm go build -o main.wasm"
},
"dependencies": {
"tslib": "^2.3.1"
},
"devDependencies": {
"@1stg/lib-config": "^5.4.0",
"@changesets/changelog-github": "^0.4.4",
"@changesets/cli": "^2.22.0",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@types/web": "^0.0.61",
"ts-jest": "^27.1.4",
"type-coverage": "^2.21.1",
"typescript": "^4.6.3"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"<rootDir>/vendors/"
],
"extensionsToTreatAsEsm": [
".ts"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1",
"^sh-syntax$": "<rootDir>/src"
},
"globals": {
"ts-jest": {
"useESM": true,
"tsconfig": {
"importHelpers": false
}
}
}
},
"typeCoverage": {
"atLeast": 100,
"cache": true,
"detail": true,
"ignoreAsAssertion": true,
"ignoreNonNullAssertion": true,
"showRelativePath": true,
"strict": true,
"update": true
}
}