Skip to content

Commit

Permalink
Some import path adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
tsov committed Nov 1, 2017
1 parent 78f5ac0 commit aa51055
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"drag-and-drop",
"es6"
],
"main": "./lib/draggable.js",
"main": "./lib/draggable.bundle.js",
"scripts": {
"build": "webpack",
"prepublish": "npm run build",
Expand All @@ -35,7 +35,7 @@
"test-ci": "jest --config config.json --coverage"
},
"files": [
"lib/index.js"
"lib/**/*.js"
],
"devDependencies": {
"babel-core": "^6.26.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Draggable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Draggable} from '@shopify/draggable';
```

```js
import Draggable from '@shopify/draggable/draggable';
import Draggable from '@shopify/draggable/lib/draggable';
```

```html
Expand Down
2 changes: 1 addition & 1 deletion src/Droppable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {Droppable} from '@shopify/draggable';
```

```js
import Droppable from '@shopify/draggable/droppable';
import Droppable from '@shopify/draggable/lib/droppable';
```

```html
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Collidable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {Collidable} from '@shopify/draggable';
```

```js
import Collidable from '@shopify/draggable/plugins/collidable';
import Collidable from '@shopify/draggable/lib/plugins/collidable';
```

```html
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Snappable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {Snappable} from '@shopify/draggable';
```

```js
import Snappable from '@shopify/draggable/snappable';
import Snappable from '@shopify/draggable/lib/snappable';
```

```html
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/SwapAnimation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {Plugins} from '@shopify/draggable';
```

```js
import SwapAnimation from '@shopify/draggable/plugins/swap-animation';
import SwapAnimation from '@shopify/draggable/lib/plugins/swap-animation';
```

```html
Expand Down
2 changes: 1 addition & 1 deletion src/Sortable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {Sortable} from '@shopify/sortable';
```

```js
import Sortable from '@shopify/draggable/sortable';
import Sortable from '@shopify/draggable/lib/sortable';
```

```html
Expand Down
4 changes: 2 additions & 2 deletions src/Swappable/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Swappable

Droppable is built on top of Draggable and allows you to swap elements by dragging over them. No order will be maintained (unlike Sortable),
Swappable is built on top of Draggable and allows you to swap elements by dragging over them. No order will be maintained (unlike Sortable),
so any draggable element that gets dragged over will be swapped with the source element.

### Import
Expand All @@ -10,7 +10,7 @@ import {Swappable} from '@shopify/sortable';
```

```js
import Swappable from '@shopify/draggable/swappable';
import Swappable from '@shopify/draggable/lib/swappable';
```

```html
Expand Down

0 comments on commit aa51055

Please sign in to comment.