chore: replace cross-env with shell-emulator & misc (#1464)

This commit is contained in:
hehe
2023-03-10 09:16:25 +08:00
committed by GitHub
parent d0c1b4508e
commit 047adde310
13 changed files with 24 additions and 99 deletions

View File

@@ -51,6 +51,12 @@ export type Environment = Browser | Server | Desktop;
let environment: Environment | null = null;
declare global {
interface Window {
CLIENT_APP?: boolean;
}
}
export function getEnvironment() {
if (environment) {
return environment;

4
packages/env/tsconfig.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["./src"]
}