diff --git a/package.json b/package.json index f507317..795f608 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "devDependencies": { "@biomejs/biome": "2.1.3", "@types/node": "^25.3.5", + "@typescript/native-preview": "^7.0.0-dev", "tsdown": "^0.21.0", - "typescript": "^5.9.2", "vitest": "^4.1.0" }, "pnpm": { diff --git a/packages/core/fixtures/tsconfig.json b/packages/core/fixtures/tsconfig.json index 844349e..ffd5c18 100644 --- a/packages/core/fixtures/tsconfig.json +++ b/packages/core/fixtures/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "astro/tsconfigs/strict", "compilerOptions": { - "baseUrl": ".", "paths": { "@/*": ["../src/*"] } diff --git a/packages/core/package.json b/packages/core/package.json index 126b66c..c256201 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -23,9 +23,6 @@ "unist-util-visit": "^5.0.0", "vite": "^7.3.1" }, - "peerDependencies": { - "typescript": "^5" - }, "bugs": { "url": "https://github.com/gomighty/mighty/issues" }, @@ -41,7 +38,7 @@ "license": "MIT", "scripts": { "build": "tsdown", - "typecheck": "tsc" + "typecheck": "tsgo" }, "type": "module", "devDependencies": { diff --git a/packages/core/tests/tsconfig.json b/packages/core/tests/tsconfig.json index c2f5c31..431691f 100644 --- a/packages/core/tests/tsconfig.json +++ b/packages/core/tests/tsconfig.json @@ -2,7 +2,6 @@ "extends": "../../../tsconfig.json", "include": ["matchers.d.ts", "./**/*.ts"], "compilerOptions": { - "baseUrl": ".", "paths": { "@/*": ["../src/*"], "@tests/*": ["./*"] diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 8ae7312..7c0ed61 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -2,7 +2,6 @@ "extends": "../../tsconfig.json", "include": ["src/**/*.ts", "tests/**/*.ts"], "compilerOptions": { - "baseUrl": ".", "rootDir": ".", "paths": { "@/*": ["./src/*"], diff --git a/packages/hono/package.json b/packages/hono/package.json index af77a3e..e02964b 100644 --- a/packages/hono/package.json +++ b/packages/hono/package.json @@ -22,7 +22,7 @@ }, "scripts": { "build": "tsdown", - "typecheck": "tsc" + "typecheck": "tsgo" }, "devDependencies": { "vite": "^7.3.1" diff --git a/packages/hono/tests/tsconfig.json b/packages/hono/tests/tsconfig.json index 425044d..10b5dad 100644 --- a/packages/hono/tests/tsconfig.json +++ b/packages/hono/tests/tsconfig.json @@ -2,7 +2,6 @@ "extends": "../../../tsconfig.json", "include": ["./**/*.ts"], "compilerOptions": { - "baseUrl": ".", "paths": { "@/*": ["../src/*"] } diff --git a/packages/hono/tsconfig.json b/packages/hono/tsconfig.json index d080dfe..fe62c4a 100644 --- a/packages/hono/tsconfig.json +++ b/packages/hono/tsconfig.json @@ -2,7 +2,6 @@ "extends": "../../tsconfig.json", "include": ["src/**/*.ts"], "compilerOptions": { - "baseUrl": ".", "paths": { "@/*": ["./src/*"] }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7aa911b..2f2740d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,12 +26,12 @@ importers: '@types/node': specifier: ^25.3.5 version: 25.3.5 + '@typescript/native-preview': + specifier: ^7.0.0-dev + version: 7.0.0-dev.20260319.1 tsdown: specifier: ^0.21.0 - version: 0.21.0(typescript@5.9.3) - typescript: - specifier: ^5.9.2 - version: 5.9.3 + version: 0.21.0(@typescript/native-preview@7.0.0-dev.20260319.1)(typescript@5.9.3) vitest: specifier: ^4.1.0 version: 4.1.0(@types/node@25.3.5)(vite@7.3.1(@types/node@25.3.5)(jiti@2.6.1)) @@ -50,9 +50,6 @@ importers: rehype-parse: specifier: ^9.0.0 version: 9.0.1 - typescript: - specifier: ^5 - version: 5.9.3 unified: specifier: ^11.0.0 version: 11.0.5 @@ -1038,6 +1035,45 @@ packages: '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-CMpCsOVUJ/BLC9x9VaT/DQviTmfHqw/NVwnyAR6ZHVVR1YJynJ6EJBPPHI4oStgTwVSdhna5uTPRiKhUpzvgCA==} + cpu: [arm64] + os: [darwin] + + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-gUcJwLYodGDC7Xf8aRDSMyL1impp4I+sE4ySTnnibTCzI5Mi2g8Sckkr81TEgMx5L4B10gkMmREuqr//1E+Y3A==} + cpu: [x64] + os: [darwin] + + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-7JmTBE0URYCmLiHXWZ/wlFoNWMu6YJkHGXXqkR3EGTck8+qi0X+dutRsasKYwGHS4I8Ubn/yWTcJHX5qHf68sQ==} + cpu: [arm64] + os: [linux] + + '@typescript/native-preview-linux-arm@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-boLhrOyT6nSWaVARBD7AF99rLPMy7jjQB50KywZMFzJ9Gg9N+MBBHJCzgwqlDK2sfahfPWBSV5JjYfET8AOZMg==} + cpu: [arm] + os: [linux] + + '@typescript/native-preview-linux-x64@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-9LdXkBqR3r8MHmHHwoA7mwv/fkATe2TO+6fLuan/sfmGjob/9y7swyYVvauYzX+aiTbzXjjCkOtEw0klQLxT/A==} + cpu: [x64] + os: [linux] + + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-jKJ+lha8EZtxP5chtsuSNAZOvPInJbFExu0ctoiGVgw01sdMUZeyFYz9TSLoa5oNUs0dboydtiHTK/uyrKThNw==} + cpu: [arm64] + os: [win32] + + '@typescript/native-preview-win32-x64@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-GonXb3TBp23brWlPMA+uL42qUvBTNkCHFoE653tQK5SQkCvCSO3GYyY9K5GhEdG6kV2vDpG+Y98p1BYTM5z0Qg==} + cpu: [x64] + os: [win32] + + '@typescript/native-preview@7.0.0-dev.20260319.1': + resolution: {integrity: sha512-K9evb5u4QmH3Xv2XUg9OWUETYMrIX1C7Hls1ce8DW+Nlbb26NnQ5SPQCt8fGq4FGqZ9BodMwfane1pTd+BWYwQ==} + hasBin: true + '@ungap/structured-clone@1.3.0': resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} @@ -2954,6 +2990,37 @@ snapshots: '@types/unist@3.0.3': {} + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260319.1': + optional: true + + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260319.1': + optional: true + + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260319.1': + optional: true + + '@typescript/native-preview-linux-arm@7.0.0-dev.20260319.1': + optional: true + + '@typescript/native-preview-linux-x64@7.0.0-dev.20260319.1': + optional: true + + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260319.1': + optional: true + + '@typescript/native-preview-win32-x64@7.0.0-dev.20260319.1': + optional: true + + '@typescript/native-preview@7.0.0-dev.20260319.1': + optionalDependencies: + '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260319.1 + '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260319.1 + '@typescript/native-preview-linux-arm': 7.0.0-dev.20260319.1 + '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260319.1 + '@typescript/native-preview-linux-x64': 7.0.0-dev.20260319.1 + '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260319.1 + '@typescript/native-preview-win32-x64': 7.0.0-dev.20260319.1 + '@ungap/structured-clone@1.3.0': {} '@vitejs/plugin-react@5.1.4(vite@7.3.1(@types/node@25.3.5)(jiti@2.6.1))': @@ -4028,7 +4095,7 @@ snapshots: retext-stringify: 4.0.0 unified: 11.0.5 - rolldown-plugin-dts@0.22.4(rolldown@1.0.0-rc.7)(typescript@5.9.3): + rolldown-plugin-dts@0.22.4(@typescript/native-preview@7.0.0-dev.20260319.1)(rolldown@1.0.0-rc.7)(typescript@5.9.3): dependencies: '@babel/generator': 8.0.0-rc.2 '@babel/helper-validator-identifier': 8.0.0-rc.2 @@ -4041,6 +4108,7 @@ snapshots: obug: 2.1.1 rolldown: 1.0.0-rc.7 optionalDependencies: + '@typescript/native-preview': 7.0.0-dev.20260319.1 typescript: 5.9.3 transitivePeerDependencies: - oxc-resolver @@ -4202,7 +4270,7 @@ snapshots: optionalDependencies: typescript: 5.9.3 - tsdown@0.21.0(typescript@5.9.3): + tsdown@0.21.0(@typescript/native-preview@7.0.0-dev.20260319.1)(typescript@5.9.3): dependencies: ansis: 4.2.0 cac: 7.0.0 @@ -4213,7 +4281,7 @@ snapshots: obug: 2.1.1 picomatch: 4.0.3 rolldown: 1.0.0-rc.7 - rolldown-plugin-dts: 0.22.4(rolldown@1.0.0-rc.7)(typescript@5.9.3) + rolldown-plugin-dts: 0.22.4(@typescript/native-preview@7.0.0-dev.20260319.1)(rolldown@1.0.0-rc.7)(typescript@5.9.3) semver: 7.7.4 tinyexec: 1.0.2 tinyglobby: 0.2.15 @@ -4232,7 +4300,8 @@ snapshots: tslib@2.8.1: optional: true - typescript@5.9.3: {} + typescript@5.9.3: + optional: true ufo@1.6.3: {}