@sous-io/sous 1.0.13 → 1.0.15
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/dist/bin.js +8 -2
- package/dist/sous.js +58 -58
- package/docs/markdown/_sidebar.md +1 -0
- package/docs/markdown/commands.md +4 -2
- package/docs/markdown/configuration.md +3 -2
- package/docs/markdown/repositories-authoring.md +22 -11
- package/docs/markdown/repositories-consuming.md +14 -8
- package/docs/markdown/repositories-file-formats.md +38 -14
- package/docs/markdown/repositories-providers.md +1 -0
- package/docs/markdown/repositories-quickstart.md +2 -2
- package/docs/markdown/repositories-troubleshooting.md +5 -2
- package/docs/markdown/repositories-variables.md +31 -0
- package/docs/markdown/repositories.md +2 -2
- package/package.json +33 -33
- package/recipes/core/sous-skills/skills/about-sous-recipes/SKILL.tpl.md +15 -6
- package/recipes/core/sous-skills/skills/about-sous-repos/SKILL.tpl.md +3 -2
- package/recipes/core/sous-skills/sous.recipe.yaml +1 -1
package/dist/bin.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import * as nodeModule from "node:module";
|
|
3
|
+
|
|
4
|
+
// Checked before the bundle loads, so an older Node gets this line instead of a syntax error.
|
|
5
|
+
if (Number(process.versions.node.split(".")[0]) < 22) {
|
|
6
|
+
process.stderr.write(`Sous needs Node 22 or later; this is Node ${process.versions.node}.\n`);
|
|
7
|
+
process.exit(1);
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
// Keeps the compiled bundle on disk between runs (Node 22.1 and later); start-up is faster.
|
|
5
11
|
try {
|
|
6
|
-
enableCompileCache?.();
|
|
12
|
+
nodeModule.enableCompileCache?.();
|
|
7
13
|
} catch {
|
|
8
14
|
// No cache: sous still runs, only a little slower to start.
|
|
9
15
|
}
|