@mkappelhof/ts-config 1.0.6 → 2.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.
@@ -0,0 +1,13 @@
1
+
2
+ > @mkappelhof/ts-config@1.0.7 build /Users/mauricekappelhof/Dev/frontend-tools/packages/ts-config
3
+ > rollup -c
4
+
5
+ 
6
+ ./base.json → ./dist/base.json...
7
+ (!) Mixing named and default exports
8
+ https://rollupjs.org/configuration-options/#output-exports
9
+ The following entry modules are using named and default exports together:
10
+ base.json
11
+
12
+ Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
13
+ created ./dist/base.json in 22ms
package/AGENTS.md ADDED
@@ -0,0 +1,68 @@
1
+ # @mkappelhof/ts-config — agent instructions
2
+
3
+ This project's `tsconfig.json` extends a shared config from `@mkappelhof/ts-config`. Write code that type-checks under these settings, and do not loosen them.
4
+
5
+ ## Which config is in use
6
+
7
+ Check `extends` in the project's `tsconfig.json`:
8
+
9
+ | Config | For | Module system |
10
+ | --- | --- | --- |
11
+ | `@mkappelhof/ts-config/next.json` | Next.js apps | ESM, bundler resolution, type-check only (`noEmit`) |
12
+ | `@mkappelhof/ts-config/react.json` | React apps and libraries built with a bundler (Vite, etc.) | ESM, bundler resolution, type-check only (`noEmit`) |
13
+ | `@mkappelhof/ts-config/node.json` | Node.js 24+ services, scripts and CLIs | Native Node ESM (`NodeNext`) |
14
+ | `@mkappelhof/ts-config/nest.json` | NestJS services | CommonJS, legacy decorators (`experimentalDecorators`, `emitDecoratorMetadata`) |
15
+ | `@mkappelhof/ts-config/library.json` | React libraries built with a bundler that publish type declarations | ESM, bundler resolution, declaration emit only (`emitDeclarationOnly`) |
16
+ | `@mkappelhof/ts-config/astro.json` | Astro sites and apps | ESM, bundler resolution, type-check only (`noEmit`), `jsx: "preserve"` |
17
+
18
+ ## Rules that apply to every config
19
+
20
+ - **`strict` is on, plus `noUncheckedIndexedAccess`.** Indexing an array or record returns `T | undefined`. Narrow it (`if (item)`, `?.`, `??`) instead of using `!` or `as`.
21
+ - **`noImplicitOverride`.** Mark overridden class members with `override`.
22
+ - **`noFallthroughCasesInSwitch`.** Every non-empty `case` must `break`, `return` or `throw`.
23
+ - Path aliases are defined in `compilerOptions.paths` in the project's own `tsconfig.json`, never in these presets. Check there before assuming an import needs a relative path.
24
+ - Ambient types beyond the preset's `lib` (e.g. `chrome` for a browser extension, or a test runner's globals) go in `compilerOptions.types` in the project's own `tsconfig.json`.
25
+ - Do not add `// @ts-ignore`. If you must suppress an error, use `// @ts-expect-error` with a reason.
26
+ - Do not change the compiler options in the project's `tsconfig.json` to make an error go away. Fix the code.
27
+
28
+ ## next.json
29
+
30
+ - JSX uses the automatic runtime (`react-jsx`). Do not `import React` just for JSX.
31
+ - Imports have no file extensions (`import { x } from './util'`).
32
+ - Keep `next-env.d.ts` and the `.next/types/**/*.ts` entries in `include`. Next.js generates them.
33
+ - Run `pnpm tsc --noEmit` (or `pnpm next build`) to type-check.
34
+
35
+ ## react.json
36
+
37
+ - `verbatimModuleSyntax` is on. Import types with `import type { Foo } from './foo'` (or the inline form `import { type Foo }`).
38
+ - `erasableSyntaxOnly` is on. Do not use `enum`, `namespace`, parameter properties (`constructor(private x: string)`) or `import x = require()`. Use union types or `as const` objects instead of enums.
39
+ - JSX uses the automatic runtime (`react-jsx`). Do not `import React` just for JSX.
40
+ - `.ts` / `.tsx` extensions in imports are allowed but not required.
41
+
42
+ ## library.json
43
+
44
+ - Extends `react.json`, so the same `verbatimModuleSyntax` and `erasableSyntaxOnly` rules apply.
45
+ - `noEmit` is off and `emitDeclarationOnly` is on: `tsc` only ever emits `.d.ts` files, never `.js`. Build the JS with your bundler, and run `tsc` (or `tsc --build`) separately to emit declarations.
46
+ - Set `outDir` and `rootDir` in the project's own `tsconfig.json`.
47
+
48
+ ## node.json
49
+
50
+ - The project must have `"type": "module"` in `package.json`. Use `import`/`export` and never `require`/`module.exports`.
51
+ - **Relative imports must include the file extension.** Write `import { x } from './util.ts'` (or `./util.js`). Both resolve, and `.ts` is rewritten to `.js` on emit.
52
+ - `verbatimModuleSyntax` and `erasableSyntaxOnly` are on, same rules as `react.json`. Because of the latter, the source can run directly with `node file.ts`.
53
+ - Top-level `await` is allowed.
54
+ - `@types/node` must be installed. It is the only ambient types package loaded (`"types": ["node"]`); add others to `types` in the project's `tsconfig.json`.
55
+
56
+ ## nest.json
57
+
58
+ - CommonJS, not ESM: `module`/`moduleResolution` are `commonjs`/`node`. Use `require`/`module.exports` semantics via `import`/`export` as Nest's CLI generates them; there's no `"type": "module"` requirement and no file-extension-in-import rule.
59
+ - `experimentalDecorators` and `emitDecoratorMetadata` are on, and `erasableSyntaxOnly`/`verbatimModuleSyntax` are off (unlike every other preset in this package). Parameter properties (`constructor(private readonly foo: FooService) {}`) and decorators (`@Injectable()`, `@Controller()`, etc.) are expected and fine to use here — this is the one preset where that's true.
60
+ - Run `nest build` (or `tsc -p tsconfig.build.json` if the project has one) to compile; don't switch the project to `tsc --noEmit`-only workflows.
61
+
62
+ ## astro.json
63
+
64
+ - `jsx` is `"preserve"`, not `"react-jsx"`. `.astro` files are their own syntax, compiled by the Astro compiler, not `tsc`; this setting only matters for `.tsx` islands (e.g. from `@astrojs/react`), and Astro's Vite plugin handles their actual JSX transform regardless of this setting.
65
+ - `verbatimModuleSyntax` and `erasableSyntaxOnly` are on, same rules as `react.json`/`node.json`: use `import type`, and no `enum`, `namespace` or parameter properties.
66
+ - Ambient types for `astro:*` virtual modules and `import.meta.env` come from `/// <reference types="astro/client" />` in your own code (commonly in `src/env.d.ts`), not from this preset.
67
+ - This preset does not `extend` Astro's own `astro/tsconfigs/strict.json` — it's self-contained, with the equivalent compiler options plus this package's usual `noUncheckedIndexedAccess`, `noImplicitOverride` and `noFallthroughCasesInSwitch` (Astro's `strict.json` alone does not enable these three; `strictest.json` does, but also turns on other checks this package doesn't standardize on, such as `noUnusedLocals`).
68
+ - Use `astro check` to type-check, not bare `tsc --noEmit` — only the Astro CLI resolves `.astro` files.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @mkappelhof/ts-config
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3c4c6b4: Add `nest.json` preset for NestJS services: CommonJS, `experimentalDecorators`/`emitDecoratorMetadata` on, `erasableSyntaxOnly`/`verbatimModuleSyntax` off so parameter properties and decorator-based DI work.
8
+
9
+ ## 2.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - eb2577f: Add new configs
14
+
15
+ ## 2.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - 9665a73: Modernise `next.json`, `react.json` and `node.json` for TypeScript 6/7, Next.js 16 and Node 24. They no longer extend `base.json`; use `bundler`/`NodeNext` module resolution; and enable `noUncheckedIndexedAccess`. `react.json` and `node.json` also enable `verbatimModuleSyntax` and `erasableSyntaxOnly`, and `node.json` targets native ESM. Adds `AGENTS.md`.
20
+
21
+ Also:
22
+
23
+ - Adds a `library.json` preset (extends `react.json`) for React libraries that publish type declarations, replacing the manual `compilerOptions` override documented in the README.
24
+ - Removes the Rollup build. `main` already pointed at the source `base.json`, and nothing consumed the `dist/` output it produced.
25
+
26
+ ### Minor Changes
27
+
28
+ - 1eb73de: Add an `astro.json` preset to `@mkappelhof/ts-config`, pulled from how a real Astro site configures
29
+ TypeScript: Astro's own `strict.json` base plus this package's usual `noUncheckedIndexedAccess`,
30
+ `noImplicitOverride` and `noFallthroughCasesInSwitch`.
31
+
32
+ Also documents pinning Biome's `astro` lint domain in `@mkappelhof/biome-config`'s README, alongside
33
+ the existing `react`/`next`/`test` domain guidance.
34
+
35
+ ### Patch Changes
36
+
37
+ - 58ff254: Pull in live configuration learnings from a real project:
38
+
39
+ - `@mkappelhof/biome-config`: enable `html.experimentalFullSupportEnabled`, and document in the
40
+ `AGENTS.md`/README how to pair this config with `@mkappelhof/stylelint-config` without the two
41
+ tools overlapping on the same files.
42
+ - `@mkappelhof/ts-config`: document in `AGENTS.md` that `react.json` projects define path aliases
43
+ and any extra ambient `types` (e.g. browser-extension globals) in their own `tsconfig.json`.
44
+
45
+ Also adds a new `@mkappelhof/stylelint-config` package (Stylelint config for CSS/SCSS, built on
46
+ `stylelint-config-standard` + `stylelint-config-recommended-scss`), for projects that pair Biome
47
+ with Stylelint instead of relying on Biome for styles.
48
+
49
+ ## 1.0.7
50
+
51
+ ### Patch Changes
52
+
53
+ - 7a413a3: Add deployment to Github
54
+
3
55
  ## 1.0.6
