ci: ensure sourceId flag is cleaned up properly
This commit is contained in:
parent
e1e6dc9401
commit
73a6ad4bbc
1 changed files with 8 additions and 2 deletions
10
gulpfile.js
10
gulpfile.js
|
@ -93,7 +93,7 @@ const jsonToNeDB = () =>
|
||||||
try {
|
try {
|
||||||
file.contents = Buffer.from(
|
file.contents = Buffer.from(
|
||||||
JSON.parse(file.contents.toString())
|
JSON.parse(file.contents.toString())
|
||||||
.map(cleanPackEntry)
|
.map((entry) => cleanPackEntry(entry))
|
||||||
.map((entry) => JSON.stringify(entry))
|
.map((entry) => JSON.stringify(entry))
|
||||||
.join("\n") + "\n",
|
.join("\n") + "\n",
|
||||||
);
|
);
|
||||||
|
@ -131,7 +131,13 @@ const neDBToJSON = () =>
|
||||||
if (err) {
|
if (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
} else {
|
} else {
|
||||||
file.contents = Buffer.from(JSON.stringify(docs.map(cleanPackEntry), undefined, 4) + "\n");
|
file.contents = Buffer.from(
|
||||||
|
JSON.stringify(
|
||||||
|
docs.map((entry) => cleanPackEntry(entry)),
|
||||||
|
undefined,
|
||||||
|
4,
|
||||||
|
) + "\n",
|
||||||
|
);
|
||||||
file.path = path.join(
|
file.path = path.join(
|
||||||
path.dirname(file.path),
|
path.dirname(file.path),
|
||||||
path.basename(file.path, path.extname(file.path)) + ".json",
|
path.basename(file.path, path.extname(file.path)) + ".json",
|
||||||
|
|
Loading…
Reference in a new issue