lwazi 1.4.0 → 1.4.2

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/bin/update.js +6 -0
  2. package/package.json +1 -1
package/bin/update.js CHANGED
@@ -46,6 +46,12 @@ function copyDirectory(src, dest) {
46
46
  }
47
47
  }
48
48
 
49
+ if (fs.existsSync(targetDir)) {
50
+ console.log("Removing old lwazi directory...");
51
+ fs.rmSync(targetDir, { recursive: true, force: true });
52
+ }
53
+
54
+ console.log("Copying fresh lwazi files...");
49
55
  copyDirectory(packageDir, targetDir);
50
56
 
51
57
  console.log("Running composer update...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lwazi",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Lwazi is an AI assistant for Laravel. Install with one command to add an AI assistant to your Laravel app.",
5
5
  "main": "bin/lwazi.js",
6
6
  "bin": {