diff --git a/.eslintrc.js b/.eslintrc.js index 02e482bcae..be8fadebc6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,7 +12,7 @@ module.exports = { settings: { version: 'detect', // React version. "detect" automatically picks the version you have installed. }, - ignorePatterns: ['test/react-native/versions/**/*', 'coverage/**/*', 'test/typescript/**/*'], + ignorePatterns: ['test/react-native/versions/**/*', 'coverage/**/*', 'test/typescript/**/*', 'metro.d.ts'], overrides: [ { // Typescript Files diff --git a/tsconfig.build.json b/tsconfig.build.json index 88419dcec9..8ccdabd2fb 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -4,6 +4,9 @@ "exclude": ["node_modules"], "compilerOptions": { "baseUrl": ".", + "paths": { + "metro": ["node_modules/metro/src/index"] + }, "outDir": "dist", "rootDir": "src", "lib": ["es7"], diff --git a/tsconfig.build.tools.json b/tsconfig.build.tools.json index ee8be90b48..ec96fcf830 100644 --- a/tsconfig.build.tools.json +++ b/tsconfig.build.tools.json @@ -4,6 +4,9 @@ "exclude": ["node_modules"], "compilerOptions": { "baseUrl": ".", + "paths": { + "metro": ["node_modules/metro/src/index"] + }, "outDir": "dist", "rootDir": "src", "lib": ["es7"],