Skip to content

Commit

Permalink
Merge pull request streamich#178 from liuyuchenzh/master
Browse files Browse the repository at this point in the history
feat: emit code in ES Module format
  • Loading branch information
streamich authored Mar 27, 2019
2 parents 27cadf9 + fc1ba07 commit 85205c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ typings/

# build output
lib/
esm

.DS_Store

Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
"version": "6.1.0",
"description": "Collection of React Hooks",
"main": "lib/index.js",
"module": "lib/es/index.js",
"files": [
"lib/"
"lib/",
"esm/"
],
"types": "lib/index.d.ts",
"typings": "lib/index.d.ts",
"scripts": {
"start": "yarn storybook",
"test": "echo hmm...",
"build": "tsc",
"clean": "rimraf lib storybook-static",
"build:cjs": "tsc",
"build:es": "tsc -m esNext --outDir esm",
"build": "yarn build:cjs && yarn build:es",
"clean": "rimraf lib storybook-static esm",
"storybook": "start-storybook -p 6008",
"storybook:build": "build-storybook",
"storybook:upload": "gh-pages -d storybook-static",
Expand Down

0 comments on commit 85205c1

Please sign in to comment.