link-task.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. /**
  3. * @license
  4. * Copyright Google LLC All Rights Reserved.
  5. *
  6. * Use of this source code is governed by an MIT-style license that can be
  7. * found in the LICENSE file at https://angular.dev/license
  8. */
  9. Object.defineProperty(exports, "__esModule", { value: true });
  10. exports.NodePackageLinkTask = void 0;
  11. const options_1 = require("./options");
  12. /**
  13. * @deprecated since version 18. Create a custom task if required.
  14. */
  15. class NodePackageLinkTask {
  16. packageName;
  17. workingDirectory;
  18. quiet = true;
  19. constructor(packageName, workingDirectory) {
  20. this.packageName = packageName;
  21. this.workingDirectory = workingDirectory;
  22. }
  23. toConfiguration() {
  24. return {
  25. name: options_1.NodePackageName,
  26. options: {
  27. command: 'link',
  28. quiet: this.quiet,
  29. workingDirectory: this.workingDirectory,
  30. packageName: this.packageName,
  31. },
  32. };
  33. }
  34. }
  35. exports.NodePackageLinkTask = NodePackageLinkTask;