fix build error 115d7528
Steve · 2024-09-18 00:17 5 file(s) · +79 −29
astro.config.ts +1 −2
2 2
import mdx from "@astrojs/mdx";
3 3
import tailwind from "@astrojs/tailwind";
4 4
import sitemap from "@astrojs/sitemap";
5 -
import prefetch from "@astrojs/prefetch";
6 5
7 6
// https://astro.build/config
8 7
export default defineConfig({
14 13
			wrap: true,
15 14
		},
16 15
	},
16 +
	prefetch: true,
17 17
	integrations: [
18 18
		mdx({}),
19 19
		tailwind({
22 22
			},
23 23
		}),
24 24
		sitemap(),
25 -
		prefetch(),
26 25
	],
27 26
	vite: {
28 27
		define: {
package.json +1 −1
44 44
	},
45 45
	"dependencies": {
46 46
		"@astrojs/partytown": "^2.1.2",
47 -
		"@astrojs/prefetch": "^0.4.1",
48 47
		"@astrojs/rss": "^4.0.7",
48 +
		"@astrojs/ts-plugin": "^1.10.2",
49 49
		"@vercel/analytics": "^0.1.10",
50 50
		"astro": "^4.15.7",
51 51
		"astro-google-analytics": "^1.0.3",
pnpm-lock.yaml +63 −21
11 11
      '@astrojs/partytown':
12 12
        specifier: ^2.1.2
13 13
        version: 2.1.2
14 -
      '@astrojs/prefetch':
15 -
        specifier: ^0.4.1
16 -
        version: 0.4.1
17 14
      '@astrojs/rss':
18 15
        specifier: ^4.0.7
19 16
        version: 4.0.7
17 +
      '@astrojs/ts-plugin':
18 +
        specifier: ^1.10.2
19 +
        version: 1.10.2
20 20
      '@vercel/analytics':
21 21
        specifier: ^0.1.10
22 22
        version: 0.1.11(react@18.3.1)
152 152
  '@astrojs/partytown@2.1.2':
153 153
    resolution: {integrity: sha512-1a9T5lqxtnrw0qLPo1KwliUvaaUzPNPtWucD8VxdwT7zqcpODFk1RzGgAgqVo+YhutFrTu/qclbtnOfXBuskjw==}
154 154
155 -
  '@astrojs/prefetch@0.4.1':
156 -
    resolution: {integrity: sha512-bpC875BqeIuWVgqhi4X814ftzzbKocaLkiZczaj8k5J2SRpueIGkww3XmD+yY/Ekkm9j30aS3neVO6wSm4IJNA==}
157 -
    deprecated: '@astrojs/prefetch is deprecated in favor of the builtin prefetch option. Please see the migration guide for more information: https://docs.astro.build/en/guides/prefetch/#migrating-from-astrojsprefetch'
158 -
159 155
  '@astrojs/prism@3.1.0':
160 156
    resolution: {integrity: sha512-Z9IYjuXSArkAUx3N6xj6+Bnvx8OdUSHA8YoOgyepp3+zJmtVYJIl/I18GozdJVW1p5u/CNpl3Km7/gwTJK85cw==}
161 157
    engines: {node: ^18.17.1 || ^20.3.0 || >=21.0.0}
175 171
  '@astrojs/telemetry@3.1.0':
176 172
    resolution: {integrity: sha512-/ca/+D8MIKEC8/A9cSaPUqQNZm+Es/ZinRv0ZAzvu2ios7POQSsVD+VOj7/hypWNsNM3T7RpfgNq7H2TU1KEHA==}
177 173
    engines: {node: ^18.17.1 || ^20.3.0 || >=21.0.0}
174 +
175 +
  '@astrojs/ts-plugin@1.10.2':
176 +
    resolution: {integrity: sha512-Q7EvUh9dU9Ufi6Jfe5JRcisBuremlLZ7jJImUY2/eMe6OVwCXSmETDir/tVwT0K+lnfNiUwju9qHZYX2/5ch0Q==}
177 +
178 +
  '@astrojs/yaml2ts@0.2.1':
179 +
    resolution: {integrity: sha512-CBaNwDQJz20E5WxzQh4thLVfhB3JEEGz72wRA+oJp6fQR37QLAqXZJU0mHC+yqMOQ6oj0GfRPJrz6hjf+zm6zA==}
178 180
179 181
  '@babel/code-frame@7.24.7':
180 182
    resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==}
879 881
    peerDependencies:
880 882
      react: ^16.8||^17||^18
881 883
884 +
  '@volar/language-core@2.4.5':
885 +
    resolution: {integrity: sha512-F4tA0DCO5Q1F5mScHmca0umsi2ufKULAnMOVBfMsZdT4myhVl4WdKRwCaKcfOkIEuyrAVvtq1ESBdZ+rSyLVww==}
886 +
887 +
  '@volar/source-map@2.4.5':
888 +
    resolution: {integrity: sha512-varwD7RaKE2J/Z+Zu6j3mNNJbNT394qIxXwdvz/4ao/vxOfyClZpSDtLKkwWmecinkOVos5+PWkWraelfMLfpw==}
889 +
890 +
  '@volar/typescript@2.4.5':
891 +
    resolution: {integrity: sha512-mcT1mHvLljAEtHviVcBuOyAwwMKz1ibXTi5uYtP/pf4XxoAzpdkQ+Br2IC0NPCvLCbjPZmbf3I0udndkfB1CDg==}
892 +
882 893
  acorn-jsx@5.3.2:
883 894
    resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
884 895
    peerDependencies:
1318 1329
  eastasianwidth@0.2.0:
1319 1330
    resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
1320 1331
1321 -
  electron-to-chromium@1.5.24:
1322 -
    resolution: {integrity: sha512-0x0wLCmpdKFCi9ulhvYZebgcPmHTkFVUfU2wzDykadkslKwT4oAmDTHEKLnlrDsMGZe4B+ksn8quZfZjYsBetA==}
1332 +
  electron-to-chromium@1.5.25:
1333 +
    resolution: {integrity: sha512-kMb204zvK3PsSlgvvwzI3wBIcAw15tRkYk+NQdsjdDtcQWTp2RABbMQ9rUBy8KNEOM+/E6ep+XC3AykiWZld4g==}
1323 1334
1324 1335
  emoji-regex@10.4.0:
1325 1336
    resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==}
