@ggdna/dna-scripts 0.3.0 → 0.4.0

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
@@ -5,7 +5,7 @@
5
5
  "name": "base",
6
6
  "package": "helix",
7
7
  "ecosystem": null,
8
- "resolvedVersion": "1.12.0",
8
+ "resolvedVersion": "1.15.2",
9
9
  "via": null,
10
10
  "hash": "0x6883da335b415f9d"
11
11
  },
@@ -15,20 +15,24 @@
15
15
  "ecosystem": null,
16
16
  "resolvedVersion": null,
17
17
  "via": null,
18
- "hash": "0xe3092339b83504a1"
18
+ "hash": "0xd453ae86e1f6b5e9"
19
19
  }
20
20
  ],
21
21
  "claude": {
22
22
  "claudeMdInclude": null,
23
23
  "claudeMdFromDna": false
24
24
  },
25
- "baseVersion": "1.12.0",
25
+ "baseVersion": "1.15.2",
26
26
  "baseHash": "0x6883da335b415f9d",
27
27
  "instances": [
28
28
  {
29
29
  "path": ".claude/skills/scripts/SKILL.md",
30
30
  "hash": "0xa12593aa0af31ed2"
31
31
  },
32
+ {
33
+ "path": ".pubignore",
34
+ "hash": "0xca75a2bf57940291"
35
+ },
32
36
  {
33
37
  "path": "doc/guides/scripts-guide.md",
34
38
  "hash": "0x426857c389049083"
@@ -0,0 +1,2 @@
1
+ /doc/guides/
2
+ /scripts/
@@ -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.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "DNA layer: deterministic node scripts and their shared functions",
5
5
  "keywords": [
6
6
  "dna",