Skip to content

Commit

Permalink
fix: add module type package.json for modern
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 2, 2024
1 parent 675eb2d commit 1c68bbb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
1 change: 1 addition & 0 deletions dist/modern/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "module"}
36 changes: 18 additions & 18 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.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@
"tsconfig.json"
],
"scripts": {
"build": "turbo build && run-p copy.matchers lint.root.tsc build.parcel && run-p build.babel.actions build.babel.legacy",
"build": "turbo build && run-p copy.matchers lint.root.tsc build.parcel && run-p build.babel.actions build.babel.legacy build.package.modern",
"build.parcel": "cross-env NODE_ENV=production parcel build",
"build.babel.actions": "babel ./dist/actions --out-dir ./dist/actions --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
"build.babel.legacy": "babel ./dist/legacy --out-dir ./dist/legacy --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
"build.package.modern": "echo '{\"type\": \"module\"}' > ./dist/modern/package.json",
"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/*/*_matcher.json ./dist/legacy/ && shx cp ./src/*/*_matcher.json ./dist/actions/ && shx cp ./src/*/*_matcher.json ./dist/modern/",
"copy.matchers": "shx mkdir -p ./dist/legacy/ ./dist/actions/ ./dist/modern/ && shx cp ./src/*/*_matcher.json ./dist/legacy/ && shx cp ./src/*/*_matcher.json ./dist/actions/ && shx cp ./src/*/*_matcher.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

0 comments on commit 1c68bbb

Please sign in to comment.