@ggdna/dna-scripts 0.2.3 → 0.3.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/_dna.json CHANGED
@@ -1,9 +1,19 @@
1
1
  {
2
2
  // This package is a DNA layer: dna/ is hand-authored source and is the
3
3
  // last layer of its own instantiation.
4
- "version": 1,
4
+ "version": 2,
5
5
 
6
6
  // No parent DNA. This layer is orthogonal: it carries only its own topic
7
7
  // and is combined with other layers by the consumer.
8
- "layers": []
8
+ "layers": [],
9
+
10
+ // Both values name the organization and have no sensible default, so
11
+ // every layer listing this one sets them in its own dna/_vars.json:
12
+ // scripts/setup-github-repo.js makes dnaGitQuickCheckPipelineName a
13
+ // required status check, and dnaCopyrightHolder goes into every
14
+ // copyright header.
15
+ "mustOverride": {
16
+ "dnaGitQuickCheckPipelineName": true,
17
+ "dnaCopyrightHolder": true
18
+ }
9
19
  }
@@ -5,7 +5,7 @@
5
5
  "name": "base",
6
6
  "package": "helix",
7
7
  "ecosystem": null,
8
- "resolvedVersion": "1.11.0",
8
+ "resolvedVersion": "1.16.0",
9
9
  "via": null,
10
10
  "hash": "0x6883da335b415f9d"
11
11
  },
@@ -15,15 +15,17 @@
15
15
  "ecosystem": null,
16
16
  "resolvedVersion": null,
17
17
  "via": null,
18
- "hash": "0xe3092339b83504a1"
18
+ "hash": "0x8bfe7a26d113f04b"
19
19
  }
20
20
  ],
21
21
  "claude": {
22
22
  "claudeMdInclude": null,
23
- "claudeMdFromDna": false
23
+ "claudeMdFromDna": false,
24
+ "blockHash": null
24
25
  },
25
- "baseVersion": "1.11.0",
26
+ "baseVersion": "1.16.0",
26
27
  "baseHash": "0x6883da335b415f9d",
28
+ "configHash": "0x1ac100b4eebb2d9f",
27
29
  "instances": [
28
30
  {
29
31
  "path": ".claude/skills/scripts/SKILL.md",
@@ -43,7 +45,7 @@
43
45
  },
44
46
  {
45
47
  "path": "scripts/functions/current-branch.js",
46
- "hash": "0xb9ebbadf45893278"
48
+ "hash": "0x6610874731cac4e8"
47
49
  },
48
50
  {
49
51
  "path": "scripts/functions/directories.js",
@@ -63,11 +65,11 @@
63
65
  },
64
66
  {
65
67
  "path": "scripts/functions/is-main-up-to-date.js",
66
- "hash": "0xe1ab1826d0ddd039"
68
+ "hash": "0x305e8c2e6acee6d6"
67
69
  },
68
70
  {
69
71
  "path": "scripts/functions/pull-request-url.js",
70
- "hash": "0x5398755a61a59928"
72
+ "hash": "0xf6afe906fbd542f1"
71
73
  },
72
74
  {
73
75
  "path": "scripts/functions/run-command.js",
@@ -6,6 +6,8 @@
6
6
  * found in the LICENSE file in the root of this package.
7
7
  */
8
8
 
9
+ import { execSync } from 'child_process';
10
+
9
11
  export const currentBranch = () => {
10
12
  return execSync('git rev-parse --abbrev-ref HEAD').toString().trim();
11
13
  };
@@ -6,6 +6,10 @@
6
6
  * found in the LICENSE file in the root of this package.
7
7
  */
8
8
 
9
+ import { execSync } from 'child_process';
10
+
11
+ import { red } from './colors.js';
12
+
9
13
  export const isMainUpToDate = () => {
10
14
  try {
11
15
  execSync('git fetch origin main');
@@ -6,6 +6,8 @@
6
6
  * found in the LICENSE file in the root of this package.
7
7
  */
8
8
 
9
+ import { execSync } from 'child_process';
10
+
9
11
  export function pullRequestUrl() {
10
12
  const json = execSync('gh pr view --json url', {
11
13
  encoding: 'utf-8',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggdna/dna-scripts",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "DNA layer: deterministic node scripts and their shared functions",
5
5
  "keywords": [
6
6
  "dna",
@@ -28,8 +28,8 @@
28
28
  "access": "public"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "^26.6.4",
32
- "prettier": "^3.9.9"
31
+ "@types/node": "^26.6.5",
32
+ "prettier": "^3.9.10"
33
33
  },
34
34
  "scripts": {
35
35
  "test:dart": "dart test",