Skip to content

Commit 4780e42

Browse files
author
dmp42
committed
Fix build bustage following json prettyfication and conf manip
1 parent 5f9a99f commit 4780e42

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

lib/parser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
});
4646

4747
// Validator XXX
48-
global.env.conf = {tags: informations.tags};
48+
global.env.conf = global.env.conf || {};
49+
global.env.conf.tags = informations.tags;
4950

5051
if(!informations.longname)
5152
informations.longname = informations.kind + ':' + informations.name;

test/expected/hello.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
[{"name":"","kind":"package","longname":"package:","description":"","version":"","licenses":[],"files":[]}]
1+
[
2+
{
3+
"name": "",
4+
"kind": "package",
5+
"longname": "package:",
6+
"description": "",
7+
"version": "",
8+
"licenses": [],
9+
"tags": {
10+
"allowUnknownTags": true
11+
},
12+
"plugins": false,
13+
"files": []
14+
}
15+
]

0 commit comments

Comments
 (0)