@ggdna/dna-scripts 0.3.1 → 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/README.md CHANGED
@@ -40,6 +40,12 @@ deterministic given local git and file system state, no GitHub API calls.
40
40
  - `dna/scripts/wait-for-pr.js` — waits for the current pull request to
41
41
  merge
42
42
 
43
+ ## Publishing
44
+
45
+ `dna/dot-pubignore` keeps `/doc/guides/` and `/scripts/` out of the package
46
+ `dart pub publish` uploads. helix joins it with the ignore files of the other
47
+ layers into the project's `.pubignore`.
48
+
43
49
  ## Layers
44
50
 
45
51
  Orthogonal: this layer carries only its own topic and is combined with
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": [],
@@ -15,7 +15,7 @@
15
15
  "ecosystem": null,
16
16
  "resolvedVersion": null,
17
17
  "via": null,
18
- "hash": "0x8bfe7a26d113f04b"
18
+ "hash": "0x1f2540a9e6a05c6e"
19
19
  }
20
20
  ],
21
21
  "claude": {
@@ -25,12 +25,16 @@
25
25
  },
26
26
  "baseVersion": "1.16.0",
27
27
  "baseHash": "0x6883da335b415f9d",
28
- "configHash": "0x1ac100b4eebb2d9f",
28
+ "configHash": "0xb4650cce9f80108f",
29
29
  "instances": [
30
30
  {
31
31
  "path": ".claude/skills/scripts/SKILL.md",
32
32
  "hash": "0xa12593aa0af31ed2"
33
33
  },
34
+ {
35
+ "path": ".pubignore",
36
+ "hash": "0xde4a91eb33171faf"
37
+ },
34
38
  {
35
39
  "path": "doc/guides/scripts-guide.md",
36
40
  "hash": "0x426857c389049083"
@@ -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.
@@ -0,0 +1,2 @@
1
+ /doc/guides/
2
+ /scripts/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggdna/dna-scripts",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "description": "DNA layer: deterministic node scripts and their shared functions",
5
5
  "keywords": [
6
6
  "dna",