We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7de947 commit bcef109Copy full SHA for bcef109
1 file changed
src/cli/index.ts
@@ -6,7 +6,7 @@ import { existsSync, readFileSync } from "fs";
6
declare global {
7
namespace NodeJS {
8
interface Process {
9
- resourcesPath: string;
+ readonly resourcesPath: string;
10
}
11
12
@@ -22,10 +22,10 @@ if (!process.resourcesPath) {
22
23
// Simple heuristic: if vendor exists in cwd, use cwd. Else try to find it relative to execPath.
24
if (existsSync(join(process.cwd(), "vendor"))) {
25
- process.resourcesPath = process.cwd();
+ (process as any).resourcesPath = process.cwd();
26
} else {
27
// Fallback to directory of executable
28
- process.resourcesPath = join(process.execPath, "..");
+ (process as any).resourcesPath = join(process.execPath, "..");
29
30
31
0 commit comments