Showing the changes to packages/shared/src/hostProcess.ts (1 of 35 files). Show all
Unified · Split
| @@ -30,4 +30,18 @@ export const HostProcessEnvironment = Context.Reference<NodeJS.ProcessEnv>( · 29 unmodified lines | |||
| 30 | }, | 30 | }, |
| 31 | ); | 31 | ); |
| 32 | 32 | ||
| 33 | export const HostProcessExecutablePath = Context.Reference<string>( | ||
| 34 | "@t3tools/shared/hostProcess/HostProcessExecutablePath", | ||
| 35 | { | ||
| 36 | defaultValue: () => process.execPath, | ||
| 37 | }, | ||
| 38 | ); | ||
| 39 | |||
| 40 | export const HostProcessArguments = Context.Reference<ReadonlyArray<string>>( | ||
| 41 | "@t3tools/shared/hostProcess/HostProcessArguments", | ||
| 42 | { | ||
| 43 | defaultValue: () => process.argv, | ||
| 44 | }, | ||
| 45 | ); | ||
| 46 | |||
| 33 | export const isHostWindows = Effect.map(HostProcessPlatform, (platform) => platform === "win32"); | 47 | export const isHostWindows = Effect.map(HostProcessPlatform, (platform) => platform === "win32"); |