BaseWatchPlugin.js 797 B

1234567891011121314151617181920212223242526272829303132333435
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. /**
  7. * Copyright (c) Meta Platforms, Inc. and 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. class BaseWatchPlugin {
  13. _stdin;
  14. _stdout;
  15. constructor({stdin, stdout}) {
  16. this._stdin = stdin;
  17. this._stdout = stdout;
  18. }
  19. // eslint-disable-next-line @typescript-eslint/no-empty-function
  20. apply(_hooks) {}
  21. getUsageInfo(_globalConfig) {
  22. return null;
  23. }
  24. // eslint-disable-next-line @typescript-eslint/no-empty-function
  25. onKey(_key) {}
  26. run(_globalConfig, _updateConfigAndRun) {
  27. return Promise.resolve();
  28. }
  29. }
  30. var _default = BaseWatchPlugin;
  31. exports.default = _default;