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

fix node deps

This commit is contained in:
Andrew Simachev 2022-08-12 18:01:39 +03:00
parent bfa79237dc
commit e69ac4b458
3 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,6 @@ const protocol = 'anytype';
const remote = require('@electron/remote/main');
const userPath = app.getPath('userData');
const tmpPath = path.join(userPath, 'tmp');
const logPath = path.join(userPath, 'logs');
const binPath = fixPathForAsarUnpack(path.join(__dirname, 'dist', `anytypeHelper${is.windows ? '.exe' : ''}`));

View file

@ -1,4 +1,4 @@
const { app, shell, Menu, Tray, MenuItem } = require('electron');
const { app, shell, Menu, Tray } = require('electron');
const { is } = require('electron-util');
const path = require('path');

View file

@ -23,6 +23,8 @@ stdin.on('end', function() {
return el && el.match(/^node_modules/) && !el.match(new RegExp(`^node_modules/(${skipIds.join('|')})$`));
}).map((it) => { return { from: it, to: it }; });
console.log(lines);
packageJSON.build.files = baseDepsJSON.concat(lines);
let jsonS = JSON.stringify(packageJSON, null, '\t');
fs.writeFileSync('package.json', jsonS);