@ggdna/dna-scripts 0.4.0 → 0.4.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
@@ -3,6 +3,10 @@
3
3
  // last layer of its own instantiation.
4
4
  "version": 2,
5
5
 
6
+ // Published as a DNA layer: helix requires a tag on every section of
7
+ // dna/ markdown, so the layers above can override each one.
8
+ "isLayer": true,
9
+
6
10
  // No parent DNA. This layer is orthogonal: it carries only its own topic
7
11
  // and is combined with other layers by the consumer.
8
12
  "layers": [],
@@ -5,7 +5,7 @@
5
5
  "name": "base",
6
6
  "package": "helix",
7
7
  "ecosystem": null,
8
- "resolvedVersion": "1.15.2",
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": "0xd453ae86e1f6b5e9"
18
+ "hash": "0x1f2540a9e6a05c6e"
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.15.2",
26
+ "baseVersion": "1.16.0",
26
27
  "baseHash": "0x6883da335b415f9d",
28
+ "configHash": "0xb4650cce9f80108f",
27
29
  "instances": [
28
30
  {
29
31
  "path": ".claude/skills/scripts/SKILL.md",
@@ -31,7 +33,7 @@
31
33
  },
32
34
  {
33
35
  "path": ".pubignore",
34
- "hash": "0xca75a2bf57940291"
36
+ "hash": "0xde4a91eb33171faf"
35
37
  },
36
38
  {
37
39
  "path": "doc/guides/scripts-guide.md",
@@ -47,7 +49,7 @@
47
49
  },
48
50
  {
49
51
  "path": "scripts/functions/current-branch.js",
50
- "hash": "0xb9ebbadf45893278"
52
+ "hash": "0x6610874731cac4e8"
51
53
  },
52
54
  {
53
55
  "path": "scripts/functions/directories.js",
@@ -67,11 +69,11 @@
67
69
  },
68
70
  {
69
71
  "path": "scripts/functions/is-main-up-to-date.js",
70
- "hash": "0xe1ab1826d0ddd039"
72
+ "hash": "0x305e8c2e6acee6d6"
71
73
  },
72
74
  {
73
75
  "path": "scripts/functions/pull-request-url.js",
74
- "hash": "0x5398755a61a59928"
76
+ "hash": "0xf6afe906fbd542f1"
75
77
  },
76
78
  {
77
79
  "path": "scripts/functions/run-command.js",
@@ -11,14 +11,14 @@ found in the LICENSE file in the root of this package.
11
11
  The node scripts a repo automates its workflow with, and the functions they
12
12
  share — from reading local git state to calling the GitHub API.
13
13
 
14
- ## Use a function instead of repeating a command
14
+ ## @function Use a function instead of repeating a command
15
15
 
16
16
  - Import from `dna/scripts/functions/`, never duplicate a `git`, `gh` or
17
17
  file system call across scripts
18
18
  - Keep a function pure where possible: same input, same output, no
19
19
  printing
20
20
 
21
- ## Add a script
21
+ ## @script Add a script
22
22
 
23
23
  - Put it in `dna/scripts/`, its shared parts in `dna/scripts/functions/`
24
24
  - Give it the license header every file here carries
@@ -15,24 +15,24 @@ found in the LICENSE file in the root of this package.
15
15
 
16
16
  Read `doc/guides/scripts-guide.md` and follow it.
17
17
 
18
- ## 1. Check every script parses
18
+ ## @script 1. Check every script parses
19
19
 
20
20
  Run `node --check` on each file in `scripts/` and `scripts/functions/`.
21
21
 
22
22
  Report any file that fails.
23
23
 
24
- ## 2. Check the imports resolve
24
+ ## @imports 2. Check the imports resolve
25
25
 
26
26
  For each `import … from './functions/…'`, verify the target file exists
27
27
  and exports the named symbol.
28
28
 
29
29
  Report an import that resolves to nothing.
30
30
 
31
- ## 3. Check for duplication
31
+ ## @duplication 3. Check for duplication
32
32
 
33
33
  Report a `git`, `fs` or `child_process` call that is copied across two
34
34
  scripts instead of living in one shared function.
35
35
 
36
- ## 4. Fix
36
+ ## @fix 4. Fix
37
37
 
38
38
  Write the corrections, then show the diff before committing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggdna/dna-scripts",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "DNA layer: deterministic node scripts and their shared functions",
5
5
  "keywords": [
6
6
  "dna",