mango-cms 0.2.15 → 0.2.17

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.
Files changed (2) hide show
  1. package/cli.js +2 -2
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -166,7 +166,7 @@ program
166
166
  // Create project directory and copy template
167
167
  console.log(`Creating project in ${projectDir}...`);
168
168
  fs.mkdirSync(projectDir);
169
- fs.copySync(templateDir, projectDir);
169
+ fs.copySync(templateDir, projectDir, { filter: (src, dest) => true });
170
170
 
171
171
  // Create config directory if it doesn't exist
172
172
  const configDir = path.join(projectDir, 'mango');
@@ -508,7 +508,7 @@ async function managePM2Process(settings) {
508
508
  execSync(`pm2 reload ${processName}`);
509
509
  } else {
510
510
  console.log(`Starting new PM2 process: ${processName}`);
511
- execSync(`pm2 start build/index.js --name ${processName}`);
511
+ execSync(`pm2 start index.js --name ${processName}`, { cwd: './build' });
512
512
  }
513
513
  } catch (error) {
514
514
  console.error('Error managing PM2 process:', error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mango-cms",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "main": "./index.js",
5
5
  "exports": {
6
6
  ".": "./index.js",