@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 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
@@ -4,7 +4,7 @@
4
4
  "extends": "./base.json",
5
5
  "compilerOptions": {
6
6
  "emitDeclarationOnly": false,
7
- "outDir": "dist",
7
+ "outDir": "${configDir}/dist",
8
8
  "noEmit": false
9
9
  },
10
10
  "include": [
package/node.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "display": "Node.js",
4
4
  "extends": "./base.json",
5
5
  "compilerOptions": {
6
- "outDir": "./dist",
6
+ "outDir": "${configDir}/dist",
7
7
  "noEmit": false,
8
8
  "lib": [
9
9
  "ES2022"
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
- {
2
- "name": "@eventuras/typescript-config",
3
- "version": "1.0.0",
4
- "description": "Shared TypeScript configurations for Eventuras projects",
5
- "homepage": "https://github.com/losol/eventuras/tree/main/libs/typescript-config#readme",
6
- "bugs": {
7
- "url": "https://github.com/losol/eventuras/issues"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/losol/eventuras.git",
12
- "directory": "libs/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
- }
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
+ }
@@ -10,7 +10,7 @@
10
10
  "types": ["react", "react-dom"],
11
11
  "skipLibCheck": true,
12
12
  "noEmit": false,
13
- "outDir": "dist"
13
+ "outDir": "${configDir}/dist"
14
14
  },
15
15
  "include": [
16
16
  "src/**/*"