diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0d1e875..0a99e38 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,8 @@ jobs: uses: actions/checkout@v2 - name: Install Modules run: npm ci + - name: Run type check + run: npm run types:check - name: Run Linter run: npm run lint - name: Run Tests diff --git a/package.json b/package.json index 3522bc2..c5c3df3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rive-react", - "version": "0.0.1", + "version": "0.0.2", "description": "React wrapper around the rive-js library", "main": "dist/index.js", "typings": "dist/types/index.d.ts", @@ -8,7 +8,8 @@ "test": "jest", "build": "bunchee src/index.ts -m --no-sourcemap", "lint": "eslint -c .eslintrc.js 'src/**/*{.ts,.tsx}'", - "format": "prettier --write src" + "format": "prettier --write src", + "types:check": "tsc --noEmit" }, "repository": { "type": "git", diff --git a/src/index.ts b/src/index.ts index 3f7501d..d467f28 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,3 +5,4 @@ import useStateMachineInput from './hooks/useStateMachineInput'; export default Rive; export { useRive, useStateMachineInput }; export { RiveState, UseRiveParameters, UseRiveOptions } from './types'; +export * from 'rive-js';