Comparing version 0.1.6 to 0.1.7
@@ -9,7 +9,16 @@ 'use strict'; | ||
const excludes = [ | ||
'dist', | ||
'dependencies', | ||
'devDependencies', | ||
'directories', | ||
'optionalDependencies', | ||
'readme' | ||
]; | ||
Object.keys(json) | ||
.filter(key => key[0] !== '_') | ||
.filter(key => key !== 'dist') | ||
.filter(key => !excludes.includes(key)) | ||
.forEach(key => result[key] = json[key]); | ||
fs.writeFileSync('package.json', JSON.stringify(result, undefined, '\t')); |
@@ -7,6 +7,3 @@ { | ||
}, | ||
"dependencies": {}, | ||
"description": "Automatically install missing dependencies!", | ||
"devDependencies": {}, | ||
"directories": {}, | ||
"keywords": [ | ||
@@ -30,4 +27,2 @@ "auto", | ||
"name": "autoinst", | ||
"optionalDependencies": {}, | ||
"readme": "README.md", | ||
"scripts": { | ||
@@ -39,3 +34,3 @@ "prepublishOnly": "node clean_package_json", | ||
}, | ||
"version": "0.1.6" | ||
"version": "0.1.7" | ||
} |
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
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
3226
81