Skip to content

Commit

Permalink
package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
shanebdavis committed Mar 3, 2020
1 parent e5d8762 commit 1f6ac3f
Show file tree
Hide file tree
Showing 3 changed files with 6,921 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gen-mono-package.js
@@ -1,7 +1,12 @@
const glob = require("glob-promise");
const fs = require('fs-extra');

const readJson = (file) => JSON.parse(fs.readFileSync(file));
const readJson = (file) => {
if (fs.existsSync(file))
return JSON.parse(fs.readFileSync(file));
else
return {}
}

const currentPackage = readJson("package.json");
currentPackage.dependencies = {};
Expand Down

0 comments on commit 1f6ac3f

Please sign in to comment.