diff --git a/packages/renderer/src/samples/node-api.ts b/packages/renderer/src/samples/node-api.ts index 001e540..0a1d7ce 100644 --- a/packages/renderer/src/samples/node-api.ts +++ b/packages/renderer/src/samples/node-api.ts @@ -1,5 +1,5 @@ - -import fs from 'fs' +import { lstat } from 'fs' +import { cwd } from 'process' import { ipcRenderer } from 'electron' // Usage of ipcRenderer.on @@ -7,7 +7,7 @@ ipcRenderer.on('main-process-message', (_event, ...args) => { console.log('[Receive Main-process message]:', ...args) }) -fs.lstat(process.cwd(), (err, stats) => { +lstat(cwd(), (err, stats) => { if (err) { console.log(err) } else {