Skip to content

Commit b706650

Browse files
authored
Merge pull request #168 from aminya/notifier [skip ci]
2 parents 6e6418d + c0015e2 commit b706650

24 files changed

+835
-735
lines changed

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ stats.html
77
src/python/setup-python/
88
src/msvc/msvc-dev-cmd/
99
dev/cpp_vcpkg_project
10-
package.json
File renamed without changes.

dist/node12/actions_python.1be1bd7d.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/node12/actions_python.1be1bd7d.js renamed to dist/node12/actions_python.e8fa8bb0.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/actions_python.e8fa8bb0.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/actions_python.a901685e.js renamed to dist/node16/actions_python.79f8ffa3.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/actions_python.79f8ffa3.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/actions_python.a901685e.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/node16/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
1-
module.exports = {
1+
/** @typedef {import("jest")} jestConfig */
2+
const jestConfig = {
23
preset: "ts-jest/presets/js-with-ts-esm",
34
extensionsToTreatAsEsm: [".ts"],
45
transformIgnorePatterns: [], // transform everything
56
testEnvironment: "node",
67
testMatch: ["**/*.test.ts"],
78
testPathIgnorePatterns: ["<rootDir>/src/python/setup-python/"],
9+
// tsconfig
10+
transform: {
11+
"^.+\\.tsx?$": [
12+
"ts-jest",
13+
/** @type {import("ts-jest")} */
14+
{
15+
importHelpers: true,
16+
useESM: true,
17+
},
18+
],
19+
},
820
// coverage
921
collectCoverageFrom: ["src/**/*.{ts,tsx}"],
1022
coveragePathIgnorePatterns: ["assets", ".css.d.ts"],
1123
verbose: true,
1224
}
25+
26+
export default jestConfig

package-version.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "setup-cpp",
3+
"version": "0.27.1"
4+
}

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"build.docker.arch": "pnpm build && docker build -f ./dev/docker/arch_node.dockerfile -t setup-cpp:arch .",
3232
"build.docker.fedora": "pnpm build && docker build -f ./dev/docker/fedora_node.dockerfile -t setup-cpp:fedora .",
3333
"build.docker.ubuntu": "pnpm build && docker build -f ./dev/docker/ubuntu_node.dockerfile -t setup-cpp:ubuntu .",
34-
"build.parcel": "cross-env NODE_ENV=production parcel build && babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --compact --no-babelrc --source-maps true",
34+
"build.parcel": "cross-env NODE_ENV=production parcel build --detailed-report 10 && babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --compact --no-babelrc --source-maps true",
3535
"bump": "ncu -u -x numerous && pnpm update",
3636
"clean": "shx rm -rf .parcel-cache dist exe",
3737
"copy.matchers": "shx cp ./src/gcc/gcc_matcher.json ./dist/node12/ && shx cp ./src/msvc/msvc_matcher.json ./dist/node12/ && shx cp ./src/python/python_matcher.json ./dist/node12/ && shx cp ./src/llvm/llvm_matcher.json ./dist/node12/ && shx cp ./dist/node12/*.json ./dist/node16/",
@@ -43,7 +43,7 @@
4343
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
4444
"lint.prettier": "prettier --list-different --write .",
4545
"lint.tsc": "tsc --noEmit",
46-
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && ts-node --esm ./dev/scripts/pack-exe.ts",
46+
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.mjs",
4747
"prepare": "pnpm run -r build && pnpm run -w build",
4848
"start.docker": "docker run -t setup-cpp .",
4949
"start.docker.arch": "docker run -t setup-cpp:arch .",
@@ -59,6 +59,9 @@
5959
"test.unit": "jest --runInBand"
6060
},
6161
"prettier": "prettier-config-atomic",
62+
"dependencies": {
63+
"update-notifier": "^5.1.0"
64+
},
6265
"devDependencies": {
6366
"@actions/core": "^1.10.0",
6467
"@actions/exec": "^1.1.1",
@@ -90,6 +93,7 @@
9093
"exec-powershell": "workspace:*",
9194
"execa": "^7.1.1",
9295
"fast-glob": "^3.2.12",
96+
"find-up": "^6.3.0",
9397
"gen-readme": "^1.6.0",
9498
"is-url-online": "^1.5.0",
9599
"jest": "^29.5.0",
@@ -109,6 +113,7 @@
109113
"semver": "7.5.1",
110114
"setup-python": "github:actions/setup-python#v4.6.1",
111115
"shx": "0.3.4",
116+
"simple-update-notifier": "^1.1.0",
112117
"terser-config-atomic": "^0.1.1",
113118
"time-delta": "github:aminya/time-delta#69d91a41cef28e569be9a2991129f5f7d1f0d00e",
114119
"ts-jest": "^29.1.0",
@@ -153,7 +158,9 @@
153158
"engines": {
154159
"node": ">=12.x"
155160
},
156-
"includeNodeModules": true,
161+
"includeNodeModules": {
162+
"update-notifier": false
163+
},
157164
"optimize": true,
158165
"outputFormat": "commonjs"
159166
},
@@ -162,7 +169,9 @@
162169
"engines": {
163170
"node": ">=16.x"
164171
},
165-
"includeNodeModules": true,
172+
"includeNodeModules": {
173+
"update-notifier": false
174+
},
166175
"optimize": true,
167176
"outputFormat": "commonjs"
168177
}

0 commit comments

Comments
 (0)