refactor: make JS executables included in the tsconfig for editor hints (#6861)

* refactor: make JS executables included in the tsconfig for editor hints

* oops
This commit is contained in:
Joshua Chen 2022-03-06 23:07:23 +08:00 committed by GitHub
parent a6e72192fa
commit 44d73f7230
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 94 additions and 64 deletions

View file

@ -13,8 +13,8 @@
},
"scripts": {
"create-docusaurus": "create-docusaurus",
"build": "tsc",
"watch": "tsc --watch"
"build": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch"
},
"bin": "bin/index.js",
"publishConfig": {

View file

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "es2020",
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib"
},
"include": ["src/"],
"exclude": ["templates/"]
}

View file

@ -1,12 +1,10 @@
// For editor typechecking; includes bin
{
"extends": "../../tsconfig.json",
"extends": "./tsconfig.build.json",
"compilerOptions": {
"module": "es2020",
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"rootDir": "src",
"outDir": "lib"
"noEmit": true,
"allowJs": true,
"rootDir": "."
},
"include": ["src/"],
"exclude": ["templates/"]
"include": ["src", "bin"]
}