nolimit-x 1.0.45 → 1.0.47
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/package.json +1 -1
- package/src/cli.js +1 -4
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ const { spawn } = require('child_process');
|
|
|
9
9
|
const ora = require("ora");
|
|
10
10
|
const getOra = ora.default || ora;
|
|
11
11
|
// const { send } = require("./sender"); // We'll use sendEmails for email mode
|
|
12
|
-
const phonebookTemplateDir = path.resolve(__dirname, '
|
|
12
|
+
const phonebookTemplateDir = path.resolve(__dirname, '../phonebook');
|
|
13
13
|
const fse = require('fs-extra');
|
|
14
14
|
|
|
15
15
|
const program = new Command();
|
|
@@ -216,12 +216,10 @@ async function initSMSWorkspace(workspace) {
|
|
|
216
216
|
const path = require('path');
|
|
217
217
|
const dir = path.resolve(process.cwd(), workspace);
|
|
218
218
|
|
|
219
|
-
console.log('>>> [SMS INIT] Checking if directory exists:', dir);
|
|
220
219
|
if (fs.existsSync(dir)) {
|
|
221
220
|
spinner.fail(`Directory ${workspace} already exists!`);
|
|
222
221
|
process.exit(1);
|
|
223
222
|
}
|
|
224
|
-
console.log('>>> [SMS INIT] About to enter try/copy block');
|
|
225
223
|
try {
|
|
226
224
|
// Copy all files and folders from phonebook/ to the new workspace
|
|
227
225
|
fse.copySync(phonebookTemplateDir, dir, { overwrite: false, errorOnExist: false });
|
|
@@ -231,7 +229,6 @@ async function initSMSWorkspace(workspace) {
|
|
|
231
229
|
spinner.succeed('Template ready');
|
|
232
230
|
} catch (error) {
|
|
233
231
|
spinner.fail("Error during SMS workspace initialization.");
|
|
234
|
-
console.error(error);
|
|
235
232
|
process.exit(1);
|
|
236
233
|
}
|
|
237
234
|
}
|