Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit e02c896

Browse files
author
Amit
committed
fixed typo in reading package.json if dosent exist .
changed workspaces deafult {} to []
1 parent 515e9d0 commit e02c896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/package-json/package-json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export default class PackageJson {
191191
const saveRawObject = obj => fs.outputJSON(composePath(rootDir), obj, { spaces: 2 });
192192
const getPackageJson = async () => {
193193
const exist = PackageJson.hasExisting(rootDir);
194-
return exist ? getRawObject() : { workspaces: {}, private: true };
194+
return exist ? getRawObject() : { workspaces: [], private: true };
195195
};
196196
const pkg = await getPackageJson();
197197
pkg.private = pkg.private || true;

0 commit comments

Comments
 (0)