@forge/cli-shared 9.11.0-next.1 → 9.11.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +68 -0
- package/out/apps/create-an-app.d.ts +3 -1
- package/out/apps/create-an-app.d.ts.map +1 -1
- package/out/apps/create-an-app.js +12 -2
- package/out/apps/get-app-owner.d.ts.map +1 -1
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +1 -1
- package/out/file-system/file-system-reader.d.ts.map +1 -1
- package/out/file-system/file-system-reader.js +3 -4
- package/out/graphql/gql/graphql.d.ts +421 -31
- package/out/graphql/gql/graphql.d.ts.map +1 -1
- package/out/shared/forge-cli-attribution.d.ts +3 -0
- package/out/shared/forge-cli-attribution.d.ts.map +1 -1
- package/out/shared/forge-cli-attribution.js +32 -5
- package/out/shared/index.d.ts +0 -3
- package/out/shared/index.d.ts.map +1 -1
- package/out/shared/index.js +0 -5
- package/out/shared/read-app-config-files.d.ts.map +1 -1
- package/out/shared/read-app-config-files.js +3 -4
- package/out/shared/runner-signals.d.ts +6 -0
- package/out/shared/runner-signals.d.ts.map +1 -0
- package/out/shared/runner-signals.js +11 -0
- package/out/ui/command-line-ui.js +1 -1
- package/out/ui/text.d.ts +17 -3
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +19 -5
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 9.11.0-next.11
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 112c0c6: Add `isAgentV2` and `isCIV2` to the attribution payload (`atl-attribution` header and analytics events), detecting whether a named agent or CI runs the command without reading the `CI` variable: `isCIV2` is `"true"` when `ci-info` names a CI tool, not when `CI=true`, and `isAgentV2` is `"true"` when an agent names itself, with or without a terminal. A named agent in a CI tool is both. `isAgent` and `isCI` are unchanged. Also send `ciHint` (the CI tool's `ci-info` id), `isTerminal` (stdin is a terminal) and `isUnrecognizedNonTTY`. The new fields are strings so the backend keeps them as wildcard fields. With the `non-interactive` setting `auto`, non-interactive mode turns on for a named agent (`isAgentV2`), in CI or not; CI, scripts and unnamed agents keep today's behaviour
|
|
8
|
+
|
|
9
|
+
Bump `@vercel/detect-agent` to 1.2.7 and add `ci-info` 4.4.0
|
|
10
|
+
|
|
11
|
+
## 9.11.0-next.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 32cccae: Use native `Array.prototype.flat` and `flatMap` instead of the `array.prototype.flatmap` polyfill.
|
|
16
|
+
|
|
17
|
+
## 9.11.0-next.9
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [f93add1]
|
|
22
|
+
- @forge/util@4.1.0-next.1
|
|
23
|
+
|
|
24
|
+
## 9.11.0-next.8
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- db8ec45: Remove unnecessary code from blank template after preset is applied
|
|
29
|
+
|
|
30
|
+
## 9.11.0-next.7
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- af4376a: `forge providers configure` can now read the OAuth client secret from stdin with `--read-oauth-client-secret`. `-s, --oauth-client-secret` still works but is deprecated and prints a warning. Passing `-s` without a value now asks for the secret instead of sending `true`. In non-interactive mode, a missing secret now fails with `MISSING_INPUT` and names `--read-oauth-client-secret`.
|
|
35
|
+
|
|
36
|
+
## 9.11.0-next.6
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- 1a8fe4a: Module composition for create presets runs before app registration
|
|
41
|
+
|
|
42
|
+
## 9.11.0-next.5
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- Updated dependencies [562c365]
|
|
47
|
+
- @forge/i18n@1.0.2-next.0
|
|
48
|
+
- @forge/manifest@13.9.1-next.0
|
|
49
|
+
|
|
50
|
+
## 9.11.0-next.4
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- Updated dependencies [68fb732]
|
|
55
|
+
- @forge/util@4.0.1-next.0
|
|
56
|
+
|
|
57
|
+
## 9.11.0-next.3
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- 9871b8c: Switch `forge tunnel` to `@atlassian/cloudflared`. It now updates the bundled cloudflared binary to at least 2026.10.3, and checks for newer versions every 14 days. Set `CLOUDFLARED_BIN` to use your own binary without updates.
|
|
62
|
+
- 79c8030: `forge webtrigger create --readSecretKey` now asks for the key with a hidden prompt when stdin is a terminal, instead of showing it as you type. Empty input and non-interactive mode now give clearer errors that say how to provide the key.
|
|
63
|
+
- e38146e: `forge webtrigger create --readSecretKey` now fails with an error when the web trigger module does not use `request.authentication: hmacSharedSecret`.
|
|
64
|
+
|
|
65
|
+
## 9.11.0-next.2
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- f04447d: Add a hidden `rovo-agent-skill` preset to `forge create` that adds a Rovo agent and a Rovo skill and lists the skill in the agent's `skills`
|
|
70
|
+
|
|
3
71
|
## 9.11.0-next.1
|
|
4
72
|
|
|
5
73
|
### Minor Changes
|
|
@@ -7,6 +7,8 @@ export interface CreateAppCommandInput extends CreateAppClientInput {
|
|
|
7
7
|
directory: string;
|
|
8
8
|
compatibility?: AppCompatibility;
|
|
9
9
|
install?: boolean;
|
|
10
|
+
prependAppName?: boolean;
|
|
11
|
+
beforeRegister?: (directory: string) => Promise<void>;
|
|
10
12
|
}
|
|
11
13
|
export declare class NoTemplatesError extends Error {
|
|
12
14
|
constructor();
|
|
@@ -22,7 +24,7 @@ export declare class CreateAppCommand {
|
|
|
22
24
|
private readonly packageInstaller;
|
|
23
25
|
private readonly statsig;
|
|
24
26
|
constructor(templater: Templater, registerAppCommand: RegisterAppCommand, packageInstaller: PackageInstaller, statsig: StatsigService);
|
|
25
|
-
execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures, install }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
27
|
+
execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures, install, prependAppName, beforeRegister }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
26
28
|
getAvailableTemplates(): Promise<string[]>;
|
|
27
29
|
filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T): Promise<T[]>;
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/G,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACvD;AAED,qBAAa,gBAAiB,SAAQ,KAAK;;CAI1C;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAHP,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,cAAc;IAG7B,OAAO,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,OAAO,EACP,cAAqB,EACrB,cAAc,EACf,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAmC7C,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAS1C,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACnD,QAAQ,EAAE,CAAC,EAAE,EACb,aAAa,EAAE,CAAC,EAChB,YAAY,EAAE,CAAC,GACd,OAAO,CAAC,CAAC,EAAE,CAAC;CAchB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateAppCommand = exports.NoTemplatesError = void 0;
|
|
4
|
+
const fs_extra_1 = require("fs-extra");
|
|
4
5
|
const ui_1 = require("../ui");
|
|
5
6
|
class NoTemplatesError extends Error {
|
|
6
7
|
constructor() {
|
|
@@ -19,8 +20,17 @@ class CreateAppCommand {
|
|
|
19
20
|
this.packageInstaller = packageInstaller;
|
|
20
21
|
this.statsig = statsig;
|
|
21
22
|
}
|
|
22
|
-
async execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures, install }) {
|
|
23
|
+
async execute({ name, description, template, directory, compatibility, developerSpaceId, billingConsent, appFeatures, install, prependAppName = true, beforeRegister }) {
|
|
23
24
|
await this.templater.downloadAndExtract(template, directory);
|
|
25
|
+
if (beforeRegister) {
|
|
26
|
+
try {
|
|
27
|
+
await beforeRegister(directory);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
(0, fs_extra_1.removeSync)(directory);
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
24
34
|
const result = await this.registerAppCommand.registerApp({
|
|
25
35
|
name,
|
|
26
36
|
description,
|
|
@@ -28,7 +38,7 @@ class CreateAppCommand {
|
|
|
28
38
|
billingConsent,
|
|
29
39
|
...(appFeatures && { appFeatures })
|
|
30
40
|
}, directory, {
|
|
31
|
-
shouldPrependAppName:
|
|
41
|
+
shouldPrependAppName: prependAppName,
|
|
32
42
|
compatibility
|
|
33
43
|
});
|
|
34
44
|
if (install !== false) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;QAuC+68gH,8CAAc;GA9Br98gH,CAAC;AAEH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,iBAAiB;IAGrC,OAAO;;;;;;;;;;;;;YAMN,WAAW;CAe1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EAOV,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,SAAS,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EACL,OAAO,EACP,cAAc,EACd,SAAS,EAOV,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEvD,qBAAa,oBAAqB,SAAQ,eAAe;;CAIxD;AAED,qBAAa,8BAA+B,SAAQ,SAAS;gBAC/C,SAAS,EAAE,MAAM,EAAE;CAGhC;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;CAC3C;AAED,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AACpC,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AACjE,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,YAAY,EAAE,cAAc,CAAC;CAC9B;AAgBD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CA6D5D;AAGD,eAAO,MAAM,4BAA4B,UAA2C,CAAC;AAErF,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAKxE;AAED,qBAAa,UAAW,YAAW,YAAY,EAAE,YAAY,EAAE,gBAAgB;IAG3E,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAH7B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;gBAE7B,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,gBAAgB;IAKlC,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAiBzC,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC;IAYrC,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKvD,OAAO,CAAC,kBAAkB;IAoBb,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAajE,OAAO,CAAC,aAAa;IAIR,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAe1G,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,wBAAwB;IAkBhC,OAAO,CAAC,6BAA6B;IAkBrC,OAAO,CAAC,gBAAgB;IAIX,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAqClF,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAsB1E,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CAkCxB"}
|
|
@@ -181,7 +181,7 @@ class ConfigFile {
|
|
|
181
181
|
this.writeManifest(currentConfigDoc);
|
|
182
182
|
}
|
|
183
183
|
getHostedResourceModules(modules) {
|
|
184
|
-
const modulesArray =
|
|
184
|
+
const modulesArray = Object.values(modules).flat();
|
|
185
185
|
return modulesArray.filter(config_1.isHostedResourceModule);
|
|
186
186
|
}
|
|
187
187
|
assertNoMissingResources(modules, resources) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"file-system-reader.d.ts","sourceRoot":"","sources":["../../src/file-system/file-system-reader.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,IAAI,CAAC;AAS9C,KAAK,cAAc,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC;AAEjE,qBAAa,gBAAgB;IACpB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQxC,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAS5D,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,cAAc,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAgBtG,QAAQ,CAAC,EAAE,OAAO,EAAE,SAAiB,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB3G,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAI7C,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQ9C,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IASxE,gBAAgB,IAAI,MAAM;IAI1B,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;IAO3C,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAQvC,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAU/E,OAAO,CAAC,eAAe;IAQV,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAIpE"}
|
|
@@ -8,7 +8,6 @@ const os_1 = require("os");
|
|
|
8
8
|
const path_1 = tslib_1.__importStar(require("path"));
|
|
9
9
|
const util_1 = require("util");
|
|
10
10
|
const recursive_readdir_1 = tslib_1.__importDefault(require("recursive-readdir"));
|
|
11
|
-
const shared_1 = require("../shared");
|
|
12
11
|
const FILE_NOT_FOUND_CODE = 'ENOENT';
|
|
13
12
|
class FileSystemReader {
|
|
14
13
|
fileExists(filePath) {
|
|
@@ -46,14 +45,14 @@ class FileSystemReader {
|
|
|
46
45
|
async readGlob({ pattern, filesOnly = false }) {
|
|
47
46
|
let results = await (0, glob_1.glob)(pattern, {});
|
|
48
47
|
if (filesOnly) {
|
|
49
|
-
results = (
|
|
48
|
+
results = (await Promise.all(results.map(async (result) => {
|
|
50
49
|
if ((await fs_1.default.promises.lstat(result)).isFile()) {
|
|
51
50
|
return [result];
|
|
52
51
|
}
|
|
53
52
|
else {
|
|
54
53
|
return [];
|
|
55
54
|
}
|
|
56
|
-
})));
|
|
55
|
+
}))).flat();
|
|
57
56
|
}
|
|
58
57
|
results.sort();
|
|
59
58
|
return results;
|
|
@@ -113,7 +112,7 @@ class FileSystemReader {
|
|
|
113
112
|
}
|
|
114
113
|
async getFileGlobList(globList) {
|
|
115
114
|
const files = await Promise.all(globList.map((pattern) => this.readGlob({ pattern, filesOnly: true })));
|
|
116
|
-
return
|
|
115
|
+
return files.flat();
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
exports.FileSystemReader = FileSystemReader;
|