Skip to content

Commit

Permalink
Merge pull request #2059 from wordpress-mobile/rnmobile/remove-ref-to…
Browse files Browse the repository at this point in the history
…-deleted-mocks

Remove reference to nonexistent mocks
  • Loading branch information
guarani authored Apr 30, 2020
2 parents 114d607 + ce8b917 commit f4a1a79
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 483 deletions.
7 changes: 0 additions & 7 deletions extra-node-modules.config.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
"metro-react-native-babel-transformer": "^0.53.0",
"moment": "^2.22.1",
"moment-timezone": "^0.5.16",
"node-libs-react-native": "^1.0.2",
"node-sass": "^4.12.0",
"react": "16.9.0",
"react-native": "0.61.5",
Expand Down
4 changes: 1 addition & 3 deletions rn-cli-inside-gb.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const blacklistElements = blacklist( [
new RegExp( path.basename( __dirname ) + '/gutenberg/.*' ),
] );

const enm = require( './extra-node-modules.config.js' );

const { lstatSync, readdirSync } = require( 'fs' );
const getDirectoryNames = ( dir ) =>
readdirSync( dir ).filter( ( name ) => lstatSync( path.resolve( dir, name ) ).isDirectory() );
Expand All @@ -26,9 +24,9 @@ const alternateRoots = [ path.resolve( __dirname, '../node_modules' ) ].concat(
);

module.exports = {
extraNodeModules: Object.assign( enm, wppackages ),
watchFolders: alternateRoots,
resolver: {
extraNodeModules: wppackages,
blacklistRE: blacklistElements,
sourceExts: [ 'js', 'json', 'scss', 'sass' ],
providesModuleNodeModules: [ 'react-native-svg', 'react-native' ],
Expand Down
2 changes: 0 additions & 2 deletions rn-cli.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ const blacklistElements = blacklist( [
new RegExp( path.basename( __dirname ) + '/gutenberg/node_modules/.*' ),
new RegExp( path.basename( __dirname ) + '/gutenberg/gutenberg-mobile/.*' ),
] );
const enm = require( './extra-node-modules.config.js' );

module.exports = {
extraNodeModules: enm,
resolver: {
blacklistRE: blacklistElements,
sourceExts: [ 'js', 'json', 'scss', 'sass', 'ts', 'tsx' ],
Expand Down
Loading

0 comments on commit f4a1a79

Please sign in to comment.