diff --git a/astro.config.ts b/astro.config.ts index 69eb8f4..603e882 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -1,6 +1,7 @@ import svelte from "@astrojs/svelte"; import { defineConfig } from "astro/config"; import { optimizeCss, optimizeImports } from "carbon-preprocess-svelte"; +import path from "node:path"; import pkg from "./package.json" assert { type: "json" }; export default defineConfig({ @@ -19,6 +20,14 @@ export default defineConfig({ }, vite: { plugins: [optimizeCss()], + resolve: { + alias: { + "@www": path.resolve("./www"), + "@layouts": path.resolve("./www/layouts"), + "@components": path.resolve("./www/components"), + "svelte-highlight": path.resolve("./src"), + }, + }, optimizeDeps: { exclude: ["carbon-components-svelte"], }, diff --git a/bun.lock b/bun.lock index dd24054..0191699 100644 --- a/bun.lock +++ b/bun.lock @@ -15,6 +15,7 @@ "@types/bun": "^1.3.3", "@types/jest": "^30.0.0", "@types/node": "^24.10.1", + "@typescript/native-preview": "^7.0.0-dev.20251122.1", "astro": "^4.16.19", "carbon-components-svelte": "0.93.0", "carbon-preprocess-svelte": "0.11.14", @@ -26,7 +27,6 @@ "postcss-merge-rules": "^7.0.7", "svelte": "^4.2.20", "svelte-focus-key": "latest", - "typescript": "^5.9.3", "vite": "^5.4.21", }, }, @@ -340,6 +340,22 @@ "@types/yargs-parser": ["@types/yargs-parser@21.0.3", "", {}, "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ=="], + "@typescript/native-preview": ["@typescript/native-preview@7.0.0-dev.20251122.1", "", { "optionalDependencies": { "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20251122.1", "@typescript/native-preview-darwin-x64": "7.0.0-dev.20251122.1", "@typescript/native-preview-linux-arm": "7.0.0-dev.20251122.1", "@typescript/native-preview-linux-arm64": "7.0.0-dev.20251122.1", "@typescript/native-preview-linux-x64": "7.0.0-dev.20251122.1", "@typescript/native-preview-win32-arm64": "7.0.0-dev.20251122.1", "@typescript/native-preview-win32-x64": "7.0.0-dev.20251122.1" }, "bin": { "tsgo": "bin/tsgo.js" } }, "sha512-5JofzSZ1T6WnmRCUMtteMAyAaIcvQMNKlJfSkleJTHuCSUn0pxGUG64CMt0KNVVtuOgCIPscqg4tfr90PuH+Ww=="], + + "@typescript/native-preview-darwin-arm64": ["@typescript/native-preview-darwin-arm64@7.0.0-dev.20251122.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-RReunypvb+gvDYLlR63+LeCVf4u+njjeDzTjkUscEdloZ3BVbrMnXfxp64fj8lXt8vzGjhCvwd9P3+rXjOLZeg=="], + + "@typescript/native-preview-darwin-x64": ["@typescript/native-preview-darwin-x64@7.0.0-dev.20251122.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-+IPttsQAp0gxbMnuL/mvU6QkjP9tSCbaSEwXXBwIGh1/SZTuikEmHSq4ZJVr3Q3jJ0kj50WIywwpWVFh6T2QLw=="], + + "@typescript/native-preview-linux-arm": ["@typescript/native-preview-linux-arm@7.0.0-dev.20251122.1", "", { "os": "linux", "cpu": "arm" }, "sha512-gLfCZmSFpg+32/JbpZNfMbd7SBCDzXc/h0I/2lqvAQD+C090kIDV/xJKBQIa/SM1XeAurMQgcyxNWuAh++A8Yw=="], + + "@typescript/native-preview-linux-arm64": ["@typescript/native-preview-linux-arm64@7.0.0-dev.20251122.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-uSS0gs3o/hzSTqG5czhyEUSmfq+C5xhejkePW3cb7w2OWBK2saPZWhSeqfnJkgMhKrLd87d76LqRG9+BXqpSSQ=="], + + "@typescript/native-preview-linux-x64": ["@typescript/native-preview-linux-x64@7.0.0-dev.20251122.1", "", { "os": "linux", "cpu": "x64" }, "sha512-MyAd9qcFvaSC2I4GGYfwbpdn1PYoQqeWXfpBkUejnkAws0aFRBITCfCwfIBWd9lcE7pHgYa+9vB0UeJegXGPng=="], + + "@typescript/native-preview-win32-arm64": ["@typescript/native-preview-win32-arm64@7.0.0-dev.20251122.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-0eXxif0zA36nymY2C7YWGdJKxj+FK4u8f0pblX++6vRTmO41UDrHERvd549ur4E17m3w1j6YiuFG0/kOQeZLpQ=="], + + "@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20251122.1", "", { "os": "win32", "cpu": "x64" }, "sha512-2AnG7WhjZ5Jv3mu+8cNR4JRe3mJg8ODOBnejbA1uGYJ00EDYFfmX87s9Q9eUywEmsEGabraQfnH7+YTyCBiGsQ=="], + "@ungap/structured-clone": ["@ungap/structured-clone@1.3.0", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="], "acorn": ["acorn@8.14.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA=="], diff --git a/package.json b/package.json index 1f40165..56f7f13 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "package": "bun scripts/npm-package.ts", "test:unit": "bun test tests/*.ts", "test:e2e": "bunx playwright test", - "test:types": "bunx tsc", + "test:types": "tsgo", "format": "biome format --write .", "format:check": "biome format .", "lint": "biome lint .", @@ -35,6 +35,7 @@ "@types/bun": "^1.3.3", "@types/jest": "^30.0.0", "@types/node": "^24.10.1", + "@typescript/native-preview": "^7.0.0-dev.20251122.1", "astro": "^4.16.19", "carbon-components-svelte": "0.93.0", "carbon-preprocess-svelte": "0.11.14", @@ -46,7 +47,6 @@ "postcss-merge-rules": "^7.0.7", "svelte": "^4.2.20", "svelte-focus-key": "latest", - "typescript": "^5.9.3", "vite": "^5.4.21" }, "repository": { diff --git a/tsconfig.json b/tsconfig.json index b108824..6ea5a70 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,8 @@ { "extends": "astro/tsconfigs/strictest", "compilerOptions": { - "baseUrl": ".", "noEmit": true, "checkJs": true, - "ignoreDeprecations": "5.0", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "paths": {