@wpmoo/odoo 0.8.66 → 0.8.67
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/templates.js +7 -3
- package/package.json +1 -1
package/dist/templates.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { packageName, packageVersion } from './version.js';
|
|
2
|
+
function fallbackPackageSpec() {
|
|
3
|
+
return `${packageName()}@${packageVersion()}`;
|
|
4
|
+
}
|
|
1
5
|
export function defaultCommunityAddons(product) {
|
|
2
6
|
return [product];
|
|
3
7
|
}
|
|
@@ -218,7 +222,7 @@ exposes them through \`/mnt/wpmoo-addons\`.
|
|
|
218
222
|
\`./moo\` routes day-to-day service and module workflows to local scripts in
|
|
219
223
|
\`./scripts/\` (for example \`start\`, \`logs\`, \`update\`, \`test\`, \`snapshot\`).
|
|
220
224
|
\`./moo status\` and \`./moo doctor\` are package fallback commands that run via
|
|
221
|
-
\`npx --yes
|
|
225
|
+
\`npx --yes ${fallbackPackageSpec()} ...\`.
|
|
222
226
|
|
|
223
227
|
### Start And Inspect Services
|
|
224
228
|
|
|
@@ -547,7 +551,7 @@ case "$command" in
|
|
|
547
551
|
run_script ./scripts/pot.sh "$@"
|
|
548
552
|
;;
|
|
549
553
|
*)
|
|
550
|
-
exec npx --yes
|
|
554
|
+
exec npx --yes ${fallbackPackageSpec()} "$@"
|
|
551
555
|
;;
|
|
552
556
|
esac
|
|
553
557
|
`;
|
|
@@ -705,7 +709,7 @@ Useful maintenance commands:
|
|
|
705
709
|
|
|
706
710
|
Daily script delegation vs package fallback:
|
|
707
711
|
- \`./moo start\`, \`logs\`, \`install\`, \`update\`, \`test\`, \`snapshot\`, and related runtime tasks delegate to local \`./scripts/*.sh\`.
|
|
708
|
-
- \`./moo status\` and \`./moo doctor\` are package fallback commands routed to \`npx --yes
|
|
712
|
+
- \`./moo status\` and \`./moo doctor\` are package fallback commands routed to \`npx --yes ${fallbackPackageSpec()} ...\`.
|
|
709
713
|
|
|
710
714
|
Only report completion after the relevant update/test/lint command exits cleanly.
|
|
711
715
|
`;
|