diff --git a/package.json b/package.json index 6a25b4d..1eecae8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@platformbuilders/react-native-toast", - "version": "0.0.3", + "version": "0.0.4", "description": "", "author": "Platform Builders ", "repository": { @@ -19,7 +19,7 @@ "test": "cross-env CI=1 react-scripts test --env=jsdom --passWithNoTests", "test:watch": "react-scripts test --env=jsdom", "build": "rm -rf dist && npm run build:cjs", - "build:cjs": "tsc ./src/ToastProvider.tsx --module CommonJS --jsx react-jsx --outDir dist --skipLibCheck true --esModuleInterop true", + "build:cjs": "tsc ./src/index.ts --module CommonJS --jsx react-jsx --outDir dist --skipLibCheck true --esModuleInterop true", "start": "rollup -c -w", "prepare": "husky install", "pretty": "prettier --config ./.prettierrc.js --write \"src/**/*.{jsx,ts,tsx,json}\"", diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..ac050c6 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,2 @@ +export * from './Toast'; +export * from './ToastProvider';