@mostajs/orm-cli 0.5.7 → 0.5.8
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/bin/mostajs.sh +8 -8
- package/package.json +1 -1
package/bin/mostajs.sh
CHANGED
|
@@ -1845,23 +1845,23 @@ action_rep_scaffold_services() {
|
|
|
1845
1845
|
# Ensure the scaffolders' packages are installed locally
|
|
1846
1846
|
ensure_pkg "@mostajs/replicator" "@mostajs/replica-monitor" || { pause; return; }
|
|
1847
1847
|
|
|
1848
|
-
local
|
|
1849
|
-
if confirm "Overwrite existing services/*.mjs if present?"; then
|
|
1848
|
+
local force_js="false"
|
|
1849
|
+
if confirm "Overwrite existing services/*.mjs if present?"; then force_js="true"; fi
|
|
1850
1850
|
|
|
1851
1851
|
# Call each scaffolder (uses the lib's own emit logic — single source of truth)
|
|
1852
1852
|
echo
|
|
1853
1853
|
echo -e "${CYAN}▶ scaffoldReplicatorService${RESET}"
|
|
1854
|
-
node --input-type=module -e "
|
|
1855
|
-
const { scaffoldReplicatorService } = await import('
|
|
1856
|
-
const r = scaffoldReplicatorService({ projectDir:
|
|
1854
|
+
FORCE="$force_js" PROJECT="$PROJECT_ROOT" node --input-type=module -e "
|
|
1855
|
+
const { scaffoldReplicatorService } = await import(process.env.PROJECT + '/node_modules/@mostajs/replicator/dist/scaffold.js');
|
|
1856
|
+
const r = scaffoldReplicatorService({ projectDir: process.env.PROJECT, force: process.env.FORCE === 'true' });
|
|
1857
1857
|
console.log(' ' + (r.wrote ? '✓' : '•') + ' ' + r.action + ' : ' + r.path);
|
|
1858
1858
|
" 2>&1 | sed 's/^/ /'
|
|
1859
1859
|
|
|
1860
1860
|
echo
|
|
1861
1861
|
echo -e "${CYAN}▶ scaffoldMonitorService${RESET}"
|
|
1862
|
-
node --input-type=module -e "
|
|
1863
|
-
const { scaffoldMonitorService } = await import('
|
|
1864
|
-
const r = scaffoldMonitorService({ projectDir:
|
|
1862
|
+
FORCE="$force_js" PROJECT="$PROJECT_ROOT" node --input-type=module -e "
|
|
1863
|
+
const { scaffoldMonitorService } = await import(process.env.PROJECT + '/node_modules/@mostajs/replica-monitor/dist/scaffold.js');
|
|
1864
|
+
const r = scaffoldMonitorService({ projectDir: process.env.PROJECT, force: process.env.FORCE === 'true' });
|
|
1865
1865
|
console.log(' ' + (r.wrote ? '✓' : '•') + ' ' + r.action + ' : ' + r.path);
|
|
1866
1866
|
" 2>&1 | sed 's/^/ /'
|
|
1867
1867
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mostajs/orm-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "Universal CLI to integrate @mostajs/orm into any project — one-shot `mostajs bootstrap` migrates a Prisma project (codemod + deps + schema convert + DDL) to 13 databases with zero code change.",
|
|
5
5
|
"author": "Dr Hamid MADANI <drmdh@msn.com>",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|