-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
97 lines (97 loc) · 3.74 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
92
93
94
95
96
97
{
"name": "@qiwi/mixin",
"version": "1.3.8",
"description": "RnD project to compare various mixin approaches in TypeScript",
"private": false,
"main": "./target/es5/index.js",
"module": "./target/es6/index.mjs",
"exports": {
".": {
"require": "./target/es5/index.js",
"import": "./target/es6/index.mjs",
"module": "./target/es6/index.mjs",
"types": "./typings/index.d.ts"
},
"./umd": "./target/umd/mixin.umd.js",
"./cjs": "./target/es5/index.js",
"./esm": "./target/es6/index.mjs",
"./ts": "./target/ts/"
},
"unpkg": "./target/umd/mixin.umd.js",
"types": "./typings/index.d.ts",
"typescript": {
"definition": "./typings/index.d.ts"
},
"files": [
"README.md",
"CHANGELOG.md",
"target",
"typings",
"flow-typed"
],
"scripts": {
"clean": "rimraf target typings docs flow-typed coverage",
"lint": "eslint src/**/*.ts",
"lint:fix": "yarn lint --fix",
"test": "yarn build:links && npm-run-all -p -l lint test:unit test:it test:depcheck test:depaudit",
"test:unit": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.json --runInBand",
"test:it": "npm-run-all -p -l test:it:es5 test:it:umd test:it:esm test:it:ts-node",
"test:it:ts-node": "node --experimental-specifier-resolution=node --experimental-modules --no-warnings --loader ts-node/esm src/it/ts/index.ts",
"test:it:esm": "node src/it/esm/index.mjs",
"test:it:es5": "node src/it/cjs/index.js",
"test:it:umd": "node src/it/umd/index.js",
"test:depcheck": "npm_config_yes=true npx depcheck --ignores @qiwi/mixin,ts-node,eslint-config-*,tsc-esm-fix,typedoc,tslib,@types/jest,rimraf,terser",
"test:depaudit": "yarn audit --level moderate --groups dependencies",
"test:depauditfix": "npm_config_yes=true npx yarn-audit-fix --audit-level=moderate --only=prod",
"test:report": "yarn test && yarn push:report",
"build": "yarn clean && npm-run-all -p -l build:ts build:es5 build:es6 build:libdef build:umd docs && yarn build:esmfix",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "mkdir -p target/ts/ && cp -rp ./src/main/ts/* ./target/ts/",
"build:umd": "microbundle build src/main/ts/index.ts -o target/umd -f umd",
"build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json",
"build:esmfix": "tsc-esm-fix --target='target/es6' --ext='.mjs'",
"build:links": "rm -rf ./node_modules/@qiwi/mixin && ln -s ../../ ./node_modules/@qiwi/mixin",
"push:report": "yarn coveralls:push",
"coveralls:push": "cat ./coverage/lcov.info | coveralls",
"docs": "typedoc",
"uglify": "for f in $(find target -name '*.js'); do short=${f%.js}; terser -c -m -o $short.js -- $f; done",
"postupdate": "yarn && yarn test:depauditfix && yarn build && yarn test"
},
"dependencies": {
"@qiwi/substrate": "^2.1.0",
"tslib": "^2.6.3"
},
"devDependencies": {
"@qiwi/libdefkit": "^6.1.4",
"@qiwi/npm-run-all": "^4.1.7",
"@types/jest": "^29.5.12",
"coveralls": "^3.1.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-qiwi": "^2.1.3",
"jest": "^29.7.0",
"microbundle": "^0.15.1",
"rimraf": "^5.0.0",
"terser": "^5.31.2",
"ts-jest": "^29.2.2",
"ts-node": "^10.9.2",
"tsc-esm-fix": "^3.0.0",
"typedoc": "^0.27.0",
"typescript": "^5.5.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/qiwi/mixin.git"
},
"keywords": [
"mixin",
"mix-in"
],
"author": "Anton Golub <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/qiwi/mixin/issues"
},
"homepage": "https://github.com/qiwi/mixin#readme"
}