summaryrefslogtreecommitdiff
path: root/cli/js/ops
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-07-08 19:26:39 +1000
committerGitHub <noreply@github.com>2020-07-08 11:26:39 +0200
commit82aabb657a8fbaf107e58214490fdd129db3ae6b (patch)
tree1b92a346f546c5e69c3abd879abdc7728adbc11c /cli/js/ops
parent862bc2ecae3d9c3f880201d2302ca869d911eb69 (diff)
feat: add --no-check option (#6456)
This commit adds a "--no-check" option to following subcommands: - "deno cache" - "deno info" - "deno run" - "deno test" The "--no-check" options allows to skip type checking step and instead directly transpiles TS sources to JS sources. This solution uses `ts.transpileModule()` API and is just an interim solution before implementing it fully in Rust.
Diffstat (limited to 'cli/js/ops')
-rw-r--r--cli/js/ops/errors.ts2
-rw-r--r--cli/js/ops/fs/seek.ts2
-rw-r--r--cli/js/ops/permissions.ts2
-rw-r--r--cli/js/ops/runtime_compiler.ts2
4 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/ops/errors.ts b/cli/js/ops/errors.ts
index c6c26b8ba..002ca699e 100644
--- a/cli/js/ops/errors.ts
+++ b/cli/js/ops/errors.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { DiagnosticItem } from "../diagnostics.ts";
+import type { DiagnosticItem } from "../diagnostics.ts";
import { sendSync } from "./dispatch_json.ts";
export function formatDiagnostics(items: DiagnosticItem[]): string {
diff --git a/cli/js/ops/fs/seek.ts b/cli/js/ops/fs/seek.ts
index 2e23e084b..8fd3964fd 100644
--- a/cli/js/ops/fs/seek.ts
+++ b/cli/js/ops/fs/seek.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "../dispatch_json.ts";
-import { SeekMode } from "../../io.ts";
+import type { SeekMode } from "../../io.ts";
export function seekSync(
rid: number,
diff --git a/cli/js/ops/permissions.ts b/cli/js/ops/permissions.ts
index dfe8c4834..74b9ba0f0 100644
--- a/cli/js/ops/permissions.ts
+++ b/cli/js/ops/permissions.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync } from "./dispatch_json.ts";
-import { PermissionState } from "../permissions.ts";
+import type { PermissionState } from "../permissions.ts";
interface PermissionRequest {
name: string;
diff --git a/cli/js/ops/runtime_compiler.ts b/cli/js/ops/runtime_compiler.ts
index 5a89983ee..671585118 100644
--- a/cli/js/ops/runtime_compiler.ts
+++ b/cli/js/ops/runtime_compiler.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendAsync } from "./dispatch_json.ts";
-import { DiagnosticItem } from "../diagnostics.ts";
+import type { DiagnosticItem } from "../diagnostics.ts";
interface CompileRequest {
rootName: string;