nolimit-x 1.0.41 → 1.0.43
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 +3 -0
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -215,10 +215,13 @@ async function initSMSWorkspace(workspace) {
|
|
|
215
215
|
const fs = require('fs');
|
|
216
216
|
const path = require('path');
|
|
217
217
|
const dir = path.resolve(process.cwd(), workspace);
|
|
218
|
+
|
|
219
|
+
console.log('>>> [SMS INIT] Checking if directory exists:', dir);
|
|
218
220
|
if (fs.existsSync(dir)) {
|
|
219
221
|
spinner.fail(`Directory ${workspace} already exists!`);
|
|
220
222
|
process.exit(1);
|
|
221
223
|
}
|
|
224
|
+
console.log('>>> [SMS INIT] About to enter try/copy block');
|
|
222
225
|
try {
|
|
223
226
|
// Copy all files and folders from phonebook/ to the new workspace
|
|
224
227
|
fse.copySync(phonebookTemplateDir, dir, { overwrite: false, errorOnExist: false });
|