babyclara 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -40,9 +40,9 @@ foldersToCopy.forEach(folder => {
40
40
  copyFolder(src, dest);
41
41
  });
42
42
 
43
- // Install gkrane
43
+ // Install gkrane + chokidar-cli locally
44
44
  console.log("Installing Dependencies...");
45
- execSync("npm install gkrane chokidar", { cwd: targetDir, stdio: "inherit" });
45
+ execSync("npm install gkrane chokidar-cli --save-dev", { cwd: targetDir, stdio: "inherit" });
46
46
 
47
47
  // Modify package.json
48
48
  const pkgPath = path.join(targetDir, "package.json");
@@ -52,8 +52,9 @@ if (fs.existsSync(pkgPath)) {
52
52
 
53
53
  pkg.scripts = pkg.scripts || {};
54
54
 
55
+ // Use local chokidar-cli binary
55
56
  pkg.scripts.start =
56
- "npx chokidar \"**/*\" \"!apps/**\" \"!games/**\" -c \"node ./node_modules/gkrane/core/index.js\"";
57
+ "./node_modules/.bin/chokidar \"**/*\" \"!apps/**\" \"!games/**\" -c \"node ./node_modules/gkrane/core/index.js\"";
57
58
 
58
59
  pkg.scripts.dev =
59
60
  "node ./node_modules/gkrane/core/dev.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babyclara",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A Vue.Js Work Station",
5
5
  "main": "index.js",
6
6
  "author": "Augment Chinedu",