-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
134 lines (134 loc) · 4.21 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
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
123
124
125
126
127
128
129
130
131
132
133
134
{
"private": true,
"homepage": "https://github.com/wopian/kitsu#readme",
"repository": "https://github.com/wopian/kitsu",
"bugs": {
"url": "https://github.com/wopian/kitsu/issues"
},
"engines": {
"node": ">= 14"
},
"workspaces": [
"packages/*"
],
"scripts": {
"diff": "lerna diff",
"updated": "lerna updated -l --sort",
"updated:json": "yarn updated --json",
"bootstrap": "lerna bootstrap",
"build": "lerna exec yarn build",
"docs": "lerna exec --parallel yarn docs:lint",
"docs:build": "lerna exec --parallel yarn docs:build",
"docs:typescript": "lerna exec --parallel yarn docs:typescript",
"docs:release": "yarn docs && yarn docs:build && yarn docs:typescript",
"fix": "eslint . --fix",
"lint": "eslint .",
"test": "yarn test:coverage && yarn lint && yarn docs && yarn build && yarn size",
"test:coverage": "jest --coverage",
"release": "yarn updated && yarn release:test && yarn release:commit && yarn release:lerna",
"release:test": "jest && yarn lint && yarn docs:release && yarn build",
"release:commit": "git commit -am \"chore(release): update documentation\"",
"release:lerna": "lerna publish",
"release:lerna-alpha": "lerna publish --preid=alpha",
"browserslist": "browserslist \"last 2 years, not < 0.05%\"",
"size": "lerna exec size-limit"
},
"devDependencies": {
"@babel/cli": "~7.25.0",
"@babel/core": "~7.26.0",
"@babel/preset-env": "~7.26.0",
"@rollup/plugin-babel": "~6.0.0",
"axios": "~0.28.1",
"axios-mock-adapter": "~1.22.0",
"babel-jest": "~29.7.0",
"browserslist": "~4.24.0",
"conventional-changelog-angular": "~6.0.0",
"cross-env": "~7.0.0",
"documentation": "~14.0.0",
"eslint": "~8.57.0",
"eslint-config-wopian": "~3.0.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "^29.0.0",
"json-stringify-safe": "~5.0.1",
"lerna": "^3.0.0",
"rollup": "~2.79.0",
"rollup-plugin-delete": "~2.1.0",
"rollup-plugin-local-resolve": "~1.0.7",
"size-limit": "~8.2.0",
"typescript": "~5.6.0"
},
"jest": {
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 0
}
},
"projects": [
{
"displayName": "browser",
"testEnvironment": "jsdom",
"bail": true,
"collectCoverageFrom": [
"<rootDir>/packages/**/src/**/*.js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/specification/"
],
"coverageDirectory": "<rootDir>/coverage",
"moduleNameMapper": {
"^specification(.*)$": "<rootDir>/specification/$1",
"^kitsu-core(.*)$": "<rootDir>/packages/kitsu-core/src/$1",
"^kitsu(.*)$": "<rootDir>/packages/kitsu/src/$1",
"^pkg$": "<rootDir>/package.json"
},
"transform": {
"^.+\\.js$": "<rootDir>/config/jest.transform.js"
},
"testMatch": [
"<rootDir>/packages/**/src/**/*.spec.js",
"<rootDir>/packages/**/src/**/*.spec.browser.js"
]
},
{
"displayName": "node",
"testEnvironment": "node",
"bail": true,
"collectCoverageFrom": [
"<rootDir>/packages/**/src/**/*.js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/specification/"
],
"coverageDirectory": "<rootDir>/coverage",
"moduleNameMapper": {
"^specification(.*)$": "<rootDir>/specification/$1",
"^kitsu-core(.*)$": "<rootDir>/packages/kitsu-core/src/$1",
"^kitsu(.*)$": "<rootDir>/packages/kitsu/src/$1",
"^pkg$": "<rootDir>/package.json"
},
"transform": {
"^.+\\.js$": "<rootDir>/config/jest.transform.js"
},
"testMatch": [
"<rootDir>/packages/**/src/**/*.spec.js",
"<rootDir>/packages/**/src/**/*.spec.node.js"
]
}
]
},
"renovate": {
"extends": [
"github>wopian/renovate-config",
":pathSemanticCommitType(packages/kitsu/**,build(kitsu))",
":pathSemanticCommitType(packages/kitsu-core/**,build(kitsu-core))"
],
"baseBranches": [
"master"
]
}
}