diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..b075169 --- /dev/null +++ b/index.ts @@ -0,0 +1,17 @@ +import Button from './lib/components/Button/Button' +import Checkbox from './lib/components/Checkbox/Checkbox' +import Icon from './lib/components/Icon/Icon' +import RadioButton from './lib/components/RadioButton/RadioButton' +import Select from './lib/components/Select/Select' +import Slider from './lib/components/Slider/Slider' +import TextInput from './lib/components/TextInput/TextInput' + +export { + Button, + Checkbox, + Icon, + RadioButton, + Select, + Slider, + TextInput, +} diff --git a/lib/index.ts b/lib/index.ts deleted file mode 100644 index 43b0c73..0000000 --- a/lib/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -import Button from './components/Button/Button' -import Checkbox from './components/Checkbox/Checkbox' -import Icon from './components/Icon/Icon' -import RadioButton from './components/RadioButton/RadioButton' -import Select from './components/Select/Select' -import Slider from './components/Slider/Slider' -import TextInput from './components/TextInput/TextInput' - -export { - Button, - Checkbox, - Icon, - RadioButton, - Select, - Slider, - TextInput, -} diff --git a/rollup.config.js b/rollup.config.js index c8c1f16..f8267c8 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -4,21 +4,20 @@ import typescript from '@rollup/plugin-typescript' import pkg from './package.json' -const ENTRY_POINT = './lib/index.ts' +const ENTRY_POINT = './index.ts' -export default [ - { - input: ENTRY_POINT, - output: { - dir: pkg.directories.lib, - format: 'cjs', - }, - plugins: [ - peerDepsExternal({ - includeDependencies: true, - }), - typescript(), - process.env.NODE_ENV === 'production' && terser(), - ], +export default { + input: ENTRY_POINT, + output: { + dir: pkg.directories.lib, + format: 'cjs', + sourcemap: true, }, -] + plugins: [ + peerDepsExternal({ + includeDependencies: true, + }), + typescript(), + process.env.NODE_ENV === 'production' && terser(), + ], +} diff --git a/tsconfig.json b/tsconfig.json index 8cbe6a1..b6d1285 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,9 +19,14 @@ "noEmit": true, "jsx": "react", "declaration": true, - "declarationDir": "./dist" + "declarationDir": "./dist", + "sourceMap": true }, "exclude": [ - "node_modules" + "node_modules", + "**/*.test.ts", + "**/*.test.tsx", + "utilities/**/*", + "jest.setup.ts" ] }