@eventuras/typescript-config 1.0.0 → 1.1.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 +30 -0
- package/library.json +1 -1
- package/node.json +1 -1
- package/package.json +26 -26
- package/react-library.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# `@eventuras/typescript-config`
|
|
2
|
+
|
|
3
|
+
Shared TypeScript configurations used across Eventuras projects.
|
|
4
|
+
|
|
5
|
+
## Presets
|
|
6
|
+
|
|
7
|
+
| File | Use for |
|
|
8
|
+
| --------------------- | ---------------------------------------------------------- |
|
|
9
|
+
| `base.json` | Default preset — strict, modern Node/ESM baseline. |
|
|
10
|
+
| `library.json` | Libraries that emit declarations and JS. |
|
|
11
|
+
| `react-library.json` | React component libraries (JSX, DOM lib). |
|
|
12
|
+
| `nextjs.json` | Next.js apps. |
|
|
13
|
+
| `node.json` | Node-only apps and scripts. |
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Install:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm install -D @eventuras/typescript-config
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Extend from your `tsconfig.json`:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"extends": "@eventuras/typescript-config/base.json",
|
|
28
|
+
"include": ["src"]
|
|
29
|
+
}
|
|
30
|
+
```
|
package/library.json
CHANGED
package/node.json
CHANGED
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@eventuras/typescript-config",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Shared TypeScript configurations for Eventuras projects",
|
|
5
|
-
"homepage": "https://github.com/losol/
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/losol/
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/losol/
|
|
12
|
-
"directory": "
|
|
13
|
-
},
|
|
14
|
-
"license": "MIT",
|
|
15
|
-
"files": [
|
|
16
|
-
"base.json",
|
|
17
|
-
"library.json",
|
|
18
|
-
"nextjs.json",
|
|
19
|
-
"node.json",
|
|
20
|
-
"react-library.json",
|
|
21
|
-
"README.md"
|
|
22
|
-
],
|
|
23
|
-
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@eventuras/typescript-config",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Shared TypeScript configurations for Eventuras projects",
|
|
5
|
+
"homepage": "https://github.com/losol/origo/tree/main/config/typescript-config#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/losol/origo/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/losol/origo.git",
|
|
12
|
+
"directory": "config/typescript-config"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"files": [
|
|
16
|
+
"base.json",
|
|
17
|
+
"library.json",
|
|
18
|
+
"nextjs.json",
|
|
19
|
+
"node.json",
|
|
20
|
+
"react-library.json",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
}
|
|
26
|
+
}
|