Skip to content

Instantly share code, notes, and snippets.

View gjtiquia's full-sized avatar
🔥
Having fun!

GJ Tiquia gjtiquia

🔥
Having fun!
View GitHub Profile
@gjtiquia
gjtiquia / bundler.ts
Last active January 6, 2024 15:27 — forked from robin-hartmann/bundler.js
npm workspaces support for electron-forge
// from: https://gist.github.com/robin-hartmann/ad6ffc19091c9e661542fbf178647047
// issue: https://github.com/electron/forge/issues/2306
// A bundler for locating local packages from workspaces, because Electron Forge does not support NPM workspaces out of the box
const fs = require('fs/promises');
const path = require('path');
const { findRoot } = require('@manypkg/find-root');
const arborist = require('@npmcli/arborist');
interface Edge {