diff --git a/.gitignore b/.gitignore index 66de17117..74149b57b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # Dependency directories node_modules/ # Build output for tests -lib-test/ +build/ # Java build files .gradle/ *.class diff --git a/.vscode/settings.json b/.vscode/settings.json index 09db38fe9..629fb7b54 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,8 +5,8 @@ "**/.DS_Store": true, // transpiled JavaScript + "build": true, "lib": true, - "lib-test": true, }, // Installing a new Node package often triggers VS Code's git limit warnings as there is typically // an intermediate stage where many files are modified. This setting suppresses these warnings. diff --git a/build.mjs b/build.mjs index 859fcfeb0..c3dd263aa 100644 --- a/build.mjs +++ b/build.mjs @@ -5,7 +5,6 @@ import { fileURLToPath } from "node:url"; import * as esbuild from "esbuild"; import { globSync } from "glob"; import { copy } from "esbuild-plugin-copy"; -import { typecheckPlugin } from "@jgoz/esbuild-plugin-typecheck"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); @@ -39,7 +38,7 @@ const context = await esbuild.context({ format: "cjs", outdir: OUT_DIR, platform: "node", - plugins: [typecheckPlugin(), copyDefaults, onEndPlugin], + plugins: [copyDefaults, onEndPlugin], }); await context.rebuild(); diff --git a/eslint.config.mjs b/eslint.config.mjs index 6ecda8b66..a27a005fe 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -26,8 +26,8 @@ export default [ { ignores: [ "**/webpack.config.js", + "build/**/*", "lib/**/*", - "lib-test/**/*", "src/testdata/**/*", "tests/**/*", "build.mjs", diff --git a/lib/analyze-action-post.js b/lib/analyze-action-post.js index b1aa8379f..be8b01046 100644 --- a/lib/analyze-action-post.js +++ b/lib/analyze-action-post.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/analyze-action.js b/lib/analyze-action.js index addb8a390..5431a0a85 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/autobuild-action.js b/lib/autobuild-action.js index 98797465c..6f5ab69fc 100644 --- a/lib/autobuild-action.js +++ b/lib/autobuild-action.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/init-action-post.js b/lib/init-action-post.js index 75cef457a..3a1859f73 100644 --- a/lib/init-action-post.js +++ b/lib/init-action-post.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/init-action.js b/lib/init-action.js index a9c1c51fb..49e2b4ae6 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/resolve-environment-action.js b/lib/resolve-environment-action.js index 4d23f70af..1c841f724 100644 --- a/lib/resolve-environment-action.js +++ b/lib/resolve-environment-action.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/start-proxy-action-post.js b/lib/start-proxy-action-post.js index e206f68c4..e2fad828c 100644 --- a/lib/start-proxy-action-post.js +++ b/lib/start-proxy-action-post.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/start-proxy-action.js b/lib/start-proxy-action.js index 9dcdf8ddb..7f9aafcbd 100644 --- a/lib/start-proxy-action.js +++ b/lib/start-proxy-action.js @@ -54902,18 +54902,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -54959,7 +54961,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/upload-sarif-action-post.js b/lib/upload-sarif-action-post.js index dc085db62..cab4ab1a1 100644 --- a/lib/upload-sarif-action-post.js +++ b/lib/upload-sarif-action-post.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/lib/upload-sarif-action.js b/lib/upload-sarif-action.js index ed6f62dab..362a9f1b8 100644 --- a/lib/upload-sarif-action.js +++ b/lib/upload-sarif-action.js @@ -36374,18 +36374,20 @@ var require_package = __commonJS({ private: true, description: "CodeQL action", scripts: { - build: "node build.mjs", - test: "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + _build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + build: "npm run transpile && node build.mjs", lint: "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + removeNPMAbsolutePaths: "removeNPMAbsolutePaths . --force", + test: "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + transpile: "tsc --build --verbose" }, ava: { typescript: { rewritePaths: { - "src/": "lib-test/" + "src/": "build/" }, compile: false } @@ -36431,7 +36433,6 @@ var require_package = __commonJS({ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/package-lock.json b/package-lock.json index 0272f9b87..6419f7335 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,7 +48,6 @@ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", @@ -1517,23 +1516,6 @@ "node": ">=18.0.0" } }, - "node_modules/@jgoz/esbuild-plugin-typecheck": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@jgoz/esbuild-plugin-typecheck/-/esbuild-plugin-typecheck-4.0.3.tgz", - "integrity": "sha512-tJzjV3pALNuEQ3+w18jt58Y5MogN+Hm2vmEUR2EcLr9+5PR/X0JLAAg0+6AOw168GRZgKzWKK4zdzY9uMT708Q==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@jgoz/esbuild-plugin-livereload": ">=2.1.3", - "esbuild": "0.17.x || 0.18.x || 0.19.x || 0.20.x || 0.21.x || 0.22.x || 0.23.x || 0.24.x || 0.25.x", - "typescript": ">= 3.5" - }, - "peerDependenciesMeta": { - "@jgoz/esbuild-plugin-livereload": { - "optional": true - } - } - }, "node_modules/@mapbox/node-pre-gyp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-2.0.0.tgz", diff --git a/package.json b/package.json index f67370a88..f51f319cd 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,20 @@ "private": true, "description": "CodeQL action", "scripts": { - "build": "node build.mjs", - "test": "tsc --project tsconfig.test.json && ava src/**.test.ts --serial --verbose", - "test-debug": "ava src/**.test.ts --serial --verbose --timeout=20m", + "_build_comment": "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'", + "build": "npm run transpile && node build.mjs", "lint": "eslint --report-unused-disable-directives --max-warnings=0 .", - "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", "lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif", - "removeNPMAbsolutePaths": "removeNPMAbsolutePaths . --force" + "lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix", + "removeNPMAbsolutePaths": "removeNPMAbsolutePaths . --force", + "test": "npm run transpile && ava src/**.test.ts --serial --verbose", + "test-debug": "npm run test -- --timeout=20m", + "transpile": "tsc --build --verbose" }, "ava": { "typescript": { "rewritePaths": { - "src/": "lib-test/" + "src/": "build/" }, "compile": false } @@ -61,7 +63,6 @@ "@eslint/compat": "^1.3.2", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.33.0", - "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@microsoft/eslint-formatter-sarif": "^3.1.0", "@types/archiver": "^6.0.3", "@types/console-log-level": "^1.4.5", diff --git a/tsconfig.json b/tsconfig.json index e0fe4622f..d787090bc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,9 +3,10 @@ /* Basic Options */ "lib": ["ES2021"], "target": "ES2021", - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "noEmit": true, /* Do not emit outputs. */ - "sourceMap": true, /* Generates corresponding '.map' file. */ + "module": "commonjs", + "outDir": "./build", + "rootDir": "./src", + "sourceMap": true, /* Strict Type-Checking Options */ "strict": true, /* Enable all strict type-checking options. */ diff --git a/tsconfig.test.json b/tsconfig.test.json deleted file mode 100644 index 3ea8b3136..000000000 --- a/tsconfig.test.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "./tsconfig.json", - "compilerOptions": { - "noEmit": false, - "outDir": "./lib-test", - "rootDir": "./src", - }, -}