@globules-io/ogx.js
Advanced tools
Comparing version 1.8.7-c to 1.8.7-d
@@ -13,8 +13,6 @@ const fs = require('fs'); | ||
const dest_app_bak = path.normalize(__dirname+'./../../../www/app.bak'); | ||
//if cli.json exists, check if we still use index.html | ||
//if we dont, don't copy | ||
//if index.html exits already, dont copy | ||
let app_exists = fs.existsSync(dest_app); | ||
let index_exists = fs.existsSync(dest_index); | ||
let copy_index = !index_exists; | ||
let remove_html = false; | ||
if(fs.existsSync(dest_cli)){ | ||
@@ -24,5 +22,5 @@ let cli_config = fs.readFileSync(dest_cli, 'utf-8'); | ||
copy_index = false; | ||
remove_html = true; | ||
} | ||
} | ||
//if we're not copying, make a back up since it will be overwritten | ||
if(!copy_index){ | ||
@@ -39,4 +37,7 @@ fs.renameSync(dest_index, dest_index_bak); | ||
} | ||
if(remove_html){ | ||
fs.unlinkSync(dest_index); | ||
} | ||
if(app_exists){ | ||
fs.renameSync(dest_app_bak, dest_app); | ||
} |
{ | ||
"name": "@globules-io/ogx.js", | ||
"version": "1.8.7c", | ||
"version": "1.8.7d", | ||
"description": "Javascript framework for webviews", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
273
757224