Vincent Spallek

Results 31 comments of Vincent Spallek

> Very intereesting. > > Is there a proper way to detect if we're in a npm workspace and can discern that dependencies are already installed? [`getElectronVersionFromInstalled(projectDir)`](https://github.com/electron-userland/electron-builder/blob/2ca621289e025a6d0856c7c588aaac40d267cb5f/packages/app-builder-lib/src/electron/electronVersion.ts#L26) is trying to...

It is important that the `resolve()` takes place in the context of the electron project, not in the context of the electron-builder itself.

Seems to be this line: https://github.com/nextapps-de/flexsearch/blob/9abb781357f04e7db8529654c6941009771f4bf1/src/worker/index.js#L138 The first parameter for [`new Worker()`](https://nodejs.org/api/worker_threads.html#new-workerfilename-options) is `fileName` which is a path relative to the current working directory. So above line only works if...

So here would be a workaround: ```js const path = require('node:path') const { Worker } = require('flexsearch') function createWorker() { const cwd = process.cwd() try { process.chdir(path.dirname(require.resolve('flexsearch'))) return new Worker()...

@memsharded In a build pipeline, we want to clean certain package to force their rebuild. But we don't want to empty the local cache completely, as this would defeat the...