Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Update install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ducksoupdev committed Dec 29, 2015
1 parent 4edc11a commit 9578d67
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions install.js
Expand Up @@ -118,13 +118,21 @@ var packages = null,
try {
packages = JSON.parse(packagesContent);

// cleanup
// cleanup package.json
var dependencies = packages.dependencies;
packages.devDependencies = {};
extend(packages.devDependencies, dependencies);

delete packages.dependencies;
delete packages.keywords;
delete packages.scripts;
packages.version = "0.1.0";
packages.name = "";
packages.description = "";
packages.author = "";

// write out the new package.json
writeFileSync(rootPath + './package.json', packages, {
writeFileSync(rootPath + '/package.json', packages, {
spaces: 4,
encoding: 'utf8'
});
Expand Down

0 comments on commit 9578d67

Please sign in to comment.