Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 05f65b5

Browse files
authored
Merge pull request #57 from makotot/resolve-path
fix module not found
2 parents 6f96f51 + e4d387b commit 05f65b5

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ scrollspy.js
4747
.DS_Store
4848
.idea
4949
dist/
50+
lib/

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
"name": "react-scrollspy",
33
"version": "3.0.0",
44
"description": "react scrollspy component",
5-
"main": "./scrollspy.js",
5+
"main": "./lib/scrollspy.js",
66
"files": [
77
"README.md",
8-
"scrollspy.js",
8+
"lib/scrollspy.js",
9+
"lib/throttle.js",
910
"package.json",
1011
"webpack.config.babel.js",
1112
".eslintrc"
1213
],
1314
"scripts": {
1415
"serve": "NODE_ENV=development webpack-dev-server --inline --hot --color",
1516
"docs": "NODE_ENV=production webpack",
16-
"build": "NODE_ENV=production ./node_modules/.bin/babel ./src/js/lib/Scrollspy.jsx --out-file ./scrollspy.js",
17+
"build": "NODE_ENV=production ./node_modules/.bin/babel ./src/js/lib --out-dir ./lib",
1718
"test": "NODE_ENV=test ./node_modules/.bin/ava __test__/*.js --verbose",
1819
"prepublish": "yarn run build"
1920
},

release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
rm -rf release && mkdir release;
44
yarn run build;
5-
cp scrollspy.js README.md package.json webpack.config.babel.js .eslintrc ./release
5+
cp lib README.md package.json webpack.config.babel.js .eslintrc ./release
66

77
rm -rf react-scrollspy.tar.gz
88
rm -rf react-scrollspy.zip

yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -976,14 +976,14 @@ babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24.1:
976976
lodash "^4.2.0"
977977
to-fast-properties "^1.0.1"
978978

979-
babylon@^6.1.0, babylon@^6.11.0, babylon@^6.15.0:
980-
version "6.16.1"
981-
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3"
982-
983-
babylon@^6.17.0:
979+
babylon@^6.1.0, babylon@^6.15.0, babylon@^6.17.0:
984980
version "6.17.0"
985981
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.0.tgz#37da948878488b9c4e3c4038893fa3314b3fc932"
986982

983+
babylon@^6.11.0:
984+
version "6.16.1"
985+
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3"
986+
987987
balanced-match@^0.4.1, balanced-match@^0.4.2:
988988
version "0.4.2"
989989
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838"

0 commit comments

Comments
 (0)