4
56
 
5
57
  ### Patch Changes
package/README.md CHANGED
@@ -1,15 +1,146 @@
1
- # Shared Typescript configurations
1
+ # Shared TypeScript configurations
2
+
3
+ Shared `tsconfig.json` presets for TypeScript 6 and 7.
4
+
5
+ | Config | Use for |
6
+ | --- | --- |
7
+ | `@mkappelhof/ts-config/next.json` | Next.js applications |
8
+ | `@mkappelhof/ts-config/react.json` | React apps and libraries built with a bundler (Vite, Rsbuild, etc.) |
9
+ | `@mkappelhof/ts-config/node.json` | Node.js 24+ services, scripts and CLIs (native ESM) |
10
+ | `@mkappelhof/ts-config/nest.json` | NestJS services (CommonJS, legacy decorators) |
11
+ | `@mkappelhof/ts-config/library.json` | React libraries built with a bundler that publish type declarations |
12
+ | `@mkappelhof/ts-config/astro.json` | Astro sites and apps |
13
+
14
+ All presets enable `strict`, `noUncheckedIndexedAccess`, `noImplicitOverride` and `noFallthroughCasesInSwitch`.
2
15
 
3
16
  ## Installation
4
17
 
5
- Add the package as a local dev dependency
18
+ ```sh
19
+ pnpm add -D @mkappelhof/ts-config typescript
20
+ ```
6
21
 
