@zgeoff/rig 0.2.4 → 0.2.5
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 +1 -1
- package/package.json +1 -1
- package/src/build-init-scripts.ts +2 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ so a run that outgrows its memory budget fails alone when `diet` finds a
|
|
|
41
41
|
lane the repo declares.
|
|
42
42
|
- `rig bench [name]` and `rig eval [name]` run the benchmarks and the evaluation suites, or the one
|
|
43
43
|
named `name`.
|
|
44
|
-
- `rig init`
|
|
44
|
+
- `rig init` adds each missing `test` (as `rig unit`), `test:related`, `test:<lane>`, `bench` and
|
|
45
45
|
`eval` script the repo has files for, keeps its other scripts, and writes a starter config.
|
|
46
46
|
|
|
47
47
|
`rig unit` and the lane commands pass every argument after the command on to `bun test`, so
|
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ export function buildInitScripts(
|
|
|
24
24
|
const evalScripts = collectEvalFiles(trackedFiles).length > 0 ? { eval: 'rig eval' } : {};
|
|
25
25
|
|
|
26
26
|
const rigScripts: PackageScripts = {
|
|
27
|
+
test: 'rig unit',
|
|
27
28
|
'test:related': 'rig related',
|
|
28
29
|
...Object.fromEntries(laneScripts),
|
|
29
30
|
...benchScripts,
|
|
@@ -35,7 +36,7 @@ export function buildInitScripts(
|
|
|
35
36
|
([name]) => !Object.hasOwn(oldScripts, name),
|
|
36
37
|
);
|
|
37
38
|
|
|
38
|
-
return { ...oldScripts,
|
|
39
|
+
return { ...oldScripts, ...Object.fromEntries(missingScripts) };
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
function isLaneWanted(
|