Skip to content

Commit 21d8ff6

Browse files
committed
feat: improve tsconfig
1 parent 279b155 commit 21d8ff6

6 files changed

Lines changed: 26 additions & 68 deletions

File tree

‎packages/core/src/prepare.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import os from 'os'
22
import path from 'path'
33
import semver from 'semver'
4-
import {
5-
DEFAULT_HOME_PATH,
6-
LOWEST_NODE_VERSION,
7-
MAGIC_HOME_ENV, getNpmLatestVersion,
8-
printMagicLogo,
9-
useLogger,
10-
} from '@vbs/magic-cli-utils'
4+
import { DEFAULT_HOME_PATH, LOWEST_NODE_VERSION, MAGIC_HOME_ENV, getNpmLatestVersion, printMagicLogo, useLogger } from '@vbs/magic-cli-utils'
115
import rootCheck from 'root-check'
126
import fse from 'fs-extra'
137
import dotenv from 'dotenv'

‎packages/core/tsconfig.json‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎packages/init/tsconfig.json‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎packages/models/tsconfig.json‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎packages/templates/tsconfig.json‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎tsconfig.json‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2017",
4+
"module": "esnext",
5+
"lib": ["esnext"],
6+
"moduleResolution": "node",
7+
"esModuleInterop": true,
8+
"strict": true,
9+
"strictNullChecks": true,
10+
"resolveJsonModule": true,
11+
"skipDefaultLibCheck": true,
12+
"skipLibCheck": true,
13+
"paths": {
14+
"@vbs/magic-cli-core": ["./packages/core/src/index.ts"],
15+
"@vbs/magic-cli-init": ["./packages/init/src/index.ts"],
16+
"@vbs/magic-cli-models": ["./packages/models/src/index.ts"],
17+
"@vbs/magic-cli-templates": ["./packages/templates/node/index.ts"],
18+
"@vbs/magic-cli-utils": ["./packages/utils/src/index.ts"],
19+
}
20+
},
21+
"exclude": [
22+
"**/dist/**",
23+
"**/node_modules/**",
24+
]
25+
}

0 commit comments

Comments
 (0)