diff options
-rw-r--r-- | .eslintrc.json | 1 | ||||
-rw-r--r-- | cli/flags.rs | 6 | ||||
-rw-r--r-- | std/http/file_server_test.ts | 12 | ||||
-rw-r--r-- | std/tsconfig.json | 15 | ||||
-rw-r--r-- | std/tsconfig.test.json | 5 | ||||
-rw-r--r-- | tsconfig.json | 29 |
6 files changed, 6 insertions, 62 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index bfe91b2d1..a58eb0df9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,6 @@ "root": true, "parser": "@typescript-eslint/parser", "parserOptions": { - "project": "./tsconfig.json", "createDefaultProgram": true }, "plugins": ["@typescript-eslint"], diff --git a/cli/flags.rs b/cli/flags.rs index c6bb0a20f..b9350a22c 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -38,11 +38,7 @@ pub struct DenoFlags { pub log_level: Option<Level>, pub version: bool, pub reload: bool, - /// When the `--config`/`-c` flag is used to pass the name, this will be set - /// the path passed on the command line, otherwise `None`. pub config_path: Option<String>, - /// When the `--importmap` flag is used to pass the name, this will be set - /// the path passed on the command line, otherwise `None`. pub import_map_path: Option<String>, pub allow_read: bool, pub read_whitelist: Vec<String>, @@ -192,7 +188,7 @@ To get help on the another subcommands (run in this case): .short("c") .long("config") .value_name("FILE") - .help("Load compiler configuration file") + .help("Load tsconfig.json configuration file") .takes_value(true) .global(true), ) diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index 16540bffa..77467b8c8 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -33,16 +33,16 @@ function killFileServer(): void { test(async function serveFile(): Promise<void> { await startFileServer(); try { - const res = await fetch("http://localhost:4500/tsconfig.json"); + const res = await fetch("http://localhost:4500/README.md"); assert(res.headers.has("access-control-allow-origin")); assert(res.headers.has("access-control-allow-headers")); assertEquals( res.headers.get("content-type"), - "application/json; charset=utf-8" + "text/markdown; charset=utf-8" ); const downloadedFile = await res.text(); const localFile = new TextDecoder().decode( - await Deno.readFile("./tsconfig.json") + await Deno.readFile("README.md") ); assertEquals(downloadedFile, localFile); } finally { @@ -57,7 +57,7 @@ test(async function serveDirectory(): Promise<void> { assert(res.headers.has("access-control-allow-origin")); assert(res.headers.has("access-control-allow-headers")); const page = await res.text(); - assert(page.includes("tsconfig.json")); + assert(page.includes("README.md")); // `Deno.FileInfo` is not completely compatible with Windows yet // TODO: `mode` should work correctly in the future. @@ -66,9 +66,7 @@ test(async function serveDirectory(): Promise<void> { assert(/<td class="mode">\([a-zA-Z-]{10}\)<\/td>/.test(page)); Deno.build.os === "win" && assert(/<td class="mode">\(unknown mode\)<\/td>/.test(page)); - assert( - page.includes(`<td><a href="/tsconfig.json">tsconfig.json</a></td>`) - ); + assert(page.includes(`<td><a href="/README.md">README.md</a></td>`)); } finally { killFileServer(); } diff --git a/std/tsconfig.json b/std/tsconfig.json deleted file mode 100644 index 732e8322c..000000000 --- a/std/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "./tsconfig.test.json", - "compilerOptions": { - "allowJs": true, - "baseUrl": ".", - "module": "esnext", - "moduleResolution": "node", - "noEmit": true, - "pretty": true, - "resolveJsonModule": true, - "target": "esnext", - "lib": ["esnext"] - }, - "include": ["./**/*.ts"] -} diff --git a/std/tsconfig.test.json b/std/tsconfig.test.json deleted file mode 100644 index aee0ec940..000000000 --- a/std/tsconfig.test.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "compilerOptions": { - "strict": true - } -} diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 6c9e7344d..000000000 --- a/tsconfig.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "compilerOptions": { - "allowJs": true, - "allowUnreachableCode": false, - "baseUrl": ".", - "checkJs": true, - "lib": ["esnext"], - "module": "esnext", - "moduleResolution": "node", - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "noUnusedLocals": true, - "preserveConstEnums": true, - "pretty": true, - "removeComments": true, - "resolveJsonModule": true, - "sourceMap": true, - "strict": true, - "target": "esnext", - "jsx": "react", - "types": [] - }, - "files": [ - "cli/js/lib.web_assembly.d.ts", - "cli/js/lib.deno_runtime.d.ts", - "cli/js/main.ts", - "cli/js/compiler.ts" - ] -} |