Skip to content

Commit

Permalink
Fix CI for node < 8
Browse files Browse the repository at this point in the history
Summary:
Thanks alloy for noticing that 0d24a72 broke CI.  The reason is that node < 8 does not support trailing commas for function calls which prettier adds in our configuration. This should fix it.
Closes #2373

Differential Revision: D7311796

Pulled By: kassens

fbshipit-source-id: fcc7a172917d398e8022d3bb6f5f5f1a90f20e0d
  • Loading branch information
kassens authored and facebook-github-bot committed Mar 16, 2018
1 parent b8a79d5 commit 17cc27b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/jest/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ module.exports = {
getCacheKey: createCacheKeyFunction([
__filename,
testSchemaPath,
// We cannot have trailing commas in this file for node < 8
// prettier-ignore
path.join(
path.dirname(require.resolve('babel-preset-fbjs')),
'package.json',
'package.json'
),
path.join(__dirname, '..', 'getBabelOptions.js'),
]),
Expand Down

0 comments on commit 17cc27b

Please sign in to comment.