diff --git a/package.json b/package.json index 36bb7a23..d3346cb4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "caroucssel", "version": "0.12.0-0", "description": "A lightweight dependency-free css carousel.", - "module": "dist/caroucssel.js", + "module": "dist/index.js", "main": "dist/caroucssel.cjs.js", "unpkg": "dist/caroucssel.min.js", "types": "dist/caroucssel.d.ts", diff --git a/src/index.ts b/src/index.ts index e9d5d877..8dddbfc7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,5 @@ -import { Buttons } from './plugins/buttons'; -import { Mask } from './plugins/mask'; -import { Pagination } from './plugins/pagination'; - - -export { Carousel } from './caroucssel'; -export const plugins = { Buttons, Mask, Pagination }; +export { Buttons } from './plugins/buttons'; +export { Mask } from './plugins/mask'; +export { Mouse } from './plugins/mouse'; +export { Pagination } from './plugins/pagination'; +export * from './caroucssel'; diff --git a/tsconfig.build.json b/tsconfig.build.json index 3cf4994d..4b357cf9 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,11 +1,7 @@ { "extends": "./tsconfig.json", "include": [ - "./src/caroucssel.ts", - "./src/plugins/buttons/index.ts", - "./src/plugins/mask/index.ts", - "./src/plugins/mouse/index.ts", - "./src/plugins/pagination/index.ts" + "./src/index.ts" ], "compilerOptions": { "declarationMap": false,