Skip to content

Commit

Permalink
build: add modern esmodule target
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Aug 23, 2024
1 parent c38aec2 commit 79e2c03
Show file tree
Hide file tree
Showing 24 changed files with 411 additions and 731 deletions.
3 changes: 0 additions & 3 deletions dist/actions/actions_python.efec3a8c.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/actions/actions_python.efec3a8c.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/actions/hdi.7a328924.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/actions/hdi.7a328924.js.map

This file was deleted.

78 changes: 0 additions & 78 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.

3 changes: 0 additions & 3 deletions dist/legacy/actions_python.11da06c9.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/legacy/actions_python.11da06c9.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/legacy/hdi.dcf7929b.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/legacy/hdi.dcf7929b.js.map

This file was deleted.

78 changes: 0 additions & 78 deletions dist/legacy/setup-cpp.js

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

17 changes: 0 additions & 17 deletions dist/modern/gcc_matcher.json

This file was deleted.

2 changes: 0 additions & 2 deletions dist/modern/hdi.7a328924.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/modern/hdi.7a328924.js.map

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

78 changes: 0 additions & 78 deletions dist/modern/setup-cpp.js

This file was deleted.

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

This file was deleted.

14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@
"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 ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern ",
"copy.matchers": "run-p copy.matchers.legacy copy.matchers.actions",
Expand Down Expand Up @@ -105,7 +104,7 @@
"numerous": "1.0.3",
"envosman": "workspace:*",
"p-timeout": "^6.1.2",
"parcel": "2.0.0-canary.1717",
"parcel": "2.0.0-canary.1718",
"path-exists": "^5.0.0",
"patha": "^0.4.1",
"prettier": "3.2.2",
Expand Down Expand Up @@ -220,6 +219,15 @@
"includeNodeModules": true,
"optimize": true,
"outputFormat": "commonjs"
},
"modern": {
"context": "node",
"engines": {
"node": ">=22.x"
},
"includeNodeModules": true,
"optimize": true,
"outputFormat": "esmodule"
}
}
}
800 changes: 400 additions & 400 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 79e2c03

Please sign in to comment.