Skip to content

Commit 1593598

Browse files
committed
Rename context to defaults
1 parent 5055384 commit 1593598

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const hook = createHook({
5959
})
6060
hook.enable()
6161

62-
const context: Options = {
62+
const defaults: Options = {
6363
[processCwd]: process.cwd(),
6464
verbose: (global as any).ZX_VERBOSE ?? true,
6565
env: process.env,
@@ -71,14 +71,14 @@ const context: Options = {
7171
}
7272

7373
try {
74-
context.shell = which.sync('bash')
75-
context.prefix = 'set -euo pipefail;'
74+
defaults.shell = which.sync('bash')
75+
defaults.prefix = 'set -euo pipefail;'
7676
} catch (err) {
7777
// ¯\_(ツ)_/¯
7878
}
7979

8080
function getStore() {
81-
return storage.getStore() || context
81+
return storage.getStore() || defaults
8282
}
8383

8484
export const $ = new Proxy<Shell & Options>(

0 commit comments

Comments
 (0)