UNPKG

577 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const cli_1 = require("./cli");
4const fs = require("fs");
5function path() {
6 if (fs.existsSync(cli_1.Cli.projectPath)) {
7 let stats = fs.lstatSync(cli_1.Cli.projectPath);
8 if (!stats.isDirectory()) {
9 cli_1.Cli.log("The path you specified is not a directory.");
10 cli_1.Cli.exit(1);
11 }
12 }
13 else {
14 cli_1.Cli.log("The path you specified did not exist.");
15 cli_1.Cli.exit(1);
16 }
17}
18exports.path = path;
19//# sourceMappingURL=path.js.map
\No newline at end of file