@iankibetsh/shframework 1.4.2 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",
@@ -31,7 +31,11 @@ if(args[0] == 'backup'){
31
31
  const file = component.fileName
32
32
  const contents = component.contents
33
33
  const dest = `${destination}${file}`
34
- console.log(`Copy ${file} to ${destination}`)
35
- fs.writeFileSync(dest,contents)
34
+ if(!fs.existsSync(dest)){
35
+ console.log(`Copy ${file} to ${destination}`)
36
+ fs.writeFileSync(dest,contents)
37
+ } else {
38
+ console.log(`${file} Exists Already`)
39
+ }
36
40
  })
37
41
  }