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:
parent
bfa79237dc
commit
e69ac4b458
3 changed files with 3 additions and 2 deletions
|
@ -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' : ''}`));
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue