Last active
August 27, 2019 17:14
-
-
Save Tevinthuku/19d383452ee4881401de487d01bc71f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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