nanoshell 1.7.3 → 1.7.4
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/cli/index.js +14 -0
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -75,6 +75,20 @@ if (args.length > 0 && !args[0].startsWith('-') && args[0] !== 'package' && args
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
|
|
79
|
+
// Copy full NanoShell Master Control Center UI dashboard into target app/ folder
|
|
80
|
+
const pkgAppDir = path.join(pkgDir, 'app');
|
|
81
|
+
const targetAppDir = path.join(targetDir, 'app');
|
|
82
|
+
if (fs.existsSync(pkgAppDir)) {
|
|
83
|
+
if (!fs.existsSync(targetAppDir)) fs.mkdirSync(targetAppDir, { recursive: true });
|
|
84
|
+
const appFiles = fs.readdirSync(pkgAppDir);
|
|
85
|
+
for (const file of appFiles) {
|
|
86
|
+
const srcFile = path.join(pkgAppDir, file);
|
|
87
|
+
if (fs.statSync(srcFile).isFile()) {
|
|
88
|
+
fs.copyFileSync(srcFile, path.join(targetAppDir, file));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
78
92
|
}
|
|
79
93
|
}
|
|
80
94
|
|
package/package.json
CHANGED