parent
e637c1f34c
commit
50a8a5ffbf
@ -1,6 +1,15 @@
|
|||||||
export function getEnv(): {
|
interface Env {
|
||||||
VSCODE_REF: string | undefined;
|
VSCODE_REF: string;
|
||||||
PRERELEASE_VERSION: string | undefined;
|
PRERELEASE_VERSION: string;
|
||||||
} {
|
}
|
||||||
return process.env as any;
|
|
||||||
|
export function getNightlyEnv(): Env {
|
||||||
|
const env: Env = process.env as any;
|
||||||
|
if (!env.PRERELEASE_VERSION) {
|
||||||
|
throw new Error(`Missing PRERELEASE_VERSION in process.env`);
|
||||||
|
}
|
||||||
|
if (!env.VSCODE_REF) {
|
||||||
|
throw new Error(`Missing VSCODE_REF in process.env`);
|
||||||
|
}
|
||||||
|
return env;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue