@abelspithost/tsconfig-node 0.0.0
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/README.md +41 -0
- package/package.json +23 -0
- package/tsconfig.json +16 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @abelspithost/tsconfig-node
|
|
2
|
+
|
|
3
|
+
TypeScript configuration preset for Node.js projects. Extends [`@abelspithost/tsconfig`](../base).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -D @abelspithost/tsconfig-node @types/node typescript
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Peer dependencies:
|
|
12
|
+
|
|
13
|
+
- `typescript` >= 5.0.0
|
|
14
|
+
- `@types/node` >= 20.0.0
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```jsonc
|
|
19
|
+
// tsconfig.json
|
|
20
|
+
{
|
|
21
|
+
"extends": "@abelspithost/tsconfig-node"
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What's included
|
|
26
|
+
|
|
27
|
+
Inherits all settings from the [base config](../base) and adds:
|
|
28
|
+
|
|
29
|
+
### Language and Environment
|
|
30
|
+
|
|
31
|
+
- `target` — set to `esnext`, compiles to the latest ECMAScript standard
|
|
32
|
+
- `lib` — set to `["ESNext"]`
|
|
33
|
+
|
|
34
|
+
### Modules
|
|
35
|
+
|
|
36
|
+
- `module` — set to `nodenext`, enables Node.js native ESM module resolution
|
|
37
|
+
- `moduleResolution` — set to `nodenext`, resolves modules using Node.js ESM rules (including `exports` in `package.json`)
|
|
38
|
+
|
|
39
|
+
### Types
|
|
40
|
+
|
|
41
|
+
- `types` — set to `["node"]`, includes Node.js type definitions globally
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@abelspithost/tsconfig-node",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "TypeScript configuration for Node.js",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "Abel Spithost",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/aspithost/tsconfig.git",
|
|
10
|
+
"directory": "packages/node"
|
|
11
|
+
},
|
|
12
|
+
"exports": "./tsconfig.json",
|
|
13
|
+
"files": [
|
|
14
|
+
"tsconfig.json"
|
|
15
|
+
],
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@abelspithost/tsconfig": "0.0.0"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@types/node": ">=20.0.0",
|
|
21
|
+
"typescript": ">=5.0.0"
|
|
22
|
+
}
|
|
23
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "@abelspithost/tsconfig",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
/* Language and Environment */
|
|
6
|
+
"target": "esnext",
|
|
7
|
+
"lib": ["ESNext"],
|
|
8
|
+
|
|
9
|
+
/* Modules */
|
|
10
|
+
"module": "nodenext",
|
|
11
|
+
"moduleResolution": "nodenext",
|
|
12
|
+
|
|
13
|
+
/* Types */
|
|
14
|
+
"types": ["node"]
|
|
15
|
+
}
|
|
16
|
+
}
|