1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
18 | return new (P || (P = Promise))(function (resolve, reject) {
|
19 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
20 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
21 | function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
22 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
23 | });
|
24 | };
|
25 | Object.defineProperty(exports, "__esModule", { value: true });
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | function isInLocalMode() {
|
31 | return process.env.ATOMIST_MODE === "local";
|
32 | }
|
33 | exports.isInLocalMode = isInLocalMode;
|
34 |
|
35 |
|
36 |
|
37 | exports.IsInLocalMode = {
|
38 | name: "IsInLocalMode",
|
39 | mapping: () => __awaiter(this, void 0, void 0, function* () { return isInLocalMode(); }),
|
40 | };
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | function isGitHubAction() {
|
46 | return !!process.env.GITHUB_WORKFLOW && !!process.env.GITHUB_ACTION && !!process.env.GITHUB_WORKSPACE;
|
47 | }
|
48 | exports.isGitHubAction = isGitHubAction;
|
49 |
|
50 |
|
51 |
|
52 | exports.IsGitHubAction = {
|
53 | name: "IsGitHubAction",
|
54 | mapping: () => __awaiter(this, void 0, void 0, function* () { return isGitHubAction(); }),
|
55 | };
|
56 |
|
\ | No newline at end of file |