-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: upgrade to jest 24 * download react-is from npm manually
- Loading branch information
Showing
13 changed files
with
781 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const pacote = require('pacote'); | ||
const rimraf = require('rimraf'); | ||
const prettyFormatPkg = require('pretty-format/package.json'); | ||
const prettyFormatPkgPath = require.resolve('pretty-format/package.json'); | ||
|
||
const reactIsDependencyVersion = prettyFormatPkg.dependencies['react-is']; | ||
|
||
if (!reactIsDependencyVersion) { | ||
throw new Error('Unable to find `react-is` dependency in `pretty-format`'); | ||
} | ||
|
||
const prettyFormatNodeModulesReactIsDir = path.join( | ||
path.dirname(prettyFormatPkgPath), | ||
'node_modules/react-is' | ||
); | ||
|
||
rimraf.sync(prettyFormatNodeModulesReactIsDir); | ||
|
||
pacote | ||
.extract( | ||
`react-is@${reactIsDependencyVersion}`, | ||
prettyFormatNodeModulesReactIsDir | ||
) | ||
.catch(error => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
Oops, something went wrong.