UNPKG

nw-builder

Version:

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

20 lines (16 loc) 476 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));