mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
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:
parent
a6e72192fa
commit
44d73f7230
11 changed files with 94 additions and 64 deletions
|
@ -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": {
|
||||
|
|
12
packages/create-docusaurus/tsconfig.build.json
Normal file
12
packages/create-docusaurus/tsconfig.build.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "es2020",
|
||||
"incremental": true,
|
||||
"tsBuildInfoFile": "./lib/.tsbuildinfo",
|
||||
"rootDir": "src",
|
||||
"outDir": "lib"
|
||||
},
|
||||
"include": ["src/"],
|
||||
"exclude": ["templates/"]
|
||||
}
|
|
@ -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"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue