Merge pull request #10 from rive-app/rive-export

Export rive-js types
This commit is contained in:
Arthur Vivian
2021-06-07 13:00:46 +01:00
committed by GitHub
3 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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';