From 0d28062c7bf410773a47314915ccf16476135250 Mon Sep 17 00:00:00 2001 From: shreve Date: Wed, 4 Dec 2024 04:45:42 -0800 Subject: [PATCH] fix: include code.js in tsconfig - use suggested inline ignore comment - update copyAssets to copy openapi spec to correct directory --- src/js/code.js | 3 ++- tools/copyAssets.ts | 2 +- tsconfig.json | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/code.js b/src/js/code.js index 2da64755..327ba2e2 100644 --- a/src/js/code.js +++ b/src/js/code.js @@ -1,4 +1,5 @@ -function update(call) {// eslint-disable-line +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function update(call) { $('#interactive').val(call); interactive_call(); } diff --git a/tools/copyAssets.ts b/tools/copyAssets.ts index 4b15bbca..10d545fa 100644 --- a/tools/copyAssets.ts +++ b/tools/copyAssets.ts @@ -6,4 +6,4 @@ shell.mkdir('-p', 'dist'); shell.cp('-R', 'src/css', 'dist/src'); shell.cp('-R', 'src/public', 'dist/src'); shell.cp('-R', 'src/views', 'dist/src'); -shell.cp('-R', 'src/swagger/dist', 'dist/src/swagger'); +shell.cp('-R', 'src/swagger/api-spec', 'dist/src/swagger'); diff --git a/tsconfig.json b/tsconfig.json index 537129dc..a2bf7590 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -91,6 +91,7 @@ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, "include": [ + "src/js/**/*.js", "src/**/*.ts", "tools/**/*.ts", "jest.config.integration.ts",