Skip to content

Commit

Permalink
Merge pull request #278 from aminya/modern-remove [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Sep 4, 2024
2 parents b923ad9 + 8bbc80d commit 4e90bbc
Show file tree
Hide file tree
Showing 24 changed files with 17 additions and 176 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
node-version: 16
- name: Smoke Test Node 16
run: |
node ./dist/actions/setup-cpp.js --help
node ./dist/modern/setup-cpp.js --help
Docker:
name: Docker-${{ matrix.container.image }}
Expand Down Expand Up @@ -297,5 +297,4 @@ jobs:
./exe/setup-cpp-x64-linux
./exe/setup-cpp-x64-macos
./dist/legacy/
./dist/actions/
./dist/modern/
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ inputs:

runs:
using: "node20"
main: "dist/actions/setup-cpp.js"
main: "dist/modern/setup-cpp.js"

branding:
icon: "award"
Expand Down
17 changes: 0 additions & 17 deletions dist/actions/gcc_matcher.json

This file was deleted.

1 change: 0 additions & 1 deletion dist/actions/github_brechtsanders_winlibs_mingw.json

This file was deleted.

17 changes: 0 additions & 17 deletions dist/actions/llvm_matcher.json

This file was deleted.

18 changes: 0 additions & 18 deletions dist/actions/msvc_matcher.json

This file was deleted.

31 changes: 0 additions & 31 deletions dist/actions/proxy-agent.52c85c82.js

This file was deleted.

18 changes: 0 additions & 18 deletions dist/actions/python_matcher.json

This file was deleted.

45 changes: 0 additions & 45 deletions dist/actions/setup-cpp.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/actions/setup-cpp.js.map

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions dist/modern/actions_python.60e051e1.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/actions_python.60e051e1.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/modern/hdi.647acde1.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/hdi.647acde1.js.map

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/modern/proxy-agent.52c85c82.js.map

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/modern/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.js.map

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"license": "Apache-2.0",
"author": "Amin Yahyaabadi",
"main": "dist/legacy/setup-cpp.js",
"actions": "./dist/actions/setup-cpp.js",
"modern": "./dist/modern/setup-cpp.js",
"source": "./src/main.ts",
"bin": {
Expand All @@ -27,13 +26,12 @@
"tsconfig.json"
],
"scripts": {
"build": "turbo build && run-p lint.root.tsc build.parcel copy.matchers && run-s build.babel build.modern",
"build": "turbo build && run-p lint.root.tsc build.parcel copy.matchers && run-s build.babel",
"build.parcel": "cross-env NODE_ENV=production parcel build",
"build.babel": "babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
"build.modern": "shx cp -r ./dist/actions/* ./dist/modern",
"bump": "ncu -u -x numerous,execa,prettier,@types/node,eslint,@types/eslint && pnpm update && pnpx typesync && pnpm run clean",
"clean": "shx rm -rf ./dist ./packages/*/dist ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern ",
"copy.matchers": "shx cp ./src/*/*.json ./dist/legacy/ && shx cp ./dist/legacy/*.json ./dist/actions",
"clean": "shx rm -rf ./dist ./packages/*/dist ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/modern ./dist/modern ",
"copy.matchers": "shx cp ./src/*/*.json ./dist/legacy/ && shx cp ./dist/legacy/*.json ./dist/modern",
"dev.parcel": "cross-env NODE_ENV=development parcel watch",
"dev.packages": "turbo dev",
"dev": "run-p dev.packages dev.parcel",
Expand Down Expand Up @@ -222,7 +220,7 @@
"optimize": true,
"outputFormat": "commonjs"
},
"actions": {
"modern": {
"context": "node",
"engines": {
"node": ">=20.x"
Expand Down

0 comments on commit 4e90bbc

Please sign in to comment.