From 7446c842d8754a9ce54dd82a9258443d08c490c3 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 9 Mar 2026 21:36:37 -0700 Subject: Bundle brainstorm server dependencies instead of requiring npm install Vendor node_modules into the repo so the brainstorm server works immediately on fresh plugin installs without needing npm at runtime. --- skills/brainstorming/scripts/node_modules/debug/src/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 skills/brainstorming/scripts/node_modules/debug/src/index.js (limited to 'skills/brainstorming/scripts/node_modules/debug/src/index.js') diff --git a/skills/brainstorming/scripts/node_modules/debug/src/index.js b/skills/brainstorming/scripts/node_modules/debug/src/index.js new file mode 100644 index 0000000..e12cf4d --- /dev/null +++ b/skills/brainstorming/scripts/node_modules/debug/src/index.js @@ -0,0 +1,10 @@ +/** + * Detect Electron renderer process, which is node, but we should + * treat as a browser. + */ + +if (typeof process !== 'undefined' && process.type === 'renderer') { + module.exports = require('./browser.js'); +} else { + module.exports = require('./node.js'); +} -- cgit