Skip to content

Commit

Permalink
Merge pull request #5 from easeq/master
Browse files Browse the repository at this point in the history
Fixed incorrect config plugins key
  • Loading branch information
easeq committed Apr 27, 2020
2 parents 9ad1686 + 087c6a3 commit 68b95cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flipbyte/brunch-json",
"version": "0.2.1",
"version": "0.2.2",
"description": "Adds json support to brunch and allows implementing custom parsers to customize the contents of the output file",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class BrunchJson {
constructor(config) {
this.parsers = [];
if (
typeof config.brunchJSON === 'object'
&& Array.isArray(config.brunchJSON.parsers)
typeof config.plugins.brunchJSON === 'object'
&& Array.isArray(config.plugins.brunchJSON.parsers)
) {
this.parsers = config.brunchJSON.parsers;
this.parsers = config.plugins.brunchJSON.parsers;
}
}

Expand Down

0 comments on commit 68b95cf

Please sign in to comment.