7
- `yarn add @mkappelhof/ts-config`
22
+ Paths in `include`, `exclude`, `paths` and `outDir` are resolved relative to the config file that declares them. That's why the presets don't set them, and your own `tsconfig.json` has to.
8
23
 
9
- Then create a `.tsconfig.json` config file with the following content:
24
+ ### Next.js
10
25
 
11
26
  ```JSON
12
27
  {
13
28
  "extends": "@mkappelhof/ts-config/next.json",
29
+ "compilerOptions": {
30
+ "paths": { "@/*": ["./src/*"] }
31
+ },
32
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.mts", ".next/types/**/*.ts", ".next/dev/types/**/*.ts"],
33
+ "exclude": ["node_modules"]
34
+ }
35
+ ```
36
+
37
+ ### React (bundler)
38
+
39
+ ```sh
40
+ pnpm add -D @types/react @types/react-dom
41
+ ```
42
+
43
+ ```JSON
44
+ {
45
+ "extends": "@mkappelhof/ts-config/react.json",
46
+ "compilerOptions": {
47
+ "types": ["vite/client"]
48
+ },
49
+ "include": ["src"]
50
+ }
51
+ ```
52
+
53
+ The preset is type-check only (`noEmit`). For a React library that publishes type declarations, use `library.json` instead:
54
+
55
+ ```JSON
56
+ {
57
+ "extends": "@mkappelhof/ts-config/library.json",
58
+ "compilerOptions": {
59
+ "outDir": "dist",
60
+ "rootDir": "src"
61
+ },
62
+ "include": ["src"]
63
+ }
64
+ ```
65
+
66
+ ### Node.js
67
+
68
+ ```sh
69
+ pnpm add -D @types/node
70
+ ```
71
+
72
+ Set `"type": "module"` in your `package.json`, then:
73
+
74
+ ```JSON
75
+ {
76
+ "extends": "@mkappelhof/ts-config/node.json",
77
+ "compilerOptions": {
78
+ "outDir": "dist",
79
+ "rootDir": "src"
80
+ },
81
+ "include": ["src"]
14
82
  }
15
83
  ```
