Skip to content

Commit 9fd9463

Browse files
author
Tasveer Singh
committed
Build files to root directory to clean up imports and bump version
1 parent 72303bd commit 9fd9463

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
*.log
33
lib
4+
5+
/*.js

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Example using `react-loadable`
88

99
```js
10-
import LoadableVisibility from 'react-loadable-visibility/lib/react-loadable'
10+
import LoadableVisibility from 'react-loadable-visibility/react-loadable'
1111
import Loading from './my-loading-component'
1212

1313
const LoadableComponent = LoadableVisibility({
@@ -25,7 +25,7 @@ export default class App extends React.Component {
2525
## Example using `loadable-components`
2626

2727
```js
28-
import loadableVisiblity from 'react-loadable-visibility/lib/loadable-components'
28+
import loadableVisiblity from 'react-loadable-visibility/loadable-components'
2929
import Loading from './my-loading-component'
3030

3131
const LoadableComponent = loadableVisiblity(() => import('./my-component'), {

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
{
22
"name": "react-loadable-visibility",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "A wrapper around react-loadable for elements that are visible on the page",
55
"main": "lib/index.js",
66
"repository": "https://github.com/stratiformltd/react-loadable-visibility",
77
"author": "Tasveer Singh",
88
"license": "BSD-3-Clause",
9-
"files": [
10-
"lib/**"
11-
],
129
"scripts": {
13-
"build": "babel src --out-dir lib --ignore __mocks__,__tests__",
10+
"build": "babel src --out-dir . --ignore __mocks__,__tests__",
1411
"prepublish": "yarn run build",
1512
"test": "jest"
1613
},

0 commit comments

Comments
 (0)