addToHeaderSearchPaths.js 914 B

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = addToHeaderSearchPaths;
  6. var _mapHeaderSearchPaths = _interopRequireDefault(require("./mapHeaderSearchPaths"));
  7. function _cliTools() {
  8. const data = require("@react-native-community/cli-tools");
  9. _cliTools = function () {
  10. return data;
  11. };
  12. return data;
  13. }
  14. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15. /**
  16. * Copyright (c) Facebook, Inc. and its affiliates.
  17. *
  18. * This source code is licensed under the MIT license found in the
  19. * LICENSE file in the root directory of this source tree.
  20. *
  21. */
  22. function addToHeaderSearchPaths(project, path) {
  23. _cliTools().logger.debug(`Adding ${path} to header search paths`);
  24. (0, _mapHeaderSearchPaths.default)(project, searchPaths => searchPaths.concat(path));
  25. }
  26. //# sourceMappingURL=addToHeaderSearchPaths.js.map