link-task.js 683 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const options_1 = require("./options");
  4. class NodePackageLinkTask {
  5. constructor(packageName, workingDirectory) {
  6. this.packageName = packageName;
  7. this.workingDirectory = workingDirectory;
  8. this.quiet = true;
  9. }
  10. toConfiguration() {
  11. return {
  12. name: options_1.NodePackageName,
  13. options: {
  14. command: 'link',
  15. quiet: this.quiet,
  16. workingDirectory: this.workingDirectory,
  17. packageName: this.packageName,
  18. },
  19. };
  20. }
  21. }
  22. exports.NodePackageLinkTask = NodePackageLinkTask;