-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpackage.json
More file actions
60 lines (60 loc) · 3.28 KB
/
package.json
File metadata and controls
60 lines (60 loc) · 3.28 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
{
"name": "@msinternal/embed",
"version": "0.0.0-0",
"description": "",
"private": true,
"engines": {
"node": ">=16.0.0"
},
"jest": {
"collectCoverageFrom": [
"**/src/**/*.{js,jsx}",
"!**/*.{spec,test}.{js,jsx,ts,tsx}",
"!**/__tests__/**/*.{js,jsx,ts,tsx}",
"!**/node_modules/**"
],
"testEnvironment": "node"
},
"scripts": {
"build": "npm run build:babel && npm run build:webpack",
"build:babel": "babel src --ignore **/*.spec.js,**/*.test.js,__tests__/**/*.js --out-dir lib --verbose",
"build:webpack": "webpack-cli",
"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",
"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",
"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:server": "node-dev --no-notify --respawn hostDevServer.mjs",
"start:webpack": "npm run build:webpack -- --watch",
"test": "jest --watch",
"test:ci": "npm run test -- --ci --coverage true --no-watch"
},
"author": "Microsoft Corporation",
"license": "MIT",
"localDependencies": {},
"pinDependencies": {},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.5",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"concurrently": "^8.2.2",
"express": "^5.1.0",
"html-webpack-plugin": "^5.6.0",
"http-proxy-middleware": "^3.0.0",
"jest": "^29.7.0",
"node-dev": "^8.0.0",
"pug": "^3.0.2",
"pug-loader": "^2.4.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@babel/runtime": "7.26.10",
"core-js": "3.37.0",
"url-search-params-polyfill": "8.2.5",
"whatwg-fetch": "3.6.20"
}
}