1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-180: Fix build:deps for webpack 5

This commit is contained in:
Andrew Simachev 2022-08-03 10:42:38 +03:00
parent 10b7f4d12b
commit e617417826
2 changed files with 2 additions and 41 deletions

View file

@ -17,14 +17,7 @@ stdin.on('end', function() {
let packageJSON = JSON.parse(packageFile);
lines = [ ...new Set(lines) ];
lines = lines.filter(function (el) {
return el != "";
}).map((it) => {
return {
from: it,
to: it,
};
});
lines = lines.filter((el) => { return el && el.match(/^node_modules/); }).map((it) => { return { from: it, to: it }; });
packageJSON.build.files = baseDepsJSON.concat(lines);
let jsonS = JSON.stringify(packageJSON, null, '\t');