8000 [dist] run build and add prepublish script · dasveloper/react-sortablejs@2ed5acf · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ed5acf

Browse files
author
Wayne Van Son
committed
[dist] run build and add prepublish script
1 parent 7508b8c commit 2ed5acf

File tree

6 files changed

+4
-5
lines changed

6 files changed

+4
-5
lines changed

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { default as Sortable, Direction, DOMRect, GroupOptions, MoveEvent, MultiDrag, Options, PullResult, PutResult, SortableEvent, SortableOptions, Swap, Utils } from "sortablejs";
2-
export { ReactSortable as default, ReactSortable } from "./react-sortable";
2+
export { ReactSortable } from "./react-sortable";
33
export * from "./types";
44
//# sourceMappingURL=index.d.ts.map

dist/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.es.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,5 +418,4 @@ var ReactSortable = /** @class */ (function (_super) {
418418
return ReactSortable;
419419
}(Component));
420420

421-
export default ReactSortable;
422421
export { ReactSortable };

dist/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,3 @@ Object.defineProperty(exports, 'Swap', {
438438
}
439439
});
440440
exports.ReactSortable = ReactSortable;
441-
exports.default = ReactSortable;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"local-types"
1616
],
1717
"scripts": {
18+
"prepublishOnly": "yarn build",
1819
"start": "parcel examples/index.html --out-dir temp/server --cache-dir temp/cache ",
1920
"build": "yarn build:rollup && yarn build:tsc",
2021
"build:rollup": " rollup --config config/rollup.config.js",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export {
1313
Swap,
1414
Utils
1515
} from "sortablejs";
16-
export { ReactSortable as default, ReactSortable } from "./react-sortable";
16+
export { ReactSortable } from "./react-sortable";
1717
export * from "./types";

0 commit comments

Comments
 (0)
0