Skip to content

Commit

Permalink
fix(parcel): check for empty package
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed May 14, 2019
1 parent 042db06 commit 8c3fe34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parcel/AdapterJSAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AdapterJSAsset extends JSAsset {
}

async getPackage() {
const pkg = await super.getPackage();
const pkg = await super.getPackage() || {};
const pack = pkg.devDependencies ? pkg : Object.assign(pkg, {
devDependencies: {
hyperapp: '*',
Expand Down

0 comments on commit 8c3fe34

Please sign in to comment.