84
+
85
+ The code only uses erasable TypeScript syntax, so you can run it directly with `node src/index.ts` or compile it with `tsc`. Relative imports must include an extension (`./util.ts`), which is rewritten to `.js` on emit.
86
+
87
+ ### NestJS
88
+
89
+ ```sh
90
+ pnpm add -D @types/node
91
+ ```
92
+
93
+ ```JSON
94
+ {
95
+ "extends": "@mkappelhof/ts-config/nest.json",
96
+ "compilerOptions": {
97
+ "outDir": "dist",
98
+ "rootDir": "src"
99
+ },
100
+ "include": ["src"]
101
+ }
102
+ ```
103
+
104
+ Unlike the other presets, this one stays on CommonJS and legacy decorators (`experimentalDecorators`, `emitDecoratorMetadata`) with `erasableSyntaxOnly` and `verbatimModuleSyntax` off, since Nest's constructor-based DI relies on parameter properties and decorator metadata. Build with `nest build` (or `tsc -p tsconfig.build.json`).
105
+
106
+ ### Astro
107
+
108
+ ```JSON
109
+ {
110
+ "extends": "@mkappelhof/ts-config/astro.json",
111
+ "compilerOptions": {
112
+ "paths": { "@components/*": ["./src/components/*"] }
113
+ },
114
+ "include": [".astro/types.d.ts", "src"],
115
+ "exclude": ["dist"]
116
+ }
117
+ ```
118
+
119
+ This preset is self-contained (it doesn't `extend` Astro's own `astro/tsconfigs/*` presets), but
120
+ applies the same strictness as the rest of this package on top of what Astro's `strict.json`
121
+ enables: `noUncheckedIndexedAccess`, `noImplicitOverride` and `noFallthroughCasesInSwitch`. Type
122
+ declarations for `astro:*` virtual modules and `import.meta.env` come from a triple-slash
123
+ reference in your own code, not from this preset:
124
+
125
+ ```ts
126
+ /// <reference types="astro/client" />
127
+ ```
128
+
129
+ Run `astro check` to type-check (plain `tsc --noEmit` won't resolve `.astro` files).
130
+
131
+ ## Breaking changes in 2.0
132
+
133
+ - `next.json`, `react.json` and `node.json` no longer extend `base.json`.
134
+ - `moduleResolution` is now `bundler` (Next.js, React) or `NodeNext` (Node), instead of the removed `node10`.
135
+ - `node.json` now targets Node 24 ESM instead of CommonJS.
136
+ - `react.json` and `node.json` enable `verbatimModuleSyntax` and `erasableSyntaxOnly`. Use `import type` for type-only imports, and replace `enum`s with union types or `as const` objects.
137
+ - `noUncheckedIndexedAccess` is on in every preset.
138
+ - In `next.json`, the `next` plugin moved into `compilerOptions`, where TypeScript actually reads it.
139
+
140
+ ## AI agents
141
+
142
+ The package ships an `AGENTS.md` that explains the rules these presets enforce. Reference it from your project's `AGENTS.md`:
143
+
144
+ ```md
145
+ - TypeScript: follow `node_modules/@mkappelhof/ts-config/AGENTS.md`
146
+ ```
package/astro.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "display": "Astro",
4
+ "compilerOptions": {
5
+ "target": "ESNext",
6
+ "lib": [
7
+ "DOM",
8
+ "DOM.Iterable",
9
+ "ESNext"
10
+ ],
11
+ "module": "ESNext",
12
+ "moduleResolution": "bundler",
13
+ "moduleDetection": "force",
14
+ "jsx": "preserve",
15
+ "allowJs": true,
16
+ "allowImportingTsExtensions": true,
17
+ "resolveJsonModule": true,
18
+ "verbatimModuleSyntax": true,
19
+ "isolatedModules": true,
20
+ "erasableSyntaxOnly": true,
21
+ "noEmit": true,
22
+ "strict": true,
23
+ "noUncheckedIndexedAccess": true,
24
+ "noImplicitOverride": true,
25
+ "noFallthroughCasesInSwitch": true,
26
+ "forceConsistentCasingInFileNames": true,
27
+ "esModuleInterop": true,
28
+ "skipLibCheck": true
29
+ }
30
+ }
package/base.json CHANGED
@@ -19,5 +19,7 @@
19
19
  "skipLibCheck": true,