2564 2575
2565 2576
  parse5@7.1.2:
2566 2577
    resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}
2578 +
2579 +
  path-browserify@1.0.1:
2580 +
    resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
2567 2581
2568 2582
  path-exists@4.0.0:
2569 2583
    resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
3160 3174
  thenify@3.3.1:
3161 3175
    resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==}
3162 3176
3163 -
  throttles@1.0.1:
3164 -
    resolution: {integrity: sha512-fab7Xg+zELr9KOv4fkaBoe/b3L0GMGLd0IBSCn16GoE/Qx6/OfCr1eGNyEcDU2pUA79qQfZ8kPQWlRuok4YwTw==}
3165 -
    engines: {node: '>=6'}
3166 -
3167 3177
  tinyexec@0.3.0:
3168 3178
    resolution: {integrity: sha512-tVGE0mVJPGb0chKhqmsoosjsS+qUnJVGJpZgsHYQcGoPlG3B51R3PouqTgEGH2Dc9jjFyOqOpix6ZHNMXp1FZg==}
3169 3179
3362 3372
    peerDependenciesMeta:
3363 3373
      vite:
3364 3374
        optional: true
3375 +
3376 +
  vscode-languageserver-textdocument@1.0.12:
3377 +
    resolution: {integrity: sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==}
3378 +
3379 +
  vscode-uri@3.0.8:
3380 +
    resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==}
3365 3381
3366 3382
  web-namespaces@2.0.1:
3367 3383
    resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==}
3535 3551
      '@builder.io/partytown': 0.10.2
3536 3552
      mrmime: 2.0.0
3537 3553
3538 -
  '@astrojs/prefetch@0.4.1':
3539 -
    dependencies:
3540 -
      throttles: 1.0.1
3541 -
3542 3554
  '@astrojs/prism@3.1.0':
3543 3555
    dependencies:
3544 3556
      prismjs: 1.29.0
3575 3587
      which-pm-runs: 1.1.0
3576 3588
    transitivePeerDependencies:
3577 3589
      - supports-color
3590 +
3591 +
  '@astrojs/ts-plugin@1.10.2':
3592 +
    dependencies:
3593 +
      '@astrojs/compiler': 2.10.3
3594 +
      '@astrojs/yaml2ts': 0.2.1
3595 +
      '@jridgewell/sourcemap-codec': 1.5.0
3596 +
      '@volar/language-core': 2.4.5
3597 +
      '@volar/typescript': 2.4.5
3598 +
      semver: 7.6.3
