Skip to content

Instantly share code, notes, and snippets.

@Tevinthuku
Last active August 27, 2019 17:14
Show Gist options
  • Save Tevinthuku/19d383452ee4881401de487d01bc71f8 to your computer and use it in GitHub Desktop.
Save Tevinthuku/19d383452ee4881401de487d01bc71f8 to your computer and use it in GitHub Desktop.
{
"main": "dist/tevreact.umd.js",
"module": "dist/tevreact.es.js", // ESM-aware tools like Rollup need this field to import the es module directly
"name": "tevreact",
"version": "1.0.0",
"license": "MIT",
"files": [
"dist"
],
"scripts": {
"build:module": "rollup src/tevreact.js -f es --exports named -n tevreact -o dist/tevreact.es.js",
"build:main": "rollup src/tevreact.js -f umd --exports named -n tevreact -o dist/tevreact.umd.js",
"build:all": "yarn build:module && yarn build:main",
"prepublishOnly": "yarn build:all" // this command is run automatically before publishing to npm
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment