@ggdna/dna-scripts 0.1.0 → 0.2.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/dna/_generated.json +4 -4
- package/dna/scripts/delete-feature-branch.js +1 -1
- package/dna/scripts/functions/colors.js +1 -1
- package/dna/scripts/functions/current-branch.js +1 -1
- package/dna/scripts/functions/directories.js +1 -1
- package/dna/scripts/functions/get-repo-urls.js +6 -5
- package/dna/scripts/functions/get-version.js +1 -1
- package/dna/scripts/functions/is-clean-repo.js +1 -1
- package/dna/scripts/functions/is-main-up-to-date.js +1 -1
- package/dna/scripts/functions/pull-request-url.js +1 -1
- package/dna/scripts/functions/run-command.js +1 -1
- package/dna/scripts/functions/sync-folders.js +1 -1
- package/dna/scripts/setup-github-repo.js +1 -1
- package/dna/scripts/wait-for-pr.js +1 -1
- package/package.json +6 -7
package/dna/_generated.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "base",
|
|
6
6
|
"package": "helix",
|
|
7
7
|
"ecosystem": null,
|
|
8
|
-
"resolvedVersion": "1.
|
|
8
|
+
"resolvedVersion": "1.3.1",
|
|
9
9
|
"via": null,
|
|
10
10
|
"hash": "0x705e486e88a93125"
|
|
11
11
|
},
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"ecosystem": null,
|
|
16
16
|
"resolvedVersion": null,
|
|
17
17
|
"via": null,
|
|
18
|
-
"hash": "
|
|
18
|
+
"hash": "0xe3092339b83504a1"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"claude": {
|
|
22
22
|
"claudeMdInclude": null
|
|
23
23
|
},
|
|
24
|
-
"baseVersion": "1.
|
|
24
|
+
"baseVersion": "1.3.1",
|
|
25
25
|
"baseHash": "0x705e486e88a93125",
|
|
26
26
|
"instances": [
|
|
27
27
|
{
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"path": "scripts/functions/get-repo-urls.js",
|
|
57
|
-
"hash": "
|
|
57
|
+
"hash": "0xd101f8b49454b888"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "scripts/functions/get-version.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) dnaCopyrightHolder
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by terms that can be
|
|
6
6
|
* found in the LICENSE file in the root of this package.
|
|
@@ -14,10 +14,11 @@ import { green, yellow } from './colors.js';
|
|
|
14
14
|
// Convert exec to return a Promise for async/await usage
|
|
15
15
|
const execAsync = promisify(exec);
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
export async function getRepoUrls(org) {
|
|
18
|
+
if (!org) {
|
|
19
|
+
throw Error('getRepoUrls: an organization or user name is required.');
|
|
20
|
+
}
|
|
19
21
|
|
|
20
|
-
export async function getRepoUrls() {
|
|
21
22
|
try {
|
|
22
23
|
// Use the GitHub CLI to list repositories in JSON format
|
|
23
24
|
const { stdout } = await execAsync(
|
|
@@ -30,7 +31,7 @@ export async function getRepoUrls() {
|
|
|
30
31
|
// Map to name + URL and print to console
|
|
31
32
|
return repos.map((repo) => repo.url);
|
|
32
33
|
} catch (error) {
|
|
33
|
-
if (error.message.
|
|
34
|
+
if (error.message.includes('gh auth login')) {
|
|
34
35
|
throw Error(
|
|
35
36
|
[yellow('Not yet logged in. Please run:'), green('gh auth login')].join(
|
|
36
37
|
'\n',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ggdna/dna-scripts",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "DNA layer: deterministic node scripts and their shared functions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dna",
|
|
@@ -27,15 +27,14 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^26.4.1",
|
|
32
|
+
"prettier": "^3.9.6"
|
|
33
|
+
},
|
|
30
34
|
"scripts": {
|
|
31
35
|
"test:dart": "dart test",
|
|
32
36
|
"test": "pnpm run test:dart",
|
|
33
|
-
"prepublishOnly": "pnpm run test",
|
|
34
37
|
"format": "prettier --write .",
|
|
35
38
|
"format:check": "prettier --check ."
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@types/node": "^26.2.0",
|
|
39
|
-
"prettier": "^3.9.6"
|
|
40
39
|
}
|
|
41
|
-
}
|
|
40
|
+
}
|