From 8ed361c47e8a18695905066cf72d15a5137fec08 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 14 Sep 2021 03:13:29 -0500 Subject: [PATCH] fix: move tsconfig --- package.json | 2 +- src/cmake/cmake.ts | 1 + src/tsconfig.json => tsconfig.json | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) rename src/tsconfig.json => tsconfig.json (90%) diff --git a/package.json b/package.json index 472748f2..2641e419 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "prepare": "npm run build", "test.format": "prettier . --check", "test.lint": "eslint .", - "test.tsc": "tsc -p src/tsconfig.json --noEmit", "test": "run-p test.format test.lint test.tsc" + "test.tsc": "tsc --noEmit", }, "engines": { "node": ">=12.x" diff --git a/src/cmake/cmake.ts b/src/cmake/cmake.ts index e45582cc..f988f8b5 100644 --- a/src/cmake/cmake.ts +++ b/src/cmake/cmake.ts @@ -6,6 +6,7 @@ import semverLte from "semver/functions/lte" import semverCoerce from "semver/functions/coerce" import * as hasha from "hasha" import { tmpdir } from "os" +import { URL } from "url" interface PackageInfo { url: string diff --git a/src/tsconfig.json b/tsconfig.json similarity index 90% rename from src/tsconfig.json rename to tsconfig.json index b93df949..c4c78492 100644 --- a/src/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,6 @@ "inlineSources": true, "preserveSymlinks": true, "removeComments": false, - "jsx": "react", "lib": ["ES2018", "dom"], "target": "ES2018", "allowJs": true, @@ -25,7 +24,8 @@ "module": "commonjs", "moduleResolution": "node", "importHelpers": false, - "outDir": "../dist" + "outDir": "./dist" }, - "compileOnSave": false + "compileOnSave": false, + "include": ["./src"] }