From 0cdf1f451d0b3c67f2d7c0c2817f712eb6c87987 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 2 Oct 2018 12:32:02 -0400 Subject: Rename tsconfig.generated.json to tsconfig.declarations.json --- BUILD.gn | 3 ++- js/tsconfig.declarations.json | 20 ++++++++++++++++++++ js/tsconfig.generated.json | 20 -------------------- 3 files changed, 22 insertions(+), 21 deletions(-) create mode 100644 js/tsconfig.declarations.json delete mode 100644 js/tsconfig.generated.json diff --git a/BUILD.gn b/BUILD.gn index 5d53ae41f..a9953a91d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -102,6 +102,7 @@ ts_sources = [ "js/v8_source_maps.ts", "js/write_file.ts", "js/copy_file.ts", + "js/tsconfig.declarations.json", "tsconfig.json", # Listing package.json and yarn.lock as sources ensures the bundle is rebuilt @@ -254,7 +255,7 @@ run_node("gen_declarations") { args = [ "./node_modules/typescript/bin/tsc", "-p", - rebase_path("js/tsconfig.generated.json", root_build_dir), + rebase_path("js/tsconfig.declarations.json", root_build_dir), "--baseUrl", rebase_path(root_build_dir, root_build_dir), "--outFile", diff --git a/js/tsconfig.declarations.json b/js/tsconfig.declarations.json new file mode 100644 index 000000000..c4aec8ee0 --- /dev/null +++ b/js/tsconfig.declarations.json @@ -0,0 +1,20 @@ +{ + // This configuration file provides the tsc configuration for generating + // definitions for the runtime, which are then inlined via the `js/assets.ts` + // module into the bundle to be available for type checking at runtime + // See also gen_declarations in //BUILD.gn + "extends": "../tsconfig.json", + "compilerOptions": { + "declaration": true, + "emitDeclarationOnly": true, + "module": "amd", + "removeComments": false, + "stripInternal": true + }, + "files": [ + "../node_modules/typescript/lib/lib.esnext.d.ts", + "./compiler.ts", + "./deno.ts", + "./globals.ts" + ] +} diff --git a/js/tsconfig.generated.json b/js/tsconfig.generated.json deleted file mode 100644 index c4aec8ee0..000000000 --- a/js/tsconfig.generated.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - // This configuration file provides the tsc configuration for generating - // definitions for the runtime, which are then inlined via the `js/assets.ts` - // module into the bundle to be available for type checking at runtime - // See also gen_declarations in //BUILD.gn - "extends": "../tsconfig.json", - "compilerOptions": { - "declaration": true, - "emitDeclarationOnly": true, - "module": "amd", - "removeComments": false, - "stripInternal": true - }, - "files": [ - "../node_modules/typescript/lib/lib.esnext.d.ts", - "./compiler.ts", - "./deno.ts", - "./globals.ts" - ] -} -- cgit v1.2.3