|
| 1 | +/** |
| 2 | + * Copyright (c) 2015-present, Facebook, Inc. |
| 3 | + * All rights reserved. |
| 4 | + * |
| 5 | + * This source code is licensed under the BSD-style license found in the |
| 6 | + * LICENSE file in the root directory of this source tree. An additional grant |
| 7 | + * of patent rights can be found in the PATENTS file in the same directory. |
| 8 | + */ |
| 9 | + |
| 10 | +var path = require('path'); |
| 11 | + |
| 12 | +function resolve(relativePath) { |
| 13 | + return path.resolve(__dirname, relativePath); |
| 14 | +} |
| 15 | + |
| 16 | +module.exports = { |
| 17 | + appBuild: resolve('../build'), |
| 18 | + appHtml: resolve('../index.html'), |
| 19 | + appFavicon: resolve('../favicon.ico'), |
| 20 | + appPackageJson: resolve('../package.json'), |
| 21 | + appSrc: resolve('../src'), |
| 22 | + appNodeModules: resolve('../node_modules'), |
| 23 | + ownNodeModules: resolve('../node_modules') |
| 24 | +}; |
| 25 | + |
| 26 | +// Dead code on eject: start |
| 27 | +// before eject: we're in ./node_modules/react-scripts/config/ |
| 28 | +module.exports = { |
| 29 | + appBuild: resolve('../../../build'), |
| 30 | + appHtml: resolve('../../../index.html'), |
| 31 | + appFavicon: resolve('../../../favicon.ico'), |
| 32 | + appPackageJson: resolve('../../../package.json'), |
| 33 | + appSrc: resolve('../../../src'), |
| 34 | + appNodeModules: resolve('../..'), |
| 35 | + // this is empty with npm3 but node resolution searches higher anyway: |
| 36 | + ownNodeModules: resolve('../node_modules') |
| 37 | +}; |
| 38 | +// Dead code on eject: end |
0 commit comments