forked from VKCOM/vkjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 3.61 KB
/
package.json
File metadata and controls
122 lines (122 loc) · 3.61 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "@vkontakte/vkjs",
"version": "0.28.0",
"description": "VK shared JS libs",
"main": "lib/index.js",
"module": "lib/es6/index.js",
"typings": "lib/index.d.ts",
"directories": {
"lib": "lib"
},
"files": [
"lib",
"src",
"build"
],
"engines": {
"yarn": "^1.21.1"
},
"scripts": {
"clear": "shx rm -rf lib",
"prepare": "yarn build",
"build": "yarn clear && yarn build-cjs && yarn build-es6",
"test": "eslint ./src --ext .ts --fix && tsc --noEmit && jest",
"prepublishOnly": "yarn clear && yarn build",
"publish-package": "yarn install --check-files && yarn publish --non-interactive",
"babel": "cross-env NODE_ENV=production babel src/ --out-dir lib/ --source-maps --extensions .tsx,.jsx,.ts,.js --ignore **/*/__tests__",
"babel-es6": "cross-env NODE_ENV=production babel --config-file ./babel.es6.config.js src/ --out-dir lib/es6/ --source-maps --extensions .tsx,.jsx,.ts,.js --ignore **/*/__tests__",
"tsc": "cross-env NODE_ENV=production tsc --project tsconfig.build.json",
"tsc-es6": "cross-env NODE_ENV=production tsc --project tsconfig.build.json --outDir lib/es6/",
"build-cjs": "yarn babel && yarn tsc",
"build-es6": "yarn babel-es6 && yarn tsc-es6",
"size": "yarn clear && yarn build && size-limit"
},
"pre-commit": [
"test"
],
"size-limit": [
{
"name": "JS",
"path": "lib/index.js",
"gzip": false
},
{
"name": "JS (gzip)",
"path": "lib/index.js"
},
{
"name": "JS (brotli)",
"path": "lib/index.js",
"brotli": true
},
{
"name": "JS ES6",
"path": "lib/es6/index.js"
},
{
"name": "JS with querystring only import (no tree shaking)",
"path": "lib/index.js",
"import": "{ querystring }"
},
{
"name": "JS ES6 with querystring only import (tree shaking)",
"path": "lib/es6/index.js",
"import": "{ querystring }"
},
{
"name": "JS with leadingZero only import (no tree shaking)",
"path": "lib/index.js",
"import": "{ leadingZero }"
},
{
"name": "JS ES6 with leadingZero only import (tree shaking)",
"path": "lib/es6/index.js",
"import": "{ leadingZero }"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/VKCOM/vkjs.git"
},
"author": "VK Team <https://vk.com/team>",
"license": "MIT",
"bugs": {
"url": "https://github.com/VKCOM/vkjs/issues"
},
"homepage": "https://github.com/VKCOM/vkjs#readme",
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.19.4",
"@babel/plugin-transform-runtime": "^7.19.1",
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.11.2",
"@jest/globals": "^29.1.2",
"@size-limit/preset-big-lib": "^8.1.0",
"@types/react": "^16.9.52",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"@vkontakte/eslint-config": "3.1.0",
"@vkontakte/prettier-config": "^0.1.0",
"cross-env": "^7.0.3",
"eslint": "^7.24.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.1.2",
"jest-environment-jsdom": "^29.1.2",
"pre-commit": "1.2.2",
"prettier": "^2.7.1",
"shx": "^0.3.2",
"size-limit": "^8.1.0",
"ts-jest": "^29.0.3",
"typescript": "4.8.4"
},
"peerDependencies": {
"@babel/runtime": "^7.11.2"
},
"resolutions": {
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.42.0"
}
}