mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-01-11 14:34:17 +00:00
fix: skip npm i for examples without package.json
This commit is contained in:
parent
efd431914f
commit
440e297c60
@ -61,6 +61,12 @@ function createApp(name, template) {
|
||||
}
|
||||
|
||||
function runNpmInApp(root) {
|
||||
const packageJsonPath = path.resolve(root, "package.json");
|
||||
|
||||
if (!fs.existsSync(packageJsonPath)) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Installing npm packages.");
|
||||
try {
|
||||
execSync(`npm install --prefix ${root}`, { stdio: "ignore" });
|
||||
|
Loading…
x
Reference in New Issue
Block a user