Skip to content

Commit

Permalink
feat: improve tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Feb 20, 2023
1 parent 279b155 commit 21d8ff6
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 68 deletions.
8 changes: 1 addition & 7 deletions packages/core/src/prepare.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import os from 'os'
import path from 'path'
import semver from 'semver'
import {
DEFAULT_HOME_PATH,
LOWEST_NODE_VERSION,
MAGIC_HOME_ENV, getNpmLatestVersion,
printMagicLogo,
useLogger,
} from '@vbs/magic-cli-utils'
import { DEFAULT_HOME_PATH, LOWEST_NODE_VERSION, MAGIC_HOME_ENV, getNpmLatestVersion, printMagicLogo, useLogger } from '@vbs/magic-cli-utils'
import rootCheck from 'root-check'
import fse from 'fs-extra'
import dotenv from 'dotenv'
Expand Down
15 changes: 0 additions & 15 deletions packages/core/tsconfig.json

This file was deleted.

15 changes: 0 additions & 15 deletions packages/init/tsconfig.json

This file was deleted.

16 changes: 0 additions & 16 deletions packages/models/tsconfig.json

This file was deleted.

15 changes: 0 additions & 15 deletions packages/templates/tsconfig.json

This file was deleted.

25 changes: 25 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es2017",
"module": "esnext",
"lib": ["esnext"],
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"strictNullChecks": true,
"resolveJsonModule": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"paths": {
"@vbs/magic-cli-core": ["./packages/core/src/index.ts"],
"@vbs/magic-cli-init": ["./packages/init/src/index.ts"],
"@vbs/magic-cli-models": ["./packages/models/src/index.ts"],
"@vbs/magic-cli-templates": ["./packages/templates/node/index.ts"],
"@vbs/magic-cli-utils": ["./packages/utils/src/index.ts"],
}
},
"exclude": [
"**/dist/**",
"**/node_modules/**",
]
}

0 comments on commit 21d8ff6

Please sign in to comment.