-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
90 lines (90 loc) · 3.46 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
{
"name": "blank-ts-repo",
"version": "0.0.0",
"publishConfig": {
"access": "public"
},
"description": "Blank TS repo",
"source": "src/main/ts/index.ts",
"main": "target/bundle/blank-ts-repo.js",
"module": "target/bundle/blank-ts-repo.js",
"unpkg": "target/bundle/blank-ts-repo.umd.js",
"types": "typings/index.d.ts",
"typescript": {
"definition": "typings/index.d.ts"
},
"scripts": {
"clean": "rimraf target typings flow-typed buildcache docs coverage buildstamp.json",
"lint": "eslint src/**/*.{ts,js}",
"lint:fix": "yarn lint --fix",
"format": "prettier --write \"src/**/*.ts\"",
"test": "yarn lint && yarn test:unit && yarn test:depcheck && yarn test:depaudit",
"test:unit": "c8 -r html -r text -r lcov uvu -r tsm 'src/test/ts'",
"test:target": "uvu -r tsm -r @qiwi/esm src/test/js",
"test:deps": "npm-run-all -p -l test:depcheck test:depauditfix",
"test:depcheck": "npm_config_yes=true npx depcheck --ignores mkdirp,rimraf,tsc-esm-fix,tslib,@types/node,typedoc,@qiwi/esm,tsm",
"test:depaudit": "yarn audit --level=moderate --groups=dependencies; [[ $? -ge 4 ]] && exit 1 || exit 0",
"test:depauditfix": "npm_config_yes=true npx yarn-audit-fix --audit-level=moderate",
"prebuild": "yarn clean && npm_config_yes=true npx buildstamp --git --out.path buildstamp.json",
"build": "npm-run-all -p -l build:es5 build:es6 build:esnext build:ts build:libdef build:bundle docs && yarn build:esmfix",
"build:es5": "mkdirp target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdirp target/es6 && tsc -p tsconfig.es6.json",
"build:esnext": "mkdirp target/esnext && tsc -p tsconfig.esnext.json",
"build:ts": "cpy src/main/ts/ target/ts/",
"build:bundle": "microbundle --tsconfig tsconfig.es5.json build src/main/ts/index.ts -o target/bundle",
"build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json --tsconfig=tsconfig.esnext.json",
"build:esmfix": "yarn tsc-esm-fix --target=target/es6 --target=target/esnext --dirnameVar=false",
"docs": "typedoc --options ./typedoc.json ./src/main/ts",
"uglify": "for f in $(find target -name '*.js'); do short=${f%.js}; terser -c -m -o $short.js -- $f; done",
"postupdate": "yarn && yarn test:deps && yarn build && yarn test",
"updeps": "npm_config_yes=true npx npm-upgrade"
},
"dependencies": {
"tslib": "^2.5.0"
},
"devDependencies": {
"@qiwi/esm": "^1.1.8",
"@qiwi/libdefkit": "^5.0.0",
"@qiwi/npm-run-all": "^4.1.7",
"@types/node": "^18.15.11",
"c8": "^7.13.0",
"cpy-cli": "^4.2.0",
"earljs": "^0.2.3",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-qiwi": "^2.1.1",
"microbundle": "^0.15.1",
"mkdirp": "^2.1.6",
"prettier": "^2.8.7",
"prettier-config-qiwi": "^2.1.0",
"rimraf": "^4.4.1",
"terser": "^5.16.8",
"tsc-esm-fix": "^2.20.12",
"tsm": "^2.3.0",
"typedoc": "^0.23.28",
"typescript": "5.0.3",
"uvu": "^0.5.6"
},
"repository": {
"type": "git",
"url": "https://github.com/qiwi/blank-ts-repo.git"
},
"keywords": [
"blank-ts-repo"
],
"files": [
"README.md",
"CHANGELOG.md",
"target",
"typings",
"flow-typed",
"buildstamp.json"
],
"author": "Anton Golub <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/qiwi/blank-ts-monorepo/issues"
},
"homepage": "https://github.com/qiwi/blank-ts-monorepo/#readme",
"prettier": "prettier-config-qiwi"
}