exportc 0.0.7 → 0.0.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/commands/init.js +13 -4
- package/package.json +1 -1
package/commands/init.js
CHANGED
|
@@ -234,13 +234,22 @@ declare module "export/" {
|
|
|
234
234
|
|
|
235
235
|
console.log(pc.green("✓") + " Created export/");
|
|
236
236
|
|
|
237
|
-
// Install dependencies
|
|
238
|
-
console.log(pc.gray("Installing dependencies..."));
|
|
237
|
+
// Install dependencies in export/
|
|
238
|
+
console.log(pc.gray("Installing export dependencies..."));
|
|
239
239
|
try {
|
|
240
240
|
execSync("npm install", { cwd: exportDir, stdio: "pipe" });
|
|
241
|
-
console.log(pc.green("✓") + " Installed dependencies");
|
|
241
|
+
console.log(pc.green("✓") + " Installed export dependencies");
|
|
242
242
|
} catch {
|
|
243
|
-
console.log(pc.yellow("!") + " Failed to install
|
|
243
|
+
console.log(pc.yellow("!") + " Failed to install export dependencies");
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// Install exportc in main project
|
|
247
|
+
console.log(pc.gray("Installing exportc..."));
|
|
248
|
+
try {
|
|
249
|
+
execSync("npm install", { cwd, stdio: "pipe" });
|
|
250
|
+
console.log(pc.green("✓") + " Installed exportc");
|
|
251
|
+
} catch {
|
|
252
|
+
console.log(pc.yellow("!") + " Failed to install. Run: npm install");
|
|
244
253
|
}
|
|
245
254
|
|
|
246
255
|
// Done
|