removeSharedLibraries.js 607 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = removeSharedLibraries;
  6. /**
  7. * Copyright (c) Facebook, Inc. and its affiliates.
  8. *
  9. * This source code is licensed under the MIT license found in the
  10. * LICENSE file in the root directory of this source tree.
  11. *
  12. */
  13. function removeSharedLibraries(project, libraries) {
  14. if (!libraries.length) {
  15. return;
  16. }
  17. const target = project.getFirstTarget().uuid;
  18. for (const name of libraries) {
  19. project.removeFramework(name, {
  20. target
  21. });
  22. }
  23. }
  24. //# sourceMappingURL=removeSharedLibraries.js.map