@manojkmfsi/monodog 1.1.14 → 1.1.16
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/CHANGELOG.md +12 -0
- package/dist/setup.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/setup.js
CHANGED
|
@@ -37,6 +37,20 @@ fs_1.default.cpSync(packageRoot, destinationPath, {
|
|
|
37
37
|
});
|
|
38
38
|
// 2. Fix package.json (standalone app)
|
|
39
39
|
fixPackageJson(destinationPath);
|
|
40
|
+
function ensureWorkspace(rootDir) {
|
|
41
|
+
const wsPath = path_1.default.join(rootDir, 'pnpm-workspace.yaml');
|
|
42
|
+
if (!fs_1.default.existsSync(wsPath)) {
|
|
43
|
+
console.log('pnpm-workspace.yaml does not exist');
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const content = fs_1.default.readFileSync(wsPath, 'utf8');
|
|
47
|
+
if (content.includes('monodog'))
|
|
48
|
+
return;
|
|
49
|
+
const updated = content.replace(/packages:\s*\n/, `packages:\n - monodog\n`);
|
|
50
|
+
fs_1.default.writeFileSync(wsPath, updated);
|
|
51
|
+
}
|
|
52
|
+
// 3. Install deps
|
|
53
|
+
ensureWorkspace(process.cwd());
|
|
40
54
|
(0, child_process_1.execSync)('pnpm install', { stdio: 'inherit' });
|
|
41
55
|
(0, child_process_1.execSync)('pnpm --filter monodog-app migrate:reset', { stdio: 'inherit' });
|
|
42
56
|
console.log(`
|