Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Add babel-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
loeck committed Jan 30, 2018
1 parent 2d54b4d commit 398a50c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
10 changes: 6 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
"env",
{
"targets": {
"browsers": ["last 2 Chrome versions"],
"node": "8"
}
"browsers": ["last 2 versions"],
"node": 8
},
"forceAllTransforms": true
}
],
"flow",
"react",
"stage-0"
]
],
"plugins": ["transform-runtime"]
}
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,35 @@
"private": true,
"name": "ledger-libs",
"version": "0.0.0",
"workspaces": ["packages/*"],
"workspaces": [
"packages/*"
],
"scripts": {
"preinstall":
"node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) { console.log('\u001b[31mPlease use yarn\u001b[0m'); process.exit(1); }\"",
"postinstall":
"flow-mono create-symlinks packages/hw-transport/.flowconfig && flow-mono install-types --overwrite --ignoreDeps=peer || echo 'failed to setup flow-typed'",
"preinstall": "node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) { console.log('\u001b[31mPlease use yarn\u001b[0m'); process.exit(1); }\"",
"postinstall": "flow-mono create-symlinks packages/hw-transport/.flowconfig && flow-mono install-types --overwrite --ignoreDeps=peer || echo 'failed to setup flow-typed'",
"test": "lerna run test",
"test-node": "cd packages/test && yarn run test-node",
"test-browser": "cd packages/test && yarn run test-browser",
"documentation":
"documentation build packages/hw-*/src/** packages/react-native-*/src/** --project-name '@ledgerhq/*' --project-version `node -e \"console.log(require('./lerna.json').version)\"` --project-homepage https://github.com/LedgerHQ/ledgerjs --config documentation.yml -g -f html -o packages/documentation-website/public/docs",
"documentation": "documentation build packages/hw-*/src/** packages/react-native-*/src/** --project-name '@ledgerhq/*' --project-version `node -e \"console.log(require('./lerna.json').version)\"` --project-homepage https://github.com/LedgerHQ/ledgerjs --config documentation.yml -g -f html -o packages/documentation-website/public/docs",
"prettier": "prettier --write 'packages/*/src/**/*.js'",
"prettier-diff": "prettier --list-different 'packages/*/src/**/*.js'",
"lint": "eslint packages/**/src",
"flow": "lerna run flow",
"build": "yarn run documentation && lerna run build",
"build": "BABEL_ENV=production && yarn run documentation && lerna run build",
"watch": "lerna run --parallel watch",
"clean":
"rm -rf node_modules packages/*/node_modules/ packages/*/flow-typed/ packages/*/lib flow-typed",
"clean": "rm -rf node_modules packages/*/node_modules/ packages/*/flow-typed/ packages/*/lib flow-typed",
"rebuild": "lerna run clean && lerna run build",
"publish":
"yarn && lerna run clean && lerna run build && lerna publish --registry=https://registry.npmjs.org/"
"publish": "yarn && lerna run clean && lerna run build && lerna publish --registry=https://registry.npmjs.org/"
},
"dependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",
"browserify": "^15.1.0",
"documentation": "^5.3.5",
"eslint": "^4.11.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ [email protected], babel-plugin-transform-regenerator@^6
dependencies:
regenerator-transform "^0.10.0"

[email protected]:
[email protected], babel-plugin-transform-runtime@^6.23.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee"
dependencies:
Expand Down

0 comments on commit 398a50c

Please sign in to comment.