@vllnt/typescript 2.0.0-canary.786de03 → 2.0.0-canary.f305c96

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 CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Shared TypeScript configurations for Node.js, libraries, React, and Next.js. Version 2 targets the native TypeScript 7 compiler while retaining a tested TypeScript 6 migration path.
4
4
 
5
+ Use these independently in any project; no vllnt monorepo or runtime dependency
6
+ is required. Extend a preset, then supply project-specific paths and ambient types.
7
+
5
8
  ## Install
6
9
 
7
10
  For TypeScript 7 projects:
@@ -149,6 +152,21 @@ The checks compile every preset with TypeScript 6 and 7, verify declaration emit
149
152
  - **Minor:** additive presets or backward-compatible options.
150
153
  - **Patch:** fixes, documentation, tests, or CI changes without consumer-visible behavior changes.
151
154
 
155
+ ## Documentation and support
156
+
157
+ - [LLM index](llms.txt) · [Changelog](CHANGELOG.md)
158
+ - [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/vllnt/typescript/issues)
159
+ - [Security policy and private reporting](SECURITY.md)
160
+
161
+ npm `latest` is stable `2.0.0` at this audit. `@canary` selects moving prereleases;
162
+ pin and test them before adoption. The compatibility matrix above describes
163
+ this version's tested integrations, not a requirement to use every framework.
164
+
165
+ ## Author
166
+
167
+ Built by [bntvllnt](https://github.com/bntvllnt) · [bntvllnt.com](https://bntvllnt.com).
168
+ Part of [@vllnt](https://github.com/vllnt). [Sponsor the work](https://github.com/sponsors/bntvllnt).
169
+
152
170
  ## License
153
171
 
154
- MIT
172
+ [MIT](LICENSE)
package/llms.txt CHANGED
@@ -6,9 +6,12 @@
6
6
  - Repository: https://github.com/vllnt/typescript
7
7
  - Documentation: https://github.com/vllnt/typescript#readme
8
8
  - Changelog: https://github.com/vllnt/typescript/blob/main/CHANGELOG.md
9
- - Full reference: https://github.com/vllnt/typescript/blob/main/llms-full.txt
10
9
  - License: MIT
11
10
 
11
+ Install independently in any project; no vllnt monorepo is required. npm latest
12
+ is stable 2.0.0 at this audit; canary is a moving prerelease channel. Pin and test
13
+ prereleases. See [Contributing](CONTRIBUTING.md) and the [Security policy](SECURITY.md).
14
+
12
15
  ## Compatibility
13
16
 
14
17
  - Node.js consumers: 22 or newer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vllnt/typescript",
3
- "version": "2.0.0-canary.786de03",
3
+ "version": "2.0.0-canary.f305c96",
4
4
  "description": "Shared TypeScript configurations for vllnt projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -36,8 +36,7 @@
36
36
  "node-library.json",
37
37
  "react.json",
38
38
  "CHANGELOG.md",
39
- "llms.txt",
40
- "llms-full.txt"
39
+ "llms.txt"
41
40
  ],
42
41
  "exports": {
43
42
  "./base.json": "./base.json",
package/llms-full.txt DELETED
@@ -1,70 +0,0 @@
1
- # @vllnt/typescript full reference
2
-
3
- `@vllnt/typescript` publishes strict JSON compiler presets for Node.js 22+, npm libraries, React, and Next.js. Version 2 supports TypeScript `>=6.0.2 <8` and is validated with the TypeScript 6 compatibility package and native TypeScript 7.0.2.
4
-
5
- ## Installation
6
-
7
- TypeScript 7-only projects install:
8
-
9
- ```sh
10
- pnpm add --save-dev @vllnt/typescript@^2 typescript@^7
11
- ```
12
-
13
- Tools that still import the legacy compiler API use the official side-by-side arrangement:
14
-
15
- ```json
16
- {
17
- "devDependencies": {
18
- "@typescript/native": "npm:typescript@^7.0.2",
19
- "@vllnt/typescript": "^2.0.0",
20
- "typescript": "npm:@typescript/typescript6@^6.0.2"
21
- }
22
- }
23
- ```
24
-
25
- This exposes native TypeScript 7 as `tsc`, TypeScript 6 as `tsc6`, and TypeScript 6's JavaScript API through the `typescript` package name.
26
-
27
- ## Presets
28
-
29
- | Preset | Use case | Module resolution | Target | Emit |
30
- | --- | --- | --- | --- | --- |
31
- | `base.json` | Shared foundation | Inherited | Inherited | Inherited |
32
- | `nodejs.json` | Node.js applications | NodeNext | ES2024 | JavaScript, declarations, maps |
33
- | `node-library.json` | Publishable npm packages | NodeNext | ES2024 | JavaScript, declarations and maps |
34
- | `react.json` | Bundled React applications | Bundler | ES2022 | JavaScript, declarations, maps |
35
- | `nextjs.json` | Next.js applications | Bundler | ES2022 | None |
36
-
37
- ## Shared compiler contract
38
-
39
- All specialized presets inherit:
40
-
41
- - `strict: true`
42
- - `isolatedModules: true`
43
- - `noUncheckedIndexedAccess: true`
44
- - `noUncheckedSideEffectImports: true`
45
- - `forceConsistentCasingInFileNames: true`
46
- - `skipLibCheck: true`
47
- - `esModuleInterop: true`
48
- - `resolveJsonModule: true`
49
- - `stableTypeOrdering: true`
50
- - `libReplacement: false`
51
- - `types: []`
52
-
53
- Ambient types are opt-in. Consumers should add entries such as `node`, `react`, or `vitest/globals` to `types`. Emitting projects must set `rootDir` explicitly.
54
-
55
- ## Migration from version 1
56
-
57
- Version 2 drops TypeScript 5. Consumers must remove `baseUrl`, avoid legacy module formats and resolution, use explicit `rootDir` and `types`, and run Next.js 16.3 or newer for native TypeScript 7 builds. Keep the TypeScript 6 compatibility API installed while tools such as `typescript-eslint` need it.
58
-
59
- ## Package validation
60
-
61
- The repository compiles every preset with TypeScript 6 and 7, verifies strictness and declaration emit, installs the generated tarball into an isolated consumer, enforces its exact file surface, and builds real React/Vite and Next.js fixtures. The package has no runtime dependencies; TypeScript is a peer dependency.
62
-
63
- ## Resources
64
-
65
- - Main documentation: `README.md`
66
- - Release history: `CHANGELOG.md`
67
- - Contributions: `CONTRIBUTING.md`
68
- - Security policy: `SECURITY.md`
69
- - Repository: https://github.com/vllnt/typescript
70
- - License: MIT