@terascope/scripts 0.83.3 → 1.0.1
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/bin/ts-scripts.js +5 -4
- package/dist/src/cmds/bump-asset.d.ts +1 -1
- package/dist/src/cmds/bump-asset.d.ts.map +1 -1
- package/dist/src/cmds/bump-asset.js +9 -13
- package/dist/src/cmds/bump-asset.js.map +1 -1
- package/dist/src/cmds/bump.d.ts +1 -1
- package/dist/src/cmds/bump.d.ts.map +1 -1
- package/dist/src/cmds/bump.js +13 -17
- package/dist/src/cmds/bump.js.map +1 -1
- package/dist/src/cmds/docs.d.ts +1 -1
- package/dist/src/cmds/docs.d.ts.map +1 -1
- package/dist/src/cmds/docs.js +7 -8
- package/dist/src/cmds/docs.js.map +1 -1
- package/dist/src/cmds/images.d.ts +3 -3
- package/dist/src/cmds/images.d.ts.map +1 -1
- package/dist/src/cmds/images.js +5 -6
- package/dist/src/cmds/images.js.map +1 -1
- package/dist/src/cmds/k8s-env.d.ts +1 -1
- package/dist/src/cmds/k8s-env.d.ts.map +1 -1
- package/dist/src/cmds/k8s-env.js +5 -29
- package/dist/src/cmds/k8s-env.js.map +1 -1
- package/dist/src/cmds/publish.d.ts +3 -3
- package/dist/src/cmds/publish.d.ts.map +1 -1
- package/dist/src/cmds/publish.js +15 -16
- package/dist/src/cmds/publish.js.map +1 -1
- package/dist/src/cmds/sync.d.ts +2 -2
- package/dist/src/cmds/sync.d.ts.map +1 -1
- package/dist/src/cmds/sync.js +5 -6
- package/dist/src/cmds/sync.js.map +1 -1
- package/dist/src/cmds/test.d.ts +2 -2
- package/dist/src/cmds/test.d.ts.map +1 -1
- package/dist/src/cmds/test.js +17 -44
- package/dist/src/cmds/test.js.map +1 -1
- package/dist/src/command.js +21 -9
- package/dist/src/command.js.map +1 -1
- package/dist/src/helpers/args.d.ts +1 -1
- package/dist/src/helpers/args.d.ts.map +1 -1
- package/dist/src/helpers/args.js +18 -26
- package/dist/src/helpers/args.js.map +1 -1
- package/dist/src/helpers/bump/index.d.ts +2 -2
- package/dist/src/helpers/bump/index.d.ts.map +1 -1
- package/dist/src/helpers/bump/index.js +37 -69
- package/dist/src/helpers/bump/index.js.map +1 -1
- package/dist/src/helpers/bump/interfaces.d.ts +1 -1
- package/dist/src/helpers/bump/interfaces.d.ts.map +1 -1
- package/dist/src/helpers/bump/interfaces.js +2 -5
- package/dist/src/helpers/bump/interfaces.js.map +1 -1
- package/dist/src/helpers/bump/utils.d.ts +2 -2
- package/dist/src/helpers/bump/utils.d.ts.map +1 -1
- package/dist/src/helpers/bump/utils.js +35 -48
- package/dist/src/helpers/bump/utils.js.map +1 -1
- package/dist/src/helpers/config.d.ts +1 -1
- package/dist/src/helpers/config.d.ts.map +1 -1
- package/dist/src/helpers/config.js +117 -125
- package/dist/src/helpers/config.js.map +1 -1
- package/dist/src/helpers/doc-builder/index.d.ts +1 -1
- package/dist/src/helpers/doc-builder/index.d.ts.map +1 -1
- package/dist/src/helpers/doc-builder/index.js +14 -21
- package/dist/src/helpers/doc-builder/index.js.map +1 -1
- package/dist/src/helpers/doc-builder/overview.d.ts +1 -1
- package/dist/src/helpers/doc-builder/overview.d.ts.map +1 -1
- package/dist/src/helpers/doc-builder/overview.js +15 -25
- package/dist/src/helpers/doc-builder/overview.js.map +1 -1
- package/dist/src/helpers/doc-builder/sidebar.d.ts +1 -1
- package/dist/src/helpers/doc-builder/sidebar.d.ts.map +1 -1
- package/dist/src/helpers/doc-builder/sidebar.js +17 -24
- package/dist/src/helpers/doc-builder/sidebar.js.map +1 -1
- package/dist/src/helpers/doc-builder/typedoc.d.ts +1 -1
- package/dist/src/helpers/doc-builder/typedoc.d.ts.map +1 -1
- package/dist/src/helpers/doc-builder/typedoc.js +31 -38
- package/dist/src/helpers/doc-builder/typedoc.js.map +1 -1
- package/dist/src/helpers/hooks.d.ts +1 -1
- package/dist/src/helpers/hooks.d.ts.map +1 -1
- package/dist/src/helpers/hooks.js +7 -14
- package/dist/src/helpers/hooks.js.map +1 -1
- package/dist/src/helpers/images/index.d.ts +1 -1
- package/dist/src/helpers/images/index.d.ts.map +1 -1
- package/dist/src/helpers/images/index.js +25 -57
- package/dist/src/helpers/images/index.js.map +1 -1
- package/dist/src/helpers/images/interfaces.js +2 -5
- package/dist/src/helpers/images/interfaces.js.map +1 -1
- package/dist/src/helpers/interfaces.js +5 -8
- package/dist/src/helpers/interfaces.js.map +1 -1
- package/dist/src/helpers/k8s-env/index.d.ts +1 -1
- package/dist/src/helpers/k8s-env/index.d.ts.map +1 -1
- package/dist/src/helpers/k8s-env/index.js +51 -82
- package/dist/src/helpers/k8s-env/index.js.map +1 -1
- package/dist/src/helpers/k8s-env/interfaces.js +1 -2
- package/dist/src/helpers/k8s-env/k8s.js +49 -74
- package/dist/src/helpers/k8s-env/k8s.js.map +1 -1
- package/dist/src/helpers/kind.d.ts +1 -1
- package/dist/src/helpers/kind.d.ts.map +1 -1
- package/dist/src/helpers/kind.js +47 -51
- package/dist/src/helpers/kind.js.map +1 -1
- package/dist/src/helpers/mapper.js +1 -5
- package/dist/src/helpers/mapper.js.map +1 -1
- package/dist/src/helpers/misc.d.ts +1 -1
- package/dist/src/helpers/misc.d.ts.map +1 -1
- package/dist/src/helpers/misc.js +63 -80
- package/dist/src/helpers/misc.js.map +1 -1
- package/dist/src/helpers/packages.d.ts +1 -1
- package/dist/src/helpers/packages.d.ts.map +1 -1
- package/dist/src/helpers/packages.js +82 -129
- package/dist/src/helpers/packages.js.map +1 -1
- package/dist/src/helpers/publish/index.d.ts +1 -1
- package/dist/src/helpers/publish/index.d.ts.map +1 -1
- package/dist/src/helpers/publish/index.js +53 -60
- package/dist/src/helpers/publish/index.js.map +1 -1
- package/dist/src/helpers/publish/interfaces.js +4 -7
- package/dist/src/helpers/publish/interfaces.js.map +1 -1
- package/dist/src/helpers/publish/utils.d.ts +2 -2
- package/dist/src/helpers/publish/utils.d.ts.map +1 -1
- package/dist/src/helpers/publish/utils.js +32 -43
- package/dist/src/helpers/publish/utils.js.map +1 -1
- package/dist/src/helpers/scripts.d.ts +2 -2
- package/dist/src/helpers/scripts.d.ts.map +1 -1
- package/dist/src/helpers/scripts.js +119 -178
- package/dist/src/helpers/scripts.js.map +1 -1
- package/dist/src/helpers/signale.d.ts +2 -2
- package/dist/src/helpers/signale.d.ts.map +1 -1
- package/dist/src/helpers/signale.js +5 -6
- package/dist/src/helpers/signale.js.map +1 -1
- package/dist/src/helpers/sync/configs.d.ts +1 -1
- package/dist/src/helpers/sync/configs.d.ts.map +1 -1
- package/dist/src/helpers/sync/configs.js +8 -15
- package/dist/src/helpers/sync/configs.js.map +1 -1
- package/dist/src/helpers/sync/index.d.ts +1 -1
- package/dist/src/helpers/sync/index.d.ts.map +1 -1
- package/dist/src/helpers/sync/index.js +19 -46
- package/dist/src/helpers/sync/index.js.map +1 -1
- package/dist/src/helpers/sync/interfaces.js +2 -5
- package/dist/src/helpers/sync/interfaces.js.map +1 -1
- package/dist/src/helpers/sync/utils.d.ts +2 -2
- package/dist/src/helpers/sync/utils.d.ts.map +1 -1
- package/dist/src/helpers/sync/utils.js +51 -63
- package/dist/src/helpers/sync/utils.js.map +1 -1
- package/dist/src/helpers/test-runner/index.d.ts +2 -2
- package/dist/src/helpers/test-runner/index.d.ts.map +1 -1
- package/dist/src/helpers/test-runner/index.js +78 -86
- package/dist/src/helpers/test-runner/index.js.map +1 -1
- package/dist/src/helpers/test-runner/interfaces.d.ts +1 -1
- package/dist/src/helpers/test-runner/interfaces.d.ts.map +1 -1
- package/dist/src/helpers/test-runner/interfaces.js +1 -2
- package/dist/src/helpers/test-runner/services.d.ts +1 -1
- package/dist/src/helpers/test-runner/services.d.ts.map +1 -1
- package/dist/src/helpers/test-runner/services.js +149 -192
- package/dist/src/helpers/test-runner/services.js.map +1 -1
- package/dist/src/helpers/test-runner/tracker.d.ts +1 -1
- package/dist/src/helpers/test-runner/tracker.d.ts.map +1 -1
- package/dist/src/helpers/test-runner/tracker.js +29 -33
- package/dist/src/helpers/test-runner/tracker.js.map +1 -1
- package/dist/src/helpers/test-runner/utils.d.ts +3 -3
- package/dist/src/helpers/test-runner/utils.d.ts.map +1 -1
- package/dist/src/helpers/test-runner/utils.js +42 -78
- package/dist/src/helpers/test-runner/utils.js.map +1 -1
- package/dist/src/index.d.ts +6 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -22
- package/dist/src/index.js.map +1 -1
- package/package.json +9 -8
package/dist/src/helpers/misc.js
CHANGED
|
@@ -1,48 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const utils_1 = require("@terascope/utils");
|
|
12
|
-
const sort_package_json_1 = __importDefault(require("sort-package-json"));
|
|
13
|
-
const interfaces_1 = require("./interfaces");
|
|
14
|
-
const config_1 = require("./config");
|
|
15
|
-
const signale_1 = __importDefault(require("./signale"));
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import pkgUp from 'pkg-up';
|
|
3
|
+
import fse from 'fs-extra';
|
|
4
|
+
import lodash from 'lodash';
|
|
5
|
+
import { isPlainObject, get, toTitleCase } from '@terascope/utils';
|
|
6
|
+
import sortPackageJson from 'sort-package-json';
|
|
7
|
+
import { Service } from './interfaces.js';
|
|
8
|
+
import { NPM_DEFAULT_REGISTRY, DEV_TAG, DEV_DOCKER_IMAGE, ENV_SERVICES } from './config.js';
|
|
9
|
+
import signale from './signale.js';
|
|
10
|
+
const { defaultsDeep } = lodash;
|
|
16
11
|
let rootDir;
|
|
17
|
-
function getRootDir(cwd = process.cwd()) {
|
|
12
|
+
export function getRootDir(cwd = process.cwd()) {
|
|
18
13
|
if (rootDir)
|
|
19
14
|
return rootDir;
|
|
20
|
-
const rootPkgJSON =
|
|
15
|
+
const rootPkgJSON = pkgUp.sync({ cwd });
|
|
21
16
|
if (!rootPkgJSON) {
|
|
22
17
|
throw new Error(`Unable to find root directory, run in the root of the repo. cwd is ${cwd}, rootPkgJSON is ${rootPkgJSON}`);
|
|
23
18
|
}
|
|
24
19
|
if (_getRootInfo(rootPkgJSON) != null) {
|
|
25
|
-
rootDir =
|
|
20
|
+
rootDir = path.dirname(rootPkgJSON);
|
|
26
21
|
return rootDir;
|
|
27
22
|
}
|
|
28
|
-
const upOne =
|
|
29
|
-
if (!
|
|
23
|
+
const upOne = path.join(path.dirname(rootPkgJSON), '..');
|
|
24
|
+
if (!fse.existsSync(upOne) || !fse.statSync(upOne).isDirectory()) {
|
|
30
25
|
throw new Error('Unable to find root directory');
|
|
31
26
|
}
|
|
32
27
|
return getRootDir(upOne);
|
|
33
28
|
}
|
|
34
|
-
exports.getRootDir = getRootDir;
|
|
35
29
|
function _getRootInfo(pkgJSONPath) {
|
|
36
|
-
const pkg =
|
|
37
|
-
const isRoot =
|
|
38
|
-
const dir =
|
|
30
|
+
const pkg = fse.readJSONSync(pkgJSONPath);
|
|
31
|
+
const isRoot = get(pkg, 'terascope.root', false);
|
|
32
|
+
const dir = path.dirname(pkgJSONPath);
|
|
39
33
|
const pathAsset = `${dir}/asset/asset.json`;
|
|
40
|
-
const isRootAsset =
|
|
34
|
+
const isRootAsset = fse.existsSync(pathAsset);
|
|
41
35
|
if (!isRoot && !isRootAsset)
|
|
42
36
|
return undefined;
|
|
43
|
-
const folderName =
|
|
37
|
+
const folderName = path.basename(dir);
|
|
44
38
|
if (isRootAsset) {
|
|
45
|
-
return (
|
|
39
|
+
return sortPackageJson(defaultsDeep(pkg, {
|
|
46
40
|
dir,
|
|
47
41
|
relativeDir: '.',
|
|
48
42
|
folderName,
|
|
@@ -61,7 +55,7 @@ function _getRootInfo(pkgJSONPath) {
|
|
|
61
55
|
}));
|
|
62
56
|
}
|
|
63
57
|
if (isRoot) {
|
|
64
|
-
return (
|
|
58
|
+
return sortPackageJson(defaultsDeep(pkg, {
|
|
65
59
|
dir,
|
|
66
60
|
relativeDir: '.',
|
|
67
61
|
folderName,
|
|
@@ -88,135 +82,124 @@ function _getRootInfo(pkgJSONPath) {
|
|
|
88
82
|
registries: [`terascope/${folderName}`],
|
|
89
83
|
},
|
|
90
84
|
npm: {
|
|
91
|
-
registry:
|
|
85
|
+
registry: NPM_DEFAULT_REGISTRY
|
|
92
86
|
},
|
|
93
87
|
},
|
|
94
88
|
}));
|
|
95
89
|
}
|
|
96
90
|
}
|
|
97
91
|
let _rootInfo;
|
|
98
|
-
function getRootInfo() {
|
|
92
|
+
export function getRootInfo() {
|
|
99
93
|
if (_rootInfo)
|
|
100
94
|
return _rootInfo;
|
|
101
|
-
_rootInfo = _getRootInfo(
|
|
95
|
+
_rootInfo = _getRootInfo(path.join(getRootDir(), 'package.json'));
|
|
102
96
|
return _rootInfo;
|
|
103
97
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
if (!fs_extra_1.default.existsSync(rootTsConfig))
|
|
98
|
+
export function getRootTsConfig() {
|
|
99
|
+
const rootTsConfig = path.join(getRootDir(), 'tsconfig.json');
|
|
100
|
+
if (!fse.existsSync(rootTsConfig))
|
|
108
101
|
return {};
|
|
109
|
-
return
|
|
102
|
+
return fse.readJSONSync(rootTsConfig);
|
|
110
103
|
}
|
|
111
|
-
|
|
112
|
-
function getAvailableTestSuites() {
|
|
104
|
+
export function getAvailableTestSuites() {
|
|
113
105
|
return Object.keys(getRootInfo().terascope.tests.suites);
|
|
114
106
|
}
|
|
115
|
-
|
|
116
|
-
function getServicesForSuite(suite) {
|
|
107
|
+
export function getServicesForSuite(suite) {
|
|
117
108
|
const services = getRootInfo().terascope.tests.suites[suite] || [];
|
|
118
|
-
if (
|
|
119
|
-
services.push(...
|
|
109
|
+
if (ENV_SERVICES.length) {
|
|
110
|
+
services.push(...ENV_SERVICES);
|
|
120
111
|
}
|
|
121
|
-
const invalidServices = services.filter((name) => !Object.values(
|
|
112
|
+
const invalidServices = services.filter((name) => !Object.values(Service).includes(name));
|
|
122
113
|
if (invalidServices.length) {
|
|
123
114
|
const actual = invalidServices.join(', ');
|
|
124
|
-
const expected = Object.values(
|
|
115
|
+
const expected = Object.values(Service).join(', ');
|
|
125
116
|
throw new Error(`Unsupported service(s) ${actual}, expected ${expected}`);
|
|
126
117
|
}
|
|
127
118
|
return services;
|
|
128
119
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
return `${config_1.DEV_DOCKER_IMAGE}-nodev${nodeVersion}`;
|
|
120
|
+
export function getDevDockerImage(nodeVersion) {
|
|
121
|
+
if (DEV_DOCKER_IMAGE)
|
|
122
|
+
return `${DEV_DOCKER_IMAGE}-nodev${nodeVersion}`;
|
|
133
123
|
const rootInfo = getRootInfo();
|
|
134
124
|
const [registry] = rootInfo.terascope.docker.registries;
|
|
135
|
-
return `${registry}:dev-${
|
|
125
|
+
return `${registry}:dev-${DEV_TAG}-nodev${nodeVersion}`;
|
|
136
126
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return (0, utils_1.toTitleCase)(input);
|
|
127
|
+
export function getName(input) {
|
|
128
|
+
return toTitleCase(input);
|
|
140
129
|
}
|
|
141
|
-
|
|
142
|
-
function listMdFiles(dir, levels = 10) {
|
|
130
|
+
export function listMdFiles(dir, levels = 10) {
|
|
143
131
|
if (levels < 1)
|
|
144
132
|
return [];
|
|
145
|
-
if (!dir || !
|
|
133
|
+
if (!dir || !fse.statSync(dir).isDirectory()) {
|
|
146
134
|
throw new Error(`Invalid directory "${dir}" given to listMdFiles`);
|
|
147
135
|
}
|
|
148
136
|
const files = [];
|
|
149
|
-
for (const fileName of
|
|
150
|
-
const filePath =
|
|
151
|
-
if (
|
|
137
|
+
for (const fileName of fse.readdirSync(dir)) {
|
|
138
|
+
const filePath = path.join(dir, fileName);
|
|
139
|
+
if (fse.statSync(filePath).isDirectory()) {
|
|
152
140
|
files.push(...listMdFiles(filePath, levels - 1));
|
|
153
141
|
}
|
|
154
|
-
else if (
|
|
142
|
+
else if (path.extname(fileName) === '.md') {
|
|
155
143
|
files.push(filePath);
|
|
156
144
|
}
|
|
157
145
|
}
|
|
158
146
|
return files;
|
|
159
147
|
}
|
|
160
|
-
|
|
161
|
-
async function writeIfChanged(filePath, contents, options = {}) {
|
|
148
|
+
export async function writeIfChanged(filePath, contents, options = {}) {
|
|
162
149
|
if (options.mkdir) {
|
|
163
|
-
await
|
|
150
|
+
await fse.ensureDir(path.dirname(filePath));
|
|
164
151
|
}
|
|
165
|
-
const exists =
|
|
166
|
-
if (exists && !
|
|
152
|
+
const exists = fse.existsSync(filePath);
|
|
153
|
+
if (exists && !fse.statSync(filePath).isFile()) {
|
|
167
154
|
throw new Error('Unable to write to non-file type');
|
|
168
155
|
}
|
|
169
156
|
if (!contents) {
|
|
170
157
|
if (exists) {
|
|
171
|
-
await
|
|
158
|
+
await fse.unlink(filePath);
|
|
172
159
|
}
|
|
173
160
|
return true;
|
|
174
161
|
}
|
|
175
162
|
if (typeof contents === 'string') {
|
|
176
163
|
const _contents = `${contents.trim()}\n`;
|
|
177
164
|
if (exists) {
|
|
178
|
-
const existing = await
|
|
165
|
+
const existing = await fse.readFile(filePath, 'utf8');
|
|
179
166
|
if (existing === _contents) {
|
|
180
167
|
return false;
|
|
181
168
|
}
|
|
182
169
|
}
|
|
183
170
|
if (options.log !== false) {
|
|
184
|
-
|
|
171
|
+
signale.debug(`wrote ${path.relative(getRootDir(), filePath)} file`);
|
|
185
172
|
}
|
|
186
|
-
await
|
|
173
|
+
await fse.writeFile(filePath, _contents, 'utf8');
|
|
187
174
|
return true;
|
|
188
175
|
}
|
|
189
|
-
if (
|
|
176
|
+
if (isPlainObject(contents) || Array.isArray(contents)) {
|
|
190
177
|
if (exists) {
|
|
191
|
-
const existing = await
|
|
178
|
+
const existing = await fse.readJSON(filePath);
|
|
192
179
|
if (JSON.stringify(existing) === JSON.stringify(contents)) {
|
|
193
180
|
return false;
|
|
194
181
|
}
|
|
195
182
|
}
|
|
196
183
|
if (options.log !== false) {
|
|
197
|
-
|
|
184
|
+
signale.debug(`wrote ${path.relative(getRootDir(), filePath)} JSON file`);
|
|
198
185
|
}
|
|
199
|
-
await
|
|
186
|
+
await fse.writeJSON(filePath, contents, {
|
|
200
187
|
spaces: 4,
|
|
201
188
|
});
|
|
202
189
|
return true;
|
|
203
190
|
}
|
|
204
191
|
throw new Error('Invalid contents given to writeIfChanged');
|
|
205
192
|
}
|
|
206
|
-
|
|
207
|
-
function formatList(list) {
|
|
193
|
+
export function formatList(list) {
|
|
208
194
|
return `\n - ${list.join('\n - ')}`;
|
|
209
195
|
}
|
|
210
|
-
|
|
211
|
-
function writeHeader(msg, prefixNewline) {
|
|
196
|
+
export function writeHeader(msg, prefixNewline) {
|
|
212
197
|
if (prefixNewline)
|
|
213
198
|
process.stderr.write('\n');
|
|
214
|
-
|
|
199
|
+
signale.star(`${msg}`);
|
|
215
200
|
}
|
|
216
|
-
|
|
217
|
-
function writePkgHeader(prefix, pkgInfos, prefixNewline) {
|
|
201
|
+
export function writePkgHeader(prefix, pkgInfos, prefixNewline) {
|
|
218
202
|
const names = pkgInfos.map(({ name }) => name).join(', ');
|
|
219
203
|
writeHeader(`${prefix} for ${names}`, prefixNewline);
|
|
220
204
|
}
|
|
221
|
-
exports.writePkgHeader = writePkgHeader;
|
|
222
205
|
//# sourceMappingURL=misc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../src/helpers/misc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../../src/helpers/misc.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,QAAQ,CAAC;AAC3B,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,kBAAkB,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AM,UAAU,cAAc,CAC1B,MAAc,EACd,QAAuB,EACvB,aAAuB;IAEvB,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1D,WAAW,CAAC,GAAG,MAAM,QAAQ,KAAK,EAAE,EAAE,aAAa,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as i from './interfaces';
|
|
1
|
+
import * as i from './interfaces.js';
|
|
2
2
|
export declare function getE2EDir(): string | undefined;
|
|
3
3
|
export declare function getE2eK8sDir(): string | undefined;
|
|
4
4
|
export declare function listPackages(ignoreCache?: boolean): i.PackageInfo[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../../src/helpers/packages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../../src/helpers/packages.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,CAAC,MAAM,iBAAiB,CAAC;AAQrC,wBAAgB,SAAS,IAAI,MAAM,GAAC,SAAS,CAS5C;AAED,wBAAgB,YAAY,IAAI,MAAM,GAAC,SAAS,CAS/C;AAyBD,wBAAgB,YAAY,CACxB,WAAW,CAAC,EAAE,OAAO,GACtB,CAAC,CAAC,WAAW,EAAE,CA8BjB;AAwDD,wBAAgB,iBAAiB,IAAI,MAAM,EAAE,CAS5C;AAED,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASvD;AAED,wBAAgB,kBAAkB,IAAI,CAAC,CAAC,WAAW,GAAG,SAAS,CAE9D;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,WAAW,GAAG,OAAO,CAE7D;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,CAAC,CAAC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