Skip to content

Commit bcef109

Browse files
TS err
1 parent f7de947 commit bcef109

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cli/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { existsSync, readFileSync } from "fs";
66
declare global {
77
namespace NodeJS {
88
interface Process {
9-
resourcesPath: string;
9+
readonly resourcesPath: string;
1010
}
1111
}
1212
}
@@ -22,10 +22,10 @@ if (!process.resourcesPath) {
2222

2323
// Simple heuristic: if vendor exists in cwd, use cwd. Else try to find it relative to execPath.
2424
if (existsSync(join(process.cwd(), "vendor"))) {
25-
process.resourcesPath = process.cwd();
25+
(process as any).resourcesPath = process.cwd();
2626
} else {
2727
// Fallback to directory of executable
28-
process.resourcesPath = join(process.execPath, "..");
28+
(process as any).resourcesPath = join(process.execPath, "..");
2929
}
3030
}
3131

0 commit comments

Comments
 (0)