3599 +
      vscode-languageserver-textdocument: 1.0.12
3600 +
3601 +
  '@astrojs/yaml2ts@0.2.1':
3602 +
    dependencies:
3603 +
      yaml: 2.5.1
3578 3604
3579 3605
  '@babel/code-frame@7.24.7':
3580 3606
    dependencies:
4256 4282
    dependencies:
4257 4283
      react: 18.3.1
4258 4284
4285 +
  '@volar/language-core@2.4.5':
4286 +
    dependencies:
4287 +
      '@volar/source-map': 2.4.5
4288 +
4289 +
  '@volar/source-map@2.4.5': {}
4290 +
4291 +
  '@volar/typescript@2.4.5':
4292 +
    dependencies:
4293 +
      '@volar/language-core': 2.4.5
4294 +
      path-browserify: 1.0.1
4295 +
      vscode-uri: 3.0.8
4296 +
4259 4297
  acorn-jsx@5.3.2(acorn@8.12.1):
4260 4298
    dependencies:
4261 4299
      acorn: 8.12.1
4532 4570
  browserslist@4.23.3:
4533 4571
    dependencies:
4534 4572
      caniuse-lite: 1.0.30001660
4535 -
      electron-to-chromium: 1.5.24
4573 +
      electron-to-chromium: 1.5.25
4536 4574
      node-releases: 2.0.18
4537 4575
      update-browserslist-db: 1.1.0(browserslist@4.23.3)
4538 4576
4791 4829
4792 4830
  eastasianwidth@0.2.0: {}
4793 4831
4794 -
  electron-to-chromium@1.5.24: {}
4832 +
  electron-to-chromium@1.5.25: {}
4795 4833
4796 4834
  emoji-regex@10.4.0: {}
4797 4835
6535 6573
    dependencies:
6536 6574
      entities: 4.5.0
6537 6575
6576 +
  path-browserify@1.0.1: {}
6577 +
6538 6578
  path-exists@4.0.0: {}
6539 6579
6540 6580
  path-is-absolute@1.0.1: {}
7243 7283
    dependencies:
7244 7284
      any-promise: 1.3.0
7245 7285
7246 -
  throttles@1.0.1: {}
7247 -
7248 7286
  tinyexec@0.3.0: {}
7249 7287
7250 7288
  to-fast-properties@2.0.0: {}
7440 7478
  vitefu@1.0.2(vite@5.4.6(@types/node@22.5.5)):
7441 7479
    optionalDependencies:
7442 7480
      vite: 5.4.6(@types/node@22.5.5)
7481 +
7482 +
  vscode-languageserver-textdocument@1.0.12: {}
7483 +
7484 +
  vscode-uri@3.0.8: {}
7443 7485
7444 7486
  web-namespaces@2.0.1: {}
7445 7487
tailwind.config.cjs +1 −2
28 28
			},
29 29
			fontFamily: {
30 30
				// Add any custom fonts here
31 -
				sans: ['Commit Mono',...fontFamily.sans],
31 +
				sans: ["Commit Mono", ...fontFamily.sans],
32 32
				serif: [...fontFamily.serif],
33 33
			},
34 34
			transitionProperty: {
94 94
	},
95 95
	plugins: [
96 96
		require("@tailwindcss/typography"),
97 -
		require("@tailwindcss/line-clamp"),
98 97
		require("@tailwindcss/aspect-ratio"),
99 98
		plugin(function ({ addComponents }) {
100 99
			addComponents({
tsconfig.json +13 −3
1 1
{
2 -
	"extends": "astro/tsconfigs/strictest",
2 +
	"extends": "astro/tsconfigs/base",
3 3
	"compilerOptions": {
4 4
		"baseUrl": ".",
5 5
		"paths": {
6 -
			"@/*": ["src/*"]
7 -
		}
6 +
			"@/components/*": ["src/components/*.astro"],
7 +
			"@/layouts/*": ["src/layouts/*.astro"],
8 +
			"@/utils": ["src/utils/index.ts"],
9 +
			"@/stores/*": ["src/stores/*"],
10 +
			"@/data/*": ["src/data/*"],
11 +
			"@/site-config": ["src/site.config.ts"]
12 +
		},
13 +
		"plugins": [
14 +
			{
15 +
				"name": "@astrojs/ts-plugin"
16 +
			}
17 +
		]
8 18
	},
9 19
	"exclude": ["node_modules", "**/node_modules/*", ".vscode", "dist"]
10 20
}