diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-06-22 07:18:32 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 07:18:32 +1000 |
commit | 281c4cd8fcf5fd54f558a6922736def2c7804529 (patch) | |
tree | 65ac91c5a41a64dc0b85ee9c5949d7086e8620ef /cli/build.rs | |
parent | cda15f2a98b10330422d1c8352d163d703ee6a49 (diff) |
feat(cli): support "types" when type checking (#10999)
Fixes #10677
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs index c88c00376..8e15ef443 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -163,6 +163,10 @@ fn create_compiler_snapshot( })) }), ); + js_runtime.register_op( + "op_cwd", + op_sync(move |_state, _args: Value, _: ()| Ok(json!("cache:///"))), + ); // using the same op that is used in `tsc.rs` for loading modules and reading // files, but a slightly different implementation at build time. js_runtime.register_op( |