@reasonabletech/config-typescript 0.1.0 → 0.1.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # @reasonabletech/config-typescript
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - - Automated release.
8
+
9
+ ## 0.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`cedb66e`](https://github.com/ReasonableTech/core-utils/commit/cedb66e321e1f3cf695822467560c6f6b9f5d84c) Thanks [@WillieCubed](https://github.com/WillieCubed)! - De-duplicate TypeScript preset packaging by making `lib/*.json` the only canonical source and removing redundant top-level wrapper files. Documentation and examples were also updated to use valid `.json` preset paths and the currently supported preset surface.
14
+
15
+ Standardize release verification scripts across `config-typescript` and `config-tsup` with a shared naming contract (`verify:package`, `verify:consumer`, `verify:release`) and switch root release verification orchestration to Turbo.
16
+
17
+ ## [Unreleased]
18
+
19
+ Initial release preparation. See [README.md](./README.md) for usage.
20
+
21
+ ---
22
+
23
+ _Changelog entries are automatically generated from [changesets](https://github.com/changesets/changesets) on release._
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reasonabletech/config-typescript",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Shared TypeScript configuration presets",
5
5
  "keywords": [
6
6
  "reasonabletech",
@@ -15,7 +15,8 @@
15
15
  "files": [
16
16
  "lib/**/*.json",
17
17
  "docs/**/*",
18
- "examples/**/*"
18
+ "README.md",
19
+ "CHANGELOG.md"
19
20
  ],
20
21
  "exports": {
21
22
  "./base.json": "./lib/base.json",
@@ -1,60 +0,0 @@
1
- # @reasonabletech/config-typescript Examples
2
-
3
- These examples show practical `tsconfig` setups using exported `.json` presets.
4
-
5
- ## Files In This Directory
6
-
7
- - [base-config.ts](./base-config.ts): baseline TypeScript project examples
8
- - [react-app-config.ts](./react-app-config.ts): React and Next.js app-oriented examples
9
-
10
- ## Installation
11
-
12
- ```bash
13
- pnpm add -D typescript @reasonabletech/config-typescript
14
- ```
15
-
16
- ## Quick Start
17
-
18
- ```json
19
- {
20
- "extends": "@reasonabletech/config-typescript/base.json",
21
- "include": ["src/**/*"]
22
- }
23
- ```
24
-
25
- ## Preset Path Format
26
-
27
- Use package subpaths with `.json`:
28
-
29
- - `@reasonabletech/config-typescript/base.json`
30
- - `@reasonabletech/config-typescript/react-app.json`
31
- - `@reasonabletech/config-typescript/react-library.json`
32
- - `@reasonabletech/config-typescript/nextjs.json`
33
- - `@reasonabletech/config-typescript/server.json`
34
- - `@reasonabletech/config-typescript/strict.json`
35
-
36
- ## Example: App + Test Config Split
37
-
38
- `tsconfig.json`:
39
-
40
- ```json
41
- {
42
- "extends": "@reasonabletech/config-typescript/app.json",
43
- "compilerOptions": {
44
- "outDir": "./dist"
45
- },
46
- "include": ["src/**/*"]
47
- }
48
- ```
49
-
50
- `tsconfig.test.json`:
51
-
52
- ```json
53
- {
54
- "extends": "./tsconfig.json",
55
- "compilerOptions": {
56
- "types": ["vitest/globals", "node"]
57
- },
58
- "include": ["src/**/*", "tests/**/*"]
59
- }
60
- ```
@@ -1,46 +0,0 @@
1
- /**
2
- * Base configuration examples for projects that consume
3
- * @reasonabletech/config-typescript.
4
- */
5
-
6
- const baseTsConfig = {
7
- extends: "@reasonabletech/config-typescript/base.json",
8
- compilerOptions: {
9
- outDir: "./dist",
10
- rootDir: "./src",
11
- baseUrl: ".",
12
- paths: {
13
- "@/*": ["src/*"],
14
- "@/utils/*": ["src/utils/*"],
15
- },
16
- },
17
- include: ["src/**/*"],
18
- exclude: ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"],
19
- };
20
-
21
- const strictTsConfig = {
22
- extends: "@reasonabletech/config-typescript/strict.json",
23
- compilerOptions: {
24
- outDir: "./dist",
25
- },
26
- include: ["src/**/*"],
27
- };
28
-
29
- const libraryTsConfig = {
30
- extends: "@reasonabletech/config-typescript/library.json",
31
- compilerOptions: {
32
- outDir: "./dist",
33
- rootDir: "./src",
34
- },
35
- include: ["src/**/*"],
36
- };
37
-
38
- const serverTsConfig = {
39
- extends: "@reasonabletech/config-typescript/server.json",
40
- compilerOptions: {
41
- outDir: "./dist",
42
- },
43
- include: ["src/**/*"],
44
- };
45
-
46
- export { baseTsConfig, strictTsConfig, libraryTsConfig, serverTsConfig };
@@ -1,64 +0,0 @@
1
- /**
2
- * React-oriented configuration examples.
3
- */
4
-
5
- const reactAppTsConfig = {
6
- extends: "@reasonabletech/config-typescript/react-app.json",
7
- compilerOptions: {
8
- baseUrl: ".",
9
- paths: {
10
- "@/*": ["src/*"],
11
- "@/components/*": ["src/components/*"],
12
- "@/hooks/*": ["src/hooks/*"],
13
- },
14
- types: ["vite/client", "node"],
15
- },
16
- include: ["src/**/*", "vite-env.d.ts"],
17
- exclude: ["node_modules", "dist"],
18
- };
19
-
20
- const reactLibraryTsConfig = {
21
- extends: "@reasonabletech/config-typescript/react-library.json",
22
- compilerOptions: {
23
- outDir: "./dist",
24
- rootDir: "./src",
25
- },
26
- include: ["src/**/*"],
27
- exclude: ["**/*.test.tsx", "**/*.spec.tsx"],
28
- };
29
-
30
- const nextJsTsConfig = {
31
- extends: "@reasonabletech/config-typescript/nextjs.json",
32
- compilerOptions: {
33
- baseUrl: ".",
34
- paths: {
35
- "@/*": ["src/*"],
36
- },
37
- },
38
- include: ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
39
- };
40
-
41
- const reactTestTsConfig = {
42
- extends: "./tsconfig.json",
43
- compilerOptions: {
44
- types: ["vitest/globals", "jsdom", "@testing-library/jest-dom"],
45
- },
46
- include: ["src/**/*", "tests/**/*", "**/*.test.ts", "**/*.test.tsx"],
47
- };
48
-
49
- const reactPackageScripts = {
50
- scripts: {
51
- dev: "vite",
52
- build: "tsc --noEmit && vite build",
53
- typecheck: "tsc --noEmit",
54
- test: "vitest",
55
- },
56
- };
57
-
58
- export {
59
- reactAppTsConfig,
60
- reactLibraryTsConfig,
61
- nextJsTsConfig,
62
- reactTestTsConfig,
63
- reactPackageScripts,
64
- };