@tofrankie/tsconfig 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +7 -7
- package/package.json +10 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
   
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A shared [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) `tsconfig.json` presets.
|
|
6
6
|
|
|
7
7
|
> [!IMPORTANT]
|
|
8
|
-
>
|
|
8
|
+
> Before 1.0.0, releases may include breaking changes. Read the [CHANGELOG](CHANGELOG.md) before upgrading.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Quick Start
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
$ pnpm add typescript @tofrankie/tsconfig -D
|
|
@@ -15,16 +15,16 @@ $ pnpm add typescript @tofrankie/tsconfig -D
|
|
|
15
15
|
|
|
16
16
|
Create a `tsconfig.json` in your project root:
|
|
17
17
|
|
|
18
|
-
```
|
|
18
|
+
```jsonc
|
|
19
19
|
{
|
|
20
|
-
"extends": "@tofrankie/tsconfig/react.vite.json"
|
|
21
|
-
//
|
|
20
|
+
"extends": "@tofrankie/tsconfig/react.vite.json",
|
|
21
|
+
// add compilerOptions, include, etc. as needed
|
|
22
22
|
}
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Presets
|
|
26
26
|
|
|
27
|
-
Use `@tofrankie/tsconfig/<filename>` in `extends`.
|
|
27
|
+
Use `@tofrankie/tsconfig/<filename>` in `extends`. When **Extra dependencies** is not `-`, add those packages to your project's `devDependencies`.
|
|
28
28
|
|
|
29
29
|
| Preset | Purpose (how to choose) | Extra dependencies |
|
|
30
30
|
| ---------------------- | -------------------------------------------------------- | ----------------------- |
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tofrankie/tsconfig",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.0.5",
|
|
5
|
+
"description": "A shared tsconfig configuration",
|
|
6
6
|
"author": "Frankie <1426203851@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/tofrankie/config/tree/main/packages/tsconfig",
|
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
"bugs": "https://github.com/tofrankie/config/issues",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"tsconfig",
|
|
17
|
+
"typescript",
|
|
18
|
+
"typescript-config",
|
|
19
|
+
"node",
|
|
20
|
+
"react",
|
|
21
|
+
"tsdown",
|
|
22
|
+
"vite",
|
|
23
|
+
"vitest",
|
|
24
|
+
"vue",
|
|
17
25
|
"tofrankie"
|
|
18
26
|
],
|
|
19
27
|
"files": [
|