Skip to content

Instantly share code, notes, and snippets.

@giltayar
Created January 4, 2018 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save giltayar/46734d0aa1e8d4a36f284947cdd3c022 to your computer and use it in GitHub Desktop.
Save giltayar/46734d0aa1e8d4a36f284947cdd3c022 to your computer and use it in GitHub Desktop.
{
"name": "dual-cjs-mjs-package",
"version": "1.0.0",
"description": "A package that can be both imported as esm and as cjs",
"main": "entry",
"scripts": {
"build": "babel *.mjs **/*.mjs --out-dir ."
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
"babel-plugin-dynamic-import-node": "^1.1.0"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment