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 3, 2024
1 parent a259c43 commit e2216dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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"}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"tsconfig.json"
],
"scripts": {
"build": "turbo build && run-p copy.matchers lint.root.tsc build.parcel && run-s build.babel.legacy",
"build": "turbo build && run-p copy.matchers lint.root.tsc build.parcel && run-p build.babel.legacy build.package.modern",
"build.parcel": "cross-env NODE_ENV=production parcel build",
"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/*/*.json ./dist/legacy/ && shx cp ./dist/legacy/*.json ./dist/modern",
Expand Down

0 comments on commit e2216dc

Please sign in to comment.