Skip to content

Commit

Permalink
chore: cleanup build config, drop expo peer dep
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Jun 2, 2022
1 parent afa201c commit 90974e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"react-native": "^0.67.1",
"react-test-renderer": "^17.0.2",
"rimraf": "^3.0.2",
"rollup-include-all": "^1.0.2",
"rollup-include-all": "^1.1.0",
"typescript": "^4.5.5",
"vite": "^2.9.9"
},
Expand All @@ -62,7 +62,6 @@
"zustand": "3.7.1"
},
"peerDependencies": {
"expo": ">=43.0",
"expo-gl": ">=11.0",
"ogl": ">=0.0.72",
"react": ">=17.0",
Expand All @@ -76,9 +75,6 @@
"react-native": {
"optional": true
},
"expo": {
"optional": true
},
"expo-gl": {
"optional": true
}
Expand All @@ -88,7 +84,6 @@
"build": "vite build && tsc",
"test": "jest",
"lint": "eslint src/**/*.{ts,tsx}",
"lint-fix": "prettier . --write && eslint --fix src/**/*.{ts,tsx}",
"prepublish": "yarn build && yarn test && yarn lint"
"lint-fix": "prettier . --write && eslint --fix src/**/*.{ts,tsx}"
}
}
5 changes: 1 addition & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import path from 'path'
import { defineConfig } from 'vite'
import includeAll from 'rollup-include-all'

const LIBRARY_MODE = process.env.NODE_ENV === 'production'

export default defineConfig({
plugins: [LIBRARY_MODE && includeAll()].filter(Boolean),
logLevel: LIBRARY_MODE ? 'warn' : 'info',
plugins: [includeAll()],
root: 'examples',
resolve: {
alias: {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6445,10 +6445,10 @@ rimraf@~2.6.2:
dependencies:
glob "^7.1.3"

rollup-include-all@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/rollup-include-all/-/rollup-include-all-1.0.2.tgz#07ea17927cef5478f6b6cd157e92ae3ef5ea433b"
integrity sha512-I9D3MGYvyFdVyIOML6jF/mNw9tsDjgZm7VrMTph//hV51It28ENDNS1YtiCH72vjNduKTR+dt2bHi+KSS9UVLA==
rollup-include-all@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/rollup-include-all/-/rollup-include-all-1.1.0.tgz#13e25b477a3fca07f87e3653724be95f3393d0b3"
integrity sha512-usqSx9D/OpX9eTMiAR1jC/eM/WpbWiz5ATfdiVs73gjlYwhq4mO7VjY+eSouFhudKS4ViBdg/yRodSvUMdRDPw==

rollup@^2.59.0:
version "2.75.3"
Expand Down

0 comments on commit 90974e9

Please sign in to comment.