UNPKG

nw-builder

Version:

Build NW.js desktop applications for MacOS, Windows and Linux.

12 lines (8 loc) 447 B
import path from 'node:path'; import url from 'node:url'; const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); const baseVoltaPath = path.resolve(path.join(__dirname, '..', 'node_modules', 'base-volta-off-of-nwjs', 'index.js')); /* Execute the script in development mode only since it is used during testing */ import(baseVoltaPath) .then(() => console.log('Node version is updated')) .catch((error) => console.log(error));