@adaliszk/typescript 中文文档教程
带有默认配置的 Typescript 元包
Provides
@adaliszk/eslint-config-typescript
typescript
,tslib
, and@types/node
ts-node
Usage
- Install the package
yarn add -D @adaliszk/typescript
- Add an
tsconfig.json
with:
{
"extends": "@adaliszk/typescript",
"compileConfig": {
"baseUrl": "./source",
"outDir": "./temp"
},
"include": [
"./source/**/*"
]
}
Versioning
由于这是一个元包,版本控制反映了它提供的主要包,在本例中为 typescript
。 但是,只有 Major 和 Minor 版本保持同步。 补丁用于碰撞 元包。
Meta-package for Typescript with a default configuration
Provides
@adaliszk/eslint-config-typescript
typescript
,tslib
, and@types/node
ts-node
Usage
- Install the package
yarn add -D @adaliszk/typescript
- Add an
tsconfig.json
with:
{
"extends": "@adaliszk/typescript",
"compileConfig": {
"baseUrl": "./source",
"outDir": "./temp"
},
"include": [
"./source/**/*"
]
}
Versioning
Since this is a meta-package, the versioning reflect its main provided package, in this case typescript
. However, only the Major and Minor versions are kept in sync. The Patch is used to bump the meta-package.