From 55d35811de5aefe2b04f83df57e83db614933d2b Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 26 May 2017 10:53:26 +0800 Subject: feat: expose es files --- .gitignore | 1 + package.json | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 3de050d..2ad822e 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,5 @@ dist *.css build lib +es coverage \ No newline at end of file diff --git a/package.json b/package.json index d219fab..3e9f944 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,11 @@ ], "files": [ "lib", + "es", "assets/*.css" ], "main": "lib/index", + "module": "es/index", "homepage": "http://github.com/react-component/time-picker", "author": "wuzhao.mail@gmail.com", "repository": { @@ -34,13 +36,14 @@ "build": "rc-tools run build", "gh-pages": "rc-tools run gh-pages", "start": "rc-tools run server", + "compile": "rc-tools run compile --babel-runtime", "pub": "rc-tools run pub --babel-runtime", "lint": "rc-tools run lint", - "karma": "rc-tools run karma", - "saucelabs": "rc-tools run saucelabs", - "test": "rc-tools run test", - "chrome-test": "rc-tools run chrome-test", - "coverage": "rc-tools run coverage" + "karma": "rc-test run karma", + "saucelabs": "rc-test run saucelabs", + "test": "rc-test run test", + "chrome-test": "rc-test run chrome-test", + "coverage": "rc-test run coverage" }, "devDependencies": { "async": "~0.9.0", @@ -48,7 +51,8 @@ "expect.js": "~0.3.1", "jquery": "1.x", "pre-commit": "1.x", - "rc-tools": "5.x", + "rc-test": "^6.0.1", + "rc-tools": "6.x", "rc-util": "^4.0.2", "react": "15.x", "react-dom": "15.x" -- cgit v1.2.3