diff --git a/package.json b/package.json
index 146c7d02..b768729f 100644
--- a/package.json
+++ b/package.json
@@ -11,16 +11,16 @@
"scripts": {
"prebuild": "rimraf dist",
"build": "npm-run-all --parallel build:main build:bundle:main build:bundle:pure",
- "build:bundle:main": "dotenv -e .bundle.main.env kcd-scripts build -- --bundle --no-clean",
- "build:bundle:pure": "dotenv -e .bundle.main.env -e .bundle.pure.env kcd-scripts build -- --bundle --no-clean",
- "build:main": "kcd-scripts build --no-clean",
+ "build:bundle:main": "dotenv -e .bundle.main.env kcd-scripts build -- --bundle --no-clean --no-ts-defs",
+ "build:bundle:pure": "dotenv -e .bundle.main.env -e .bundle.pure.env kcd-scripts build -- --bundle --no-clean --no-ts-defs",
+ "build:main": "kcd-scripts build --no-clean --no-ts-defs",
"format": "kcd-scripts format",
"install:csb": "npm install",
"lint": "kcd-scripts lint",
"setup": "npm install && npm run validate -s",
"test": "kcd-scripts test",
"test:update": "npm test -- --updateSnapshot --coverage",
- "typecheck": "kcd-scripts typecheck --build types",
+ "typecheck": "tsc --project tsconfig.json",
"validate": "kcd-scripts validate"
},
"files": [
@@ -56,11 +56,11 @@
"dotenv-cli": "^4.0.0",
"jest-diff": "^29.7.0",
"kcd-scripts": "^13.0.0",
- "npm-run-all": "^4.1.5",
+ "npm-run-all2": "^6.2.6",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rimraf": "^3.0.2",
- "typescript": "^4.1.2"
+ "typescript": "^5.9.3"
},
"peerDependencies": {
"@testing-library/dom": "^10.0.0",
diff --git a/src/__tests__/rerender.js b/src/__tests__/rerender.js
index 6c48c4dd..7b9cf3b4 100644
--- a/src/__tests__/rerender.js
+++ b/src/__tests__/rerender.js
@@ -32,12 +32,13 @@ describe('rerender API', () => {
document.body.appendChild(container)
const firstValue = 'hello'
- initialInputElement.value = firstValue
-
- const {rerender} = render( null} />, {
- container,
- hydrate: true,
- })
+ const {rerender} = render(
+ null} />,
+ {
+ container,
+ hydrate: true,
+ },
+ )
expect(initialInputElement).toHaveValue(firstValue)
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 00000000..b8f19236
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,44 @@
+{
+ // Visit https://aka.ms/tsconfig to read more about this file
+ "compilerOptions": {
+ // File Layout
+ // "rootDir": "./src",
+ // "outDir": "./dist",
+
+ // Environment Settings
+ // See also https://aka.ms/tsconfig/module
+ "module": "nodenext",
+ "target": "esnext",
+ // For nodejs:
+ "lib": ["esnext", "DOM"],
+ "types": ["node"],
+
+ // Other Outputs
+ "sourceMap": true,
+ "declaration": true,
+ "declarationMap": true,
+
+ // Stricter Typechecking Options
+ "noUncheckedIndexedAccess": true,
+ "exactOptionalPropertyTypes": true,
+
+ // Style Options
+ // "noImplicitReturns": true,
+ // "noImplicitOverride": true,
+ // "noUnusedLocals": true,
+ // "noUnusedParameters": true,
+ // "noFallthroughCasesInSwitch": true,
+ // "noPropertyAccessFromIndexSignature": true,
+
+ "strict": true,
+ "jsx": "react-jsx",
+ "verbatimModuleSyntax": false,
+ "isolatedModules": true,
+ "noUncheckedSideEffectImports": true,
+ "moduleDetection": "force",
+ "skipLibCheck": false,
+
+ "noEmit": true
+ },
+ "include": ["types"]
+}