-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpackage.json
More file actions
82 lines (82 loc) · 4.03 KB
/
package.json
File metadata and controls
82 lines (82 loc) · 4.03 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
{
"name": "@msinternal/test-harness",
"version": "0.0.0-0",
"description": "",
"author": "Microsoft Corporation",
"license": "MIT",
"private": true,
"browser": {
"selenium-webdriver": false
},
"engines": {
"node": ">= 14.0.0"
},
"scripts": {
"build": "npm run build:babel && npm run build:esbuild",
"build:babel": "babel --config-file ./babel.config.json --out-dir lib src",
"build:esbuild": "esbuild lib/browser/index.js --bundle --define:define=undefined --define:process.env.CI=undefined --outfile=dist/test-harness.js --sourcemap --target=chrome100",
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install --save-exact $PACKAGES_TO_BUMP || true",
"eslint": "npm run precommit",
"postversion": "cat package.json | jq '.version as $V | (.localDependencies // {} | with_entries(select(.value == \"production\") | { key: .key, value: $V })) as $L1 | (.localDependencies // {} | with_entries(select(.value == \"development\") | { key: .key, value: $V })) as $L2 | ((.dependencies // {}) + $L1 | to_entries | sort_by(.key) | from_entries) as $D1 | ((.devDependencies // {}) + $L2 | to_entries | sort_by(.key) | from_entries) as $D2 | . + { dependencies: $D1, devDependencies: $D2 }' > package-temp.json && mv package-temp.json package.json",
"precommit": "npm run precommit:eslint -- src",
"precommit:eslint": "../../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0",
"preversion": "cat package.json | jq '(.localDependencies // {} | to_entries | map([if .value == \"production\" then \"dependencies\" else \"devDependencies\" end, .key])) as $P | delpaths($P)' > package-temp.json && mv package-temp.json package.json",
"start": "concurrently --kill-others --prefix-colors \"auto\" \"npm:start:*\"",
"start:babel": "npm run build:babel -- --skip-initial-build --watch",
"start:esbuild": "npm run build:esbuild -- --watch",
"test": "node node_modules/.bin/jest --maxWorkers=4"
},
"localDependencies": {},
"pinDependencies": {
"expect": [
"25",
"expect@26 does not support pure JavaScript environment without node:fs and other packages"
],
"http-proxy-middleware": [
"2",
"http-proxy-middleware@3 has breaking changes, need time to migrate"
],
"jest": [
"29",
"jest@30 is not supported by jest-image-snapshot@6.5.1"
],
"jest-environment-node": [
"29",
"jest@30 is not supported by jest-image-snapshot@6.5.1"
],
"strip-ansi": [
"6",
"strip-ansi@7 dropped support of CommonJS"
]
},
"dependencies": {
"abort-controller": "3.0.0",
"axe-core": "4.10.3",
"core-js": "3.44.0",
"core-js-pure": "3.44.0",
"event-target-shim": "6.0.2",
"expect": "25.5.0",
"lolex": "6.0.0",
"math-random": "2.0.1"
},
"devDependencies": {
"@babel/cli": "^7.28.0",
"@babel/core": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"babel-plugin-istanbul": "^7.0.0",
"concurrently": "^9.2.0",
"esbuild": "^0.25.8",
"express": "^5.1.0",
"global-agent": "^3.0.0",
"http-proxy-middleware": "^3.0.5",
"istanbul-lib-coverage": "^3.2.2",
"jest": "^29.7.0",
"jest-environment-node": "^29.7.0",
"jest-image-snapshot": "^6.5.1",
"selenium-webdriver": "^4.34.0",
"serve": "^14.2.4",
"strip-ansi": "^6.0.1"
}
}