mirror of
https://github.com/status-im/metro.git
synced 2025-01-17 06:31:12 +00:00
e74e123300
Summary: Node v4 support has been broken for some time, with CircleCI failing tests. That's because it needs an additional transform for the spread operator in call position. Ex `foo(...smth)` expanding to `foo.apply(null, smth)`. Also, the build script was using syntax not supported by Node v4. This changeset fixes the build script, and adds the missing transform. This will be used both for jest test and for the produced production output. This is needed for prod output since we want it to be able to be ran on Node v4 out-of-the-box. CircleCI will confirm these changes work properly on all supported versions of Node. Closes https://github.com/facebook/metro-bundler/pull/16 Differential Revision: D5319746 Pulled By: davidaurelio fbshipit-source-id: 6c001b562b43da0625d1ac15d018117524970431
65 lines
2.4 KiB
JSON
65 lines
2.4 KiB
JSON
{
|
|
"private": true,
|
|
"devDependencies": {
|
|
"babel-core": "^6.23.1",
|
|
"babel-eslint": "^7.1.1",
|
|
"babel-jest": "^19.0.0",
|
|
"babel-plugin-syntax-trailing-function-commas": "^6.20.0",
|
|
"babel-plugin-transform-async-to-generator": "^6.24.1",
|
|
"babel-plugin-transform-class-properties": "^6.18.0",
|
|
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
|
|
"babel-plugin-transform-es2015-parameters": "^6.23.0",
|
|
"babel-plugin-transform-es2015-spread": "^6.22.0",
|
|
"babel-plugin-transform-flow-strip-types": "^6.21.0",
|
|
"babel-plugin-transform-object-rest-spread": "^6.20.2",
|
|
"babel-preset-es2015-node": "^6.1.1",
|
|
"babel-preset-fbjs": "^2.1.0",
|
|
"chalk": "^1.1.3",
|
|
"codecov": "^2.2.0",
|
|
"eslint": "^3.11.1",
|
|
"eslint-config-fb-strict": "^20.0.3",
|
|
"eslint-plugin-babel": "^4.0.0",
|
|
"eslint-plugin-flowtype": "^2.28.2",
|
|
"eslint-plugin-prettier": "2.1.1",
|
|
"eslint-plugin-react": "^7.0.1",
|
|
"flow-bin": "^0.48.0",
|
|
"glob": "^7.1.1",
|
|
"image-size": "^0.5.1",
|
|
"istanbul-api": "^1.1.0",
|
|
"istanbul-lib-coverage": "^1.0.0",
|
|
"jest": "^19.0.2",
|
|
"lerna": "^2.0.0-rc.5",
|
|
"micromatch": "^2.3.11",
|
|
"mkdirp": "^0.5.1",
|
|
"prettier": "1.3.1",
|
|
"promise": "^7.1.1",
|
|
"sinon": "^2.3.1",
|
|
"temp": "^0.8.3"
|
|
},
|
|
"scripts": {
|
|
"build-clean": "rm -rf ./packages/*/build",
|
|
"build": "node ./scripts/build.js",
|
|
"clean-all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules && yarn run build-clean",
|
|
"jest-coverage": "yarn run jest -- --coverage",
|
|
"lint": "eslint . --cache",
|
|
"lint-fix": "eslint . --fix --cache",
|
|
"postinstall": "node ./scripts/postinstall.js && node ./scripts/build.js",
|
|
"publish": "yarn run build-clean && yarn run build && lerna run prepare-release && lerna publish",
|
|
"postpublish": "lerna run cleanup-release",
|
|
"test-ci": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest-coverage -- -i && node scripts/mapCoverage.js && codecov",
|
|
"test": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest && yarn run test-examples",
|
|
"typecheck": "flow check",
|
|
"watch": "yarn run build --silent && node ./scripts/watch.js"
|
|
},
|
|
"jest": {
|
|
"modulePathIgnorePatterns": [
|
|
"packages/.*/build"
|
|
],
|
|
"testEnvironment": "node",
|
|
"timers": "fake",
|
|
"setupFiles": [
|
|
"<rootDir>/scripts/setupJest.js"
|
|
]
|
|
}
|
|
}
|