diff --git a/package.json b/package.json index 71eefab3..e30ada76 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@nearform/quantum", - "version": "0.0.1", + "version": "0.0.4", "description": "Component library based on the Quantum Design System", - "main": "index.js", + "main": "dist/index.js", "scripts": { "build": "tsup", "lint": "eslint .", @@ -11,6 +11,10 @@ "storybook": "storybook dev -p 6006", "build-storybook": "storybook build" }, + "files": [ + "dist/", + "README.md" + ], "repository": { "type": "git", "url": "git+https://github.com/nearform/quantum.git" diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..7e4a1d14 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,5 @@ +export { colors } from './colors' +export * from './components/Button' +export * from './components/Checkbox' +export * from './components/Label' +export * from './components/Radio' diff --git a/tsup.config.ts b/tsup.config.ts index bf5b2ed2..b1cb3a10 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,8 +1,8 @@ import { defineConfig } from 'tsup' export default defineConfig({ - entry: ['src/index.tsx', 'src/global.css', 'src/colors.ts'], - dts: true, + entry: ['src/index.ts', 'src/global.css'], + dts: { entry: ['src/index.ts'] }, clean: true, sourcemap: true })