• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*! *****************************************************************************
2Copyright (c) Microsoft Corporation. All rights reserved.
3Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4this file except in compliance with the License. You may obtain a copy of the
5License at http://www.apache.org/licenses/LICENSE-2.0
6
7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10MERCHANTABLITY OR NON-INFRINGEMENT.
11
12See the Apache Version 2.0 License for specific language governing permissions
13and limitations under the License.
14***************************************************************************** */
15
16
17"use strict";
18var __create = Object.create;
19var __defProp = Object.defineProperty;
20var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
21var __getOwnPropNames = Object.getOwnPropertyNames;
22var __getProtoOf = Object.getPrototypeOf;
23var __hasOwnProp = Object.prototype.hasOwnProperty;
24var __copyProps = (to, from, except, desc) => {
25  if (from && typeof from === "object" || typeof from === "function") {
26    for (let key of __getOwnPropNames(from))
27      if (!__hasOwnProp.call(to, key) && key !== except)
28        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29  }
30  return to;
31};
32var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34  mod
35));
36
37// src/watchGuard/watchGuard.ts
38var fs = __toESM(require("fs"));
39if (process.argv.length < 3) {
40  process.exit(1);
41}
42var directoryName = process.argv[2];
43try {
44  const watcher = fs.watch(directoryName, { recursive: true }, () => ({}));
45  watcher.close();
46} catch (e) {
47}
48process.exit(0);
49//# sourceMappingURL=watchGuard.js.map
50