@capraconsulting/cals-cli 3.10.13 → 3.11.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/lib/cals-cli.mjs +2 -19
- package/lib/cals-cli.mjs.map +1 -1
- package/lib/github/changeset/execute.d.ts +2 -2
- package/lib/github/changeset/types.d.ts +1 -6
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +20 -20
package/lib/cals-cli.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import { read } from 'read';
|
|
|
26
26
|
import { findUp } from 'find-up';
|
|
27
27
|
import { execa } from 'execa';
|
|
28
28
|
|
|
29
|
-
var version = "3.
|
|
29
|
+
var version = "3.11.1";
|
|
30
30
|
var engines = {
|
|
31
31
|
node: ">=12.0.0"
|
|
32
32
|
};
|
|
@@ -1749,14 +1749,6 @@ function getChangedRepoAttribs(definitionRepo, actualRepo) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
return attribs;
|
|
1751
1751
|
}
|
|
1752
|
-
async function getUnknownRepos(github, definition, limitToOrg) {
|
|
1753
|
-
const knownRepos = getRepos(definition).map((it) => it.id);
|
|
1754
|
-
const orgs = getGitHubOrgs(definition).filter((orgName) => limitToOrg === undefined || limitToOrg === orgName);
|
|
1755
|
-
const orgRepoList = await pMap(orgs, (orgName) => github.getOrgRepoList({ org: orgName }));
|
|
1756
|
-
return sortBy(orgRepoList
|
|
1757
|
-
.flat()
|
|
1758
|
-
.filter((it) => !knownRepos.includes(`${it.owner.login}/${it.name}`)), (it) => `${it.owner.login}/${it.name}`);
|
|
1759
|
-
}
|
|
1760
1752
|
/**
|
|
1761
1753
|
* Get teams from both the project level and the repository level
|
|
1762
1754
|
* and ensure that repository level override project level.
|
|
@@ -1854,14 +1846,6 @@ async function createChangeSetItemsForProjects(github, definition, limitToOrg) {
|
|
|
1854
1846
|
}))))
|
|
1855
1847
|
.flat()
|
|
1856
1848
|
.flat());
|
|
1857
|
-
const unknownRepos = await getUnknownRepos(github, definition, limitToOrg);
|
|
1858
|
-
for (const it of unknownRepos) {
|
|
1859
|
-
changes.push({
|
|
1860
|
-
type: "repo-delete",
|
|
1861
|
-
org: it.owner.login,
|
|
1862
|
-
repo: it.name,
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
1849
|
return changes;
|
|
1866
1850
|
}
|
|
1867
1851
|
/**
|
|
@@ -2019,7 +2003,6 @@ function buildLookup(github) {
|
|
|
2019
2003
|
}
|
|
2020
2004
|
const notImplementedChangeSetItems = [
|
|
2021
2005
|
"repo-create",
|
|
2022
|
-
"repo-delete",
|
|
2023
2006
|
];
|
|
2024
2007
|
function isNotImplementedChangeSetItem(changeItem) {
|
|
2025
2008
|
return notImplementedChangeSetItems.includes(changeItem.type);
|
|
@@ -3347,7 +3330,7 @@ async function main() {
|
|
|
3347
3330
|
process$2.exit(1);
|
|
3348
3331
|
}
|
|
3349
3332
|
await yargs(hideBin(process$2.argv))
|
|
3350
|
-
.usage(`cals-cli v${version} (build: ${"2025-
|
|
3333
|
+
.usage(`cals-cli v${version} (build: ${"2025-04-30T08:45:01+0000"})`)
|
|
3351
3334
|
.scriptName("cals")
|
|
3352
3335
|
.locale("en")
|
|
3353
3336
|
.help("help")
|
package/lib/cals-cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cals-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cals-cli.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reporter } from "../../cli/reporter";
|
|
2
2
|
import { GitHubService } from "../service";
|
|
3
|
-
import { ChangeSetItem, RepoCreateItem
|
|
4
|
-
type NotImplementedChangeSetItem = RepoCreateItem
|
|
3
|
+
import { ChangeSetItem, RepoCreateItem } from "./types";
|
|
4
|
+
type NotImplementedChangeSetItem = RepoCreateItem;
|
|
5
5
|
export declare function isNotImplementedChangeSetItem(changeItem: ChangeSetItem): changeItem is NotImplementedChangeSetItem;
|
|
6
6
|
/**
|
|
7
7
|
* Execute a change set.
|
|
@@ -4,11 +4,6 @@ export interface RepoCreateItem {
|
|
|
4
4
|
org: string;
|
|
5
5
|
repo: string;
|
|
6
6
|
}
|
|
7
|
-
export interface RepoDeleteItem {
|
|
8
|
-
type: "repo-delete";
|
|
9
|
-
org: string;
|
|
10
|
-
repo: string;
|
|
11
|
-
}
|
|
12
7
|
export interface RepoAttribUpdateItem {
|
|
13
8
|
type: "repo-update";
|
|
14
9
|
org: string;
|
|
@@ -90,4 +85,4 @@ export interface TeamMemberPermissionItem {
|
|
|
90
85
|
* A change set item describes a transition on the end
|
|
91
86
|
* service to become in sync with the desired definition.
|
|
92
87
|
*/
|
|
93
|
-
export type ChangeSetItem = RepoCreateItem |
|
|
88
|
+
export type ChangeSetItem = RepoCreateItem | RepoAttribUpdateItem | RepoTeamPermissionItem | RepoTeamAddItem | RepoTeamRemoveItem | MemberAddItem | MemberRemoveItem | TeamRemoveItem | TeamAddItem | TeamMemberRemoveItem | TeamMemberAddItem | TeamMemberPermissionItem;
|
package/lib/index.es.js
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cals": "lib/cals-cli.mjs"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@octokit/rest": "^21.
|
|
26
|
+
"@octokit/rest": "^21.1.1",
|
|
27
27
|
"@types/dateformat": "5.0.3",
|
|
28
28
|
"ajv": "^8.11.0",
|
|
29
29
|
"cachedir": "^2.4.0",
|
|
@@ -47,39 +47,39 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@commitlint/cli": "19.
|
|
51
|
-
"@commitlint/config-conventional": "19.
|
|
50
|
+
"@commitlint/cli": "19.8.0",
|
|
51
|
+
"@commitlint/config-conventional": "19.8.0",
|
|
52
52
|
"@eslint/eslintrc": "^3.2.0",
|
|
53
53
|
"@eslint/js": "^9.16.0",
|
|
54
|
-
"@octokit/types": "13.
|
|
54
|
+
"@octokit/types": "13.10.0",
|
|
55
55
|
"@rollup/plugin-alias": "5.1.1",
|
|
56
56
|
"@rollup/plugin-json": "6.1.0",
|
|
57
57
|
"@rollup/plugin-replace": "6.0.2",
|
|
58
58
|
"@types/js-yaml": "4.0.9",
|
|
59
59
|
"@types/lodash-es": "4.17.12",
|
|
60
|
-
"@types/node": "22.
|
|
60
|
+
"@types/node": "22.15.2",
|
|
61
61
|
"@types/node-fetch": "2.6.12",
|
|
62
62
|
"@types/read": "0.0.32",
|
|
63
|
-
"@types/semver": "7.
|
|
63
|
+
"@types/semver": "7.7.0",
|
|
64
64
|
"@types/sprintf-js": "1.1.4",
|
|
65
65
|
"@types/yargs": "17.0.33",
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
67
|
-
"@typescript-eslint/parser": "8.
|
|
68
|
-
"@vitest/coverage-v8": "3.
|
|
69
|
-
"@vitest/ui": "3.
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "8.31.0",
|
|
67
|
+
"@typescript-eslint/parser": "8.31.0",
|
|
68
|
+
"@vitest/coverage-v8": "3.1.2",
|
|
69
|
+
"@vitest/ui": "3.1.2",
|
|
70
70
|
"dateformat": "5.0.3",
|
|
71
|
-
"eslint": "9.
|
|
72
|
-
"eslint-config-prettier": "10.
|
|
73
|
-
"eslint-plugin-prettier": "5.2.
|
|
71
|
+
"eslint": "9.25.1",
|
|
72
|
+
"eslint-config-prettier": "10.1.2",
|
|
73
|
+
"eslint-plugin-prettier": "5.2.6",
|
|
74
74
|
"husky": "9.1.7",
|
|
75
|
-
"prettier": "3.5.
|
|
76
|
-
"rollup": "4.
|
|
75
|
+
"prettier": "3.5.3",
|
|
76
|
+
"rollup": "4.40.0",
|
|
77
77
|
"rollup-plugin-typescript2": "0.36.0",
|
|
78
|
-
"semantic-release": "24.2.
|
|
79
|
-
"tsx": "4.19.
|
|
80
|
-
"typescript": "5.
|
|
78
|
+
"semantic-release": "24.2.3",
|
|
79
|
+
"tsx": "4.19.3",
|
|
80
|
+
"typescript": "5.8.3",
|
|
81
81
|
"typescript-json-schema": "0.65.1",
|
|
82
|
-
"vitest": "3.
|
|
82
|
+
"vitest": "3.1.2"
|
|
83
83
|
},
|
|
84
84
|
"files": [
|
|
85
85
|
"lib"
|