From e4d387b672113e5dd65ed5477cde9d970686fc4a Mon Sep 17 00:00:00 2001 From: makotot Date: Mon, 24 Apr 2017 00:40:18 +0900 Subject: [PATCH] fix module not found --- .gitignore | 1 + package.json | 7 ++++--- release.sh | 2 +- yarn.lock | 10 +++++----- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 54b2c36..b9e430c 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ scrollspy.js .DS_Store .idea dist/ +lib/ diff --git a/package.json b/package.json index 1cb31da..7aa9052 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,11 @@ "name": "react-scrollspy", "version": "3.0.0", "description": "react scrollspy component", - "main": "./scrollspy.js", + "main": "./lib/scrollspy.js", "files": [ "README.md", - "scrollspy.js", + "lib/scrollspy.js", + "lib/throttle.js", "package.json", "webpack.config.babel.js", ".eslintrc" @@ -13,7 +14,7 @@ "scripts": { "serve": "NODE_ENV=development webpack-dev-server --inline --hot --color", "docs": "NODE_ENV=production webpack", - "build": "NODE_ENV=production ./node_modules/.bin/babel ./src/js/lib/Scrollspy.jsx --out-file ./scrollspy.js", + "build": "NODE_ENV=production ./node_modules/.bin/babel ./src/js/lib --out-dir ./lib", "test": "NODE_ENV=test ./node_modules/.bin/ava __test__/*.js --verbose", "prepublish": "yarn run build" }, diff --git a/release.sh b/release.sh index 6c5fc67..ea41d63 100755 --- a/release.sh +++ b/release.sh @@ -2,7 +2,7 @@ rm -rf release && mkdir release; yarn run build; -cp scrollspy.js README.md package.json webpack.config.babel.js .eslintrc ./release +cp lib README.md package.json webpack.config.babel.js .eslintrc ./release rm -rf react-scrollspy.tar.gz rm -rf react-scrollspy.zip diff --git a/yarn.lock b/yarn.lock index 7dccd2b..5b9fc7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -976,14 +976,14 @@ babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24.1: lodash "^4.2.0" to-fast-properties "^1.0.1" -babylon@^6.1.0, babylon@^6.11.0, babylon@^6.15.0: - version "6.16.1" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3" - -babylon@^6.17.0: +babylon@^6.1.0, babylon@^6.15.0, babylon@^6.17.0: version "6.17.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.0.tgz#37da948878488b9c4e3c4038893fa3314b3fc932" +babylon@^6.11.0: + version "6.16.1" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3" + balanced-match@^0.4.1, balanced-match@^0.4.2: version "0.4.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838"