mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-08-28 02:44:59 +00:00
* build(deps-dev): bump @eslint/js from 9.38.0 to 10.0.1 Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.38.0 to 10.0.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/commits/v10.0.1/packages/js) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 10.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Resolve eslint js 10 lint failures --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brad Groux <3053586+BradGroux@users.noreply.github.com>
37 lines
1.1 KiB
JavaScript
Executable file
37 lines
1.1 KiB
JavaScript
Executable file
#!/usr/bin/env node
|
|
import { spawnSync } from 'node:child_process';
|
|
import { createRequire } from 'node:module';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
const desktopDir = path.join(rootDir, 'desktop');
|
|
const requireFromDesktop = createRequire(path.join(desktopDir, 'package.json'));
|
|
|
|
function resolveElectronBuilderCli() {
|
|
try {
|
|
return requireFromDesktop.resolve('electron-builder/cli.js');
|
|
} catch (error) {
|
|
throw new Error(
|
|
[
|
|
'Unable to resolve electron-builder from the desktop package dependency graph.',
|
|
'Run `CI=true pnpm install --frozen-lockfile` from the repository root, then retry the desktop packaging command.',
|
|
error instanceof Error ? error.message : String(error),
|
|
].join('\n'),
|
|
{ cause: error }
|
|
);
|
|
}
|
|
}
|
|
|
|
const cli = resolveElectronBuilderCli();
|
|
const result = spawnSync(process.execPath, [cli, ...process.argv.slice(2)], {
|
|
cwd: desktopDir,
|
|
env: process.env,
|
|
stdio: 'inherit',
|
|
});
|
|
|
|
if (result.error) {
|
|
throw result.error;
|
|
}
|
|
|
|
process.exit(result.status ?? 1);
|