@terascope/scripts 1.4.2 → 1.5.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/dist/src/cmds/bump-asset.d.ts.map +1 -1
- package/dist/src/cmds/bump-asset.js +3 -11
- package/dist/src/cmds/bump-asset.js.map +1 -1
- package/dist/src/cmds/bump.d.ts.map +1 -1
- package/dist/src/cmds/bump.js +3 -5
- package/dist/src/cmds/bump.js.map +1 -1
- package/dist/src/cmds/publish.d.ts.map +1 -1
- package/dist/src/cmds/publish.js +3 -1
- package/dist/src/cmds/publish.js.map +1 -1
- package/dist/src/cmds/sync.d.ts +0 -1
- package/dist/src/cmds/sync.d.ts.map +1 -1
- package/dist/src/cmds/sync.js +1 -7
- package/dist/src/cmds/sync.js.map +1 -1
- package/dist/src/cmds/test.d.ts +1 -0
- package/dist/src/cmds/test.d.ts.map +1 -1
- package/dist/src/cmds/test.js +7 -0
- package/dist/src/cmds/test.js.map +1 -1
- package/dist/src/helpers/bump/index.d.ts.map +1 -1
- package/dist/src/helpers/bump/index.js +0 -3
- package/dist/src/helpers/bump/index.js.map +1 -1
- package/dist/src/helpers/bump/utils.js +1 -1
- package/dist/src/helpers/config.d.ts +1 -0
- package/dist/src/helpers/config.d.ts.map +1 -1
- package/dist/src/helpers/config.js +2 -1
- package/dist/src/helpers/config.js.map +1 -1
- package/dist/src/helpers/interfaces.d.ts +0 -9
- package/dist/src/helpers/interfaces.d.ts.map +1 -1
- package/dist/src/helpers/interfaces.js +0 -5
- package/dist/src/helpers/interfaces.js.map +1 -1
- package/dist/src/helpers/k8s-env/index.d.ts.map +1 -1
- package/dist/src/helpers/k8s-env/index.js +2 -1
- package/dist/src/helpers/k8s-env/index.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 +4 -2
- package/dist/src/helpers/kind.js.map +1 -1
- package/dist/src/helpers/misc.d.ts +0 -1
- package/dist/src/helpers/misc.d.ts.map +1 -1
- package/dist/src/helpers/misc.js +0 -6
- package/dist/src/helpers/misc.js.map +1 -1
- package/dist/src/helpers/scripts.d.ts +3 -2
- package/dist/src/helpers/scripts.d.ts.map +1 -1
- package/dist/src/helpers/scripts.js +7 -3
- package/dist/src/helpers/scripts.js.map +1 -1
- package/dist/src/helpers/sync/index.d.ts.map +1 -1
- package/dist/src/helpers/sync/index.js +0 -11
- package/dist/src/helpers/sync/index.js.map +1 -1
- package/dist/src/helpers/sync/interfaces.d.ts +0 -1
- package/dist/src/helpers/sync/interfaces.d.ts.map +1 -1
- package/dist/src/helpers/sync/interfaces.js.map +1 -1
- package/dist/src/helpers/sync/utils.js +2 -2
- package/dist/src/helpers/test-runner/index.js +7 -6
- package/dist/src/helpers/test-runner/index.js.map +1 -1
- package/dist/src/helpers/test-runner/interfaces.d.ts +1 -0
- package/dist/src/helpers/test-runner/interfaces.d.ts.map +1 -1
- 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 +7 -7
- package/dist/src/helpers/test-runner/services.js.map +1 -1
- package/package.json +30 -30
- package/dist/src/helpers/hooks.d.ts +0 -7
- package/dist/src/helpers/hooks.d.ts.map +0 -1
- package/dist/src/helpers/hooks.js +0 -21
- package/dist/src/helpers/hooks.js.map +0 -1
- package/dist/src/helpers/sync/configs.d.ts +0 -3
- package/dist/src/helpers/sync/configs.d.ts.map +0 -1
- package/dist/src/helpers/sync/configs.js +0 -23
- package/dist/src/helpers/sync/configs.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terascope/scripts",
|
|
3
3
|
"displayName": "Scripts",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"description": "A collection of terascope monorepo scripts",
|
|
6
6
|
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/scripts#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -28,42 +28,42 @@
|
|
|
28
28
|
"test:watch": "ts-scripts test --watch . --"
|
|
29
29
|
},
|
|
30
30
|
"resolutions": {
|
|
31
|
-
"ms": "
|
|
31
|
+
"ms": "~2.1.3",
|
|
32
32
|
"typescript": "~5.2.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@kubernetes/client-node": "
|
|
36
|
-
"@terascope/utils": "
|
|
37
|
-
"codecov": "
|
|
38
|
-
"execa": "9.4.0",
|
|
39
|
-
"fs-extra": "
|
|
40
|
-
"globby": "
|
|
41
|
-
"got": "
|
|
42
|
-
"ip": "
|
|
43
|
-
"js-yaml": "
|
|
44
|
-
"kafkajs": "
|
|
45
|
-
"lodash": "
|
|
46
|
-
"micromatch": "
|
|
47
|
-
"mnemonist": "
|
|
48
|
-
"ms": "
|
|
49
|
-
"package-json": "
|
|
50
|
-
"package-up": "
|
|
51
|
-
"semver": "
|
|
52
|
-
"signale": "
|
|
35
|
+
"@kubernetes/client-node": "~0.22.0",
|
|
36
|
+
"@terascope/utils": "~1.4.0",
|
|
37
|
+
"codecov": "~3.8.3",
|
|
38
|
+
"execa": "~9.4.0",
|
|
39
|
+
"fs-extra": "~11.2.0",
|
|
40
|
+
"globby": "~14.0.2",
|
|
41
|
+
"got": "~13.0.0",
|
|
42
|
+
"ip": "~2.0.1",
|
|
43
|
+
"js-yaml": "~4.1.0",
|
|
44
|
+
"kafkajs": "~2.2.4",
|
|
45
|
+
"lodash": "~4.17.21",
|
|
46
|
+
"micromatch": "~4.0.8",
|
|
47
|
+
"mnemonist": "~0.39.8",
|
|
48
|
+
"ms": "~2.1.3",
|
|
49
|
+
"package-json": "~10.0.1",
|
|
50
|
+
"package-up": "~5.0.0",
|
|
51
|
+
"semver": "~7.6.3",
|
|
52
|
+
"signale": "~1.4.0",
|
|
53
53
|
"sort-package-json": "~2.10.1",
|
|
54
|
-
"toposort": "
|
|
55
|
-
"typedoc": "
|
|
54
|
+
"toposort": "~2.0.2",
|
|
55
|
+
"typedoc": "~0.25.13",
|
|
56
56
|
"typedoc-plugin-markdown": "~4.0.3",
|
|
57
|
-
"yargs": "
|
|
57
|
+
"yargs": "~17.7.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/ip": "
|
|
61
|
-
"@types/lodash": "
|
|
62
|
-
"@types/micromatch": "
|
|
63
|
-
"@types/ms": "
|
|
64
|
-
"@types/semver": "
|
|
65
|
-
"@types/signale": "
|
|
66
|
-
"@types/toposort": "
|
|
60
|
+
"@types/ip": "~1.1.3",
|
|
61
|
+
"@types/lodash": "~4.17.7",
|
|
62
|
+
"@types/micromatch": "~4.0.9",
|
|
63
|
+
"@types/ms": "~0.7.34",
|
|
64
|
+
"@types/semver": "~7.5.6",
|
|
65
|
+
"@types/signale": "~1.4.7",
|
|
66
|
+
"@types/toposort": "~2.0.7"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"typescript": "~5.2.2"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Hook } from './interfaces.js';
|
|
2
|
-
/**
|
|
3
|
-
* If the terascope.hook_file is set in the root package.json
|
|
4
|
-
* the call with the hook and any required arguments
|
|
5
|
-
*/
|
|
6
|
-
export declare function executeHook(hook: Hook, quiet: boolean, ...args: any[]): Promise<void>;
|
|
7
|
-
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/helpers/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAIvC;;;EAGE;AACF,wBAAsB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAa3F"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import { getRootInfo } from './misc.js';
|
|
3
|
-
import signale from './signale.js';
|
|
4
|
-
/**
|
|
5
|
-
* If the terascope.hook_file is set in the root package.json
|
|
6
|
-
* the call with the hook and any required arguments
|
|
7
|
-
*/
|
|
8
|
-
export async function executeHook(hook, quiet, ...args) {
|
|
9
|
-
const { terascope: { hook_file } } = getRootInfo();
|
|
10
|
-
if (!hook_file)
|
|
11
|
-
return;
|
|
12
|
-
let hookFile = await import(path.resolve(hook_file));
|
|
13
|
-
if (hookFile.default) {
|
|
14
|
-
hookFile = hookFile.default;
|
|
15
|
-
}
|
|
16
|
-
if (!quiet) {
|
|
17
|
-
signale.info(`Executing ${hook} hook`);
|
|
18
|
-
}
|
|
19
|
-
await hookFile(hook, ...args);
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/helpers/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC;;;EAGE;AACF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAU,EAAE,KAAc,EAAE,GAAG,IAAW;IACxE,MAAM,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC;IACnD,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,IAAI,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IACrD,IAAI,QAAQ,CAAC,OAAO,EAAE;QAClB,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC;KAC/B;IAED,IAAI,CAAC,KAAK,EAAE;QACR,OAAO,CAAC,IAAI,CAAC,aAAa,IAAI,OAAO,CAAC,CAAC;KAC1C;IACD,MAAM,QAAQ,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../../src/helpers/sync/configs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,wBAAsB,gBAAgB,CAClC,QAAQ,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE,OAAO,GACtC,OAAO,CAAC,IAAI,CAAC,CAoBf"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { getRootInfo, getRootTsConfig, writeIfChanged } from '../misc.js';
|
|
4
|
-
export async function generateTSConfig(pkgInfos, log) {
|
|
5
|
-
const rootInfo = getRootInfo();
|
|
6
|
-
const references = pkgInfos
|
|
7
|
-
.filter((pkgInfo) => {
|
|
8
|
-
const hasTsconfig = fs.existsSync(path.join(pkgInfo.dir, 'tsconfig.json'));
|
|
9
|
-
// e2e is not part of teraslice but a testing framework compiled when ran
|
|
10
|
-
return hasTsconfig && pkgInfo.name !== 'e2e';
|
|
11
|
-
})
|
|
12
|
-
.map((pkgInfo) => ({
|
|
13
|
-
path: pkgInfo.relativeDir.replace(/^\.\//, '')
|
|
14
|
-
}));
|
|
15
|
-
const tsconfig = {
|
|
16
|
-
...getRootTsConfig(),
|
|
17
|
-
references
|
|
18
|
-
};
|
|
19
|
-
await writeIfChanged(path.join(rootInfo.dir, 'tsconfig.json'), tsconfig, {
|
|
20
|
-
log,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=configs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configs.js","sourceRoot":"","sources":["../../../../src/helpers/sync/configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAG1E,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAClC,QAAuB,EAAE,GAAY;IAErC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,QAAQ;SACtB,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;QAChB,MAAM,WAAW,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC;QAC3E,yEAAyE;QACzE,OAAO,WAAW,IAAI,OAAO,CAAC,IAAI,KAAK,KAAK,CAAC;IACjD,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACf,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;KACjD,CAAC,CAAC,CAAC;IAER,MAAM,QAAQ,GAAG;QACb,GAAG,eAAe,EAAE;QACpB,UAAU;KACb,CAAC;IAEF,MAAM,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAC,EAAE,QAAQ,EAAE;QACrE,GAAG;KACN,CAAC,CAAC;AACP,CAAC"}
|