20
20
  "strict": true
21
21
  },
22
- "exclude": ["node_modules"]
23
- }
22
+ "exclude": [
23
+ "node_modules"
24
+ ]
25
+ }
package/library.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "display": "React Library",
4
+ "extends": "./react.json",
5
+ "compilerOptions": {
6
+ "noEmit": false,
7
+ "declaration": true,
8
+ "declarationMap": true,
9
+ "emitDeclarationOnly": true,
10
+ "allowImportingTsExtensions": false
11
+ }
12
+ }
package/nest.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "display": "NestJS",
4
+ "compilerOptions": {
5
+ "target": "ES2023",
6
+ "lib": [
7
+ "ES2023"
8
+ ],
9
+ "module": "commonjs",
10
+ "moduleResolution": "node",
11
+ "moduleDetection": "force",
12
+ "types": [
13
+ "node"
14
+ ],
15
+ "resolveJsonModule": true,
16
+ "experimentalDecorators": true,
17
+ "emitDecoratorMetadata": true,
18
+ "strict": true,
19
+ "noUncheckedIndexedAccess": true,
20
+ "noImplicitOverride": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "skipLibCheck": true
23
+ }
24
+ }
package/next.json CHANGED
@@ -1,17 +1,31 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "React Library",
4
- "extends": "./base.json",
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "display": "Next.js",
5
4
  "compilerOptions": {
6
- "incremental": true,
7
- "jsx": "preserve",
8
- "lib": ["dom", "ES2015"],
5
+ "target": "ES2022",
6
+ "lib": [
7
+ "DOM",
8
+ "DOM.Iterable",
9
+ "ESNext"
10
+ ],
9
11
  "module": "ESNext",
10
- "target": "es6"
11
- },
12
- "plugins": [
13
- {
14
- "name": "next"
15
- }
16
- ]
17
- }
12
+ "moduleResolution": "bundler",
13
+ "moduleDetection": "force",
14
+ "jsx": "react-jsx",
15
+ "allowJs": true,
16
+ "resolveJsonModule": true,
17
+ "isolatedModules": true,
18
+ "noEmit": true,
19
+ "incremental": true,
20
+ "strict": true,
21
+ "noUncheckedIndexedAccess": true,
22
+ "noImplicitOverride": true,
23
+ "noFallthroughCasesInSwitch": true,
24
+ "skipLibCheck": true,
25
+ "plugins": [
26
+ {
27
+ "name": "next"
28
+ }
29
+ ]
30
+ }
31
+ }
package/node.json CHANGED
@@ -1,10 +1,29 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "Node 18",
4
- "extends": "./base.json",
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "display": "Node 24",
5
4
  "compilerOptions": {
6
- "lib": ["ES2020"],
7
- "module": "commonjs",
8
- "target": "ES2020"
5
+ "target": "ES2024",
6
+ "lib": [
7
+ "ES2024",
8
+ "ESNext.Array",
9
+ "ESNext.Collection",
10
+ "ESNext.Iterator",
11
+ "ESNext.Promise"
12
+ ],
13
+ "module": "NodeNext",
14
+ "moduleResolution": "NodeNext",
15
+ "moduleDetection": "force",
16
+ "types": [
17
+ "node"
18
+ ],
19
+ "resolveJsonModule": true,
20
+ "verbatimModuleSyntax": true,
21
+ "erasableSyntaxOnly": true,
22
+ "rewriteRelativeImportExtensions": true,
23
+ "strict": true,
24
+ "noUncheckedIndexedAccess": true,
25
+ "noImplicitOverride": true,
26
+ "noFallthroughCasesInSwitch": true,
27
+ "skipLibCheck": true
9
28
  }
10
29
  }
package/package.json CHANGED
@@ -1,23 +1,19 @@
1
1
  {
2
2
  "name": "@mkappelhof/ts-config",
3
- "version": "1.0.6",
3
+ "version": "2.1.0",
4
4
  "main": "base.json",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:mkappelhof/frontend-tools.git",
7
7
  "author": "Maurice Kappelhof <maurice@mauricekappelhof.nl>",
8
8
  "scripts": {
9
- "build": "rollup -c",
10
9
  "test": "echo 'No test step'"
11
10
  },
12
11
  "peerDependencies": {
13
- "typescript": "5.1.6"
14
- },
15
- "devDependencies": {
16
- "@rollup/plugin-json": "6.0.0"
12
+ "typescript": "^6.0.0 || ^7.0.0"
17
13
  },
18
14
  "tags": [
19
15
  "typescript",
20
16
  "tsconfig",
21
17
  "config"
22
18
  ]
23
- }
19
+ }
package/react.json CHANGED
@@ -1,11 +1,26 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "React Library",
4
- "extends": "./base.json",
2
+ "$schema": "https://www.schemastore.org/tsconfig",
3
+ "display": "React",
5
4
  "compilerOptions": {
6
- "jsx": "react-jsx",
7
- "lib": ["dom", "ES2015"],
5
+ "target": "ES2023",
6
+ "lib": [
7
+ "DOM",
8
+ "DOM.Iterable",
9
+ "ES2023"
10
+ ],
8
11
  "module": "ESNext",
9
- "target": "es6"
12
+ "moduleResolution": "bundler",
13
+ "moduleDetection": "force",
14
+ "jsx": "react-jsx",
15
+ "allowImportingTsExtensions": true,
16
+ "resolveJsonModule": true,
17
+ "verbatimModuleSyntax": true,
18
+ "erasableSyntaxOnly": true,
19
+ "noEmit": true,
20
+ "strict": true,
21
+ "noUncheckedIndexedAccess": true,
22
+ "noImplicitOverride": true,
23
+ "noFallthroughCasesInSwitch": true,
24
+ "skipLibCheck": true
10
25
  }
11
- }
26
+ }
package/remix.json CHANGED
@@ -3,10 +3,14 @@
3
3
  "display": "Remix",
4
4
  "extends": "./base.json",
5
5
  "compilerOptions": {
6
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
6
+ "lib": [
7
+ "DOM",
8
+ "DOM.Iterable",
9
+ "ESNext"
10
+ ],
7
11
  "jsx": "react-jsx",
8
12
  "moduleResolution": "node",
9
13
  "target": "ESNext",
10
14
  "baseUrl": "."
11
15
  }
12
- }
16
+ }
package/rollup.config.js DELETED
@@ -1,22 +0,0 @@
1
- const copy = require("rollup-plugin-copy");
2
- const json = require("@rollup/plugin-json");
3
-
4
- module.exports = {
5
- input: "./base.json",
6
- output: {
7
- file: "./dist/base.json",
8
- format: "cjs",
9
- },
10
- plugins: [
11
- json(),
12
- copy({
13
- targets: [
14
- { src: "./next.json", dest: "./dist/" },
15
- { src: "./node.json", dest: "./dist/" },
16
- { src: "./react.json", dest: "./dist/" },
17
- { src: "./CHANGELOG.md", dest: "./dist/" },
18
- { src: "./package.json", dest: "./dist/" },
19
- ],
20
- }),
21
- ],
22
- };