@tractorbeam/typescript-config 0.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,29 @@
1
+ # @tractorbeam/typescript-config
2
+
3
+ Shared `tsconfig` presets for Tractorbeam projects.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add -D @tractorbeam/typescript-config
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ In your project’s `tsconfig.json`:
14
+
15
+ ```json
16
+ {
17
+ "extends": "@tractorbeam/typescript-config/node22.json"
18
+ }
19
+ ```
20
+
21
+ ## Presets
22
+
23
+ - `@tractorbeam/typescript-config/node.json`
24
+ - `@tractorbeam/typescript-config/node22.json`
25
+ - `@tractorbeam/typescript-config/strictest.json`
26
+ - `@tractorbeam/typescript-config/react.json`
27
+ - `@tractorbeam/typescript-config/next.json`
28
+ - `@tractorbeam/typescript-config/tanstack-start.json`
29
+ - `@tractorbeam/typescript-config/vite.json`
package/next.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "@tsconfig/bases/next"
4
+ }
package/node.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "@tsconfig/bases/node-lts"
4
+ }
package/node22.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "@tsconfig/bases/node22"
4
+ }
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@tractorbeam/typescript-config",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "exports": {
6
+ "./node": "./node.json",
7
+ "./node22": "./node22.json",
8
+ "./strictest": "./strictest.json",
9
+ "./react": "./react.json",
10
+ "./next": "./next.json",
11
+ "./tanstack-start": "./tanstack-start.json",
12
+ "./vite": "./vite.json"
13
+ },
14
+ "files": [
15
+ "*.json",
16
+ "package.json",
17
+ "README.md"
18
+ ],
19
+ "dependencies": {
20
+ "@tsconfig/bases": "^1.0.0"
21
+ }
22
+ }
package/react.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "@tsconfig/bases/vite-react"
4
+ }
package/strictest.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "@tsconfig/bases/strictest"
4
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "jsx": "react-jsx",
5
+ "moduleResolution": "Bundler",
6
+ "module": "ESNext",
7
+ "target": "ES2022",
8
+ "skipLibCheck": true,
9
+ "strictNullChecks": true
10
+ }
11
+ }
package/vite.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "ES2020",
5
+ "module": "ESNext",
6
+ "moduleResolution": "Bundler",
7
+ "isolatedModules": true,
8
+ "types": ["vite/client"],
9
+ "skipLibCheck": true
10
+ }
11
+ }