Skip to content

Commit

Permalink
add temporary hack for getting .mjs builds for node v14 (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBiscardi committed Sep 14, 2020
1 parent 6a3a932 commit 4c9c02c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"node": "12.x"
},
"scripts": {
"build": "r -f cjs,esm -o dist --exclude 'babel-plugin-*,create-mdx,*loader,mdx,parcel-plugin-mdx,remark-*,*util'",
"build": "r -f cjs,esm -o dist --exclude 'babel-plugin-*,create-mdx,*loader,mdx,parcel-plugin-mdx,remark-*,*util' && cp packages/preact/dist/esm.js packages/preact/dist/esm.mjs",
"clean": "lerna exec \"rimraf dist node_modules\"",
"docs": "gatsby develop",
"docs-build": "gatsby build",
Expand Down
4 changes: 4 additions & 0 deletions packages/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"license": "MIT",
"main": "dist/cjs.js",
"module": "dist/esm.js",
"exports": {
"import": "./dist/esm.mjs",
"require": "./dist/cjs.js"
},
"files": [
"dist"
],
Expand Down

1 comment on commit 4c9c02c

@vercel
Copy link

@vercel vercel bot commented on 4c9c02c Sep 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.