Fix build automation and only include dist files

This commit is contained in:
Arthur Vivian
2021-06-28 15:53:41 +01:00
parent b4bbc9f6d0
commit 35bf459ea5
2 changed files with 4 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ jobs:
- name: Run Tests
run: npm test
- name: Build
run: npm build
run: npm run build
- name: Git config
run: |
git config --local user.email 'hello@rive.app'

View File

@@ -4,6 +4,9 @@
"description": "React wrapper around the rive-js library",
"main": "dist/index.js",
"typings": "dist/types/index.d.ts",
"files": [
"./dist/**"
],
"scripts": {
"test": "jest",
"build": "bunchee src/index.ts -m --no-sourcemap",