1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00
This commit is contained in:
Andrew Simachev 2021-06-15 18:22:09 +03:00
parent 9b423fb793
commit cf2c9d2174
2 changed files with 4 additions and 8 deletions

View file

@ -17,16 +17,16 @@ stdin.on('end', function() {
let packageJSON = JSON.parse(packageFile);
lines = [ ...new Set(lines) ];
lines = lines.map((it) => {
lines = lines.filter(function (el) {
return el != "";
}).map((it) => {
return {
from: it,
to: it,
};
});
packageJSON.build.files = baseDepsJSON.concat(lines).filter(function (el) {
return el != "";
});
packageJSON.build.files = baseDepsJSON.concat(lines);
let jsonS = JSON.stringify(packageJSON, null, '\t');
fs.writeFileSync('package.json', jsonS);
});