Remove tsconfig files - they are not part of build process (#3262)

This commit is contained in:
Ry Dahl 2019-11-04 18:13:28 -05:00 committed by GitHub
parent 0644f9c1a6
commit c04ff22afe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 62 deletions

View File

@ -2,7 +2,6 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"createDefaultProgram": true
},
"plugins": ["@typescript-eslint"],

View File

@ -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),
)

View File

@ -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();
}

View File

@ -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"]
}

View File

@ -1,5 +0,0 @@
{
"compilerOptions": {
"strict": true
}
}

View File

@ -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"
]
}