Skip to content

Commit

Permalink
Fix build to work on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Nov 13, 2017
1 parent fc5c6ec commit fb3331f
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"glamor": "^2.20.40",
"np": "^2.16.1",
"npm-run-all": "^4.1.2",
"react": "^15.6.2",
"reason-react": "^0.2.4",
"reductive": "^0.1.0",
"rimraf": "^2.6.2",
Expand Down
7 changes: 2 additions & 5 deletions scripts/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
const fs = require('fs')
const path = require('path')

const lower = name =>
path.basename(name).replace(/^./, letter => letter.toLowerCase())

const root = path.join(__dirname, '..')
const script = process.argv[2]
const output = script.replace(path.join(root, 'lib', 'js'), '')
const js = path.join(path.dirname(script), lower(script))
const js = path.join(path.dirname(script), path.basename(script))

fs.writeFileSync(
path.join(root, path.dirname(output), lower(output)),
path.join(root, path.dirname(output), path.basename(output)),
fs.readFileSync(js)
)
18 changes: 18 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,14 @@ create-hmac@^1.1.0, create-hmac@^1.1.2:
create-hash "^1.1.0"
inherits "^2.0.1"

create-react-class@^15.6.0:
version "15.6.2"
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.2.tgz#cf1ed15f12aad7f14ef5f2dfe05e6c42f91ef02a"
dependencies:
fbjs "^0.8.9"
loose-envify "^1.3.1"
object-assign "^4.1.1"

cross-spawn-async@^2.1.1:
version "2.2.5"
resolved "https://registry.yarnpkg.com/cross-spawn-async/-/cross-spawn-async-2.2.5.tgz#845ff0c0834a3ded9d160daca6d390906bb288cc"
Expand Down Expand Up @@ -4158,6 +4166,16 @@ react@>=15.0.0:
object-assign "^4.1.1"
prop-types "^15.6.0"

react@^15.6.2:
version "15.6.2"
resolved "https://registry.yarnpkg.com/react/-/react-15.6.2.tgz#dba0434ab439cfe82f108f0f511663908179aa72"
dependencies:
create-react-class "^15.6.0"
fbjs "^0.8.9"
loose-envify "^1.1.0"
object-assign "^4.1.0"
prop-types "^15.5.10"

read-pkg-up@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02"
Expand Down

0 comments on commit fb3331f

Please sign in to comment.