From 8f1b069cfae4541d4c2f7d291cc040323a118ee3 Mon Sep 17 00:00:00 2001 From: sudoer777 Date: Wed, 31 May 2023 18:58:28 -0500 Subject: [PATCH] Hide typescript error --- astro-imagetools.config.mjs | 4 ++ package.json | 4 +- pnpm-lock.yaml | 58 ++++++++++++------------- src/components/content/index/Hero.astro | 1 + src/env.d.ts | 3 +- 5 files changed, 38 insertions(+), 32 deletions(-) diff --git a/astro-imagetools.config.mjs b/astro-imagetools.config.mjs index b59fcbc..4574f63 100644 --- a/astro-imagetools.config.mjs +++ b/astro-imagetools.config.mjs @@ -29,4 +29,8 @@ export default defineConfig({ }, }, }, + sizes: (breakpoints) => { + const maxWidth = breakpoints[breakpoints.length - 1] + return `(min-width: ${maxWidth}px) ${maxWidth}px, 100vw` + }, }) diff --git a/package.json b/package.json index 27ba35f..0d02e0a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "dependencies": { "@astrojs/tailwind": "^3.1.3", "@fontsource-variable/jetbrains-mono": "^5.0.3", - "astro": "^2.5.5", + "astro": "^2.5.6", "astro-imagetools": "^0.8.1", "astro-seo": "^0.7.2", "sharp": "^0.32.1", @@ -27,7 +27,7 @@ "eslint-config-prettier": "^8.8.0", "eslint-plugin-astro": "^0.27.1", "eslint-plugin-jsx-a11y": "^6.7.1", - "eslint-plugin-tailwindcss": "^3.12.0", + "eslint-plugin-tailwindcss": "^3.12.1", "find-up": "^6.3.0", "prettier": "^2.8.8", "prettier-plugin-astro": "^0.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 866fd58..0a405a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,16 +7,16 @@ settings: dependencies: '@astrojs/tailwind': specifier: ^3.1.3 - version: 3.1.3(astro@2.5.5)(tailwindcss@3.3.2) + version: 3.1.3(astro@2.5.6)(tailwindcss@3.3.2) '@fontsource-variable/jetbrains-mono': specifier: ^5.0.3 version: 5.0.3 astro: - specifier: ^2.5.5 - version: 2.5.5(sharp@0.32.1) + specifier: ^2.5.6 + version: 2.5.6(sharp@0.32.1) astro-imagetools: specifier: ^0.8.1 - version: 0.8.1(astro@2.5.5) + version: 0.8.1(astro@2.5.6) astro-seo: specifier: ^0.7.2 version: 0.7.2 @@ -53,8 +53,8 @@ devDependencies: specifier: ^6.7.1 version: 6.7.1(eslint@8.41.0) eslint-plugin-tailwindcss: - specifier: ^3.12.0 - version: 3.12.0(tailwindcss@3.3.2) + specifier: ^3.12.1 + version: 3.12.1(tailwindcss@3.3.2) find-up: specifier: ^6.3.0 version: 6.3.0 @@ -107,13 +107,13 @@ packages: vscode-uri: 3.0.7 dev: false - /@astrojs/markdown-remark@2.2.1(astro@2.5.5): + /@astrojs/markdown-remark@2.2.1(astro@2.5.6): resolution: {integrity: sha512-VF0HRv4GpC1XEMLnsKf6jth7JSmlt9qpqP0josQgA2eSpCIAC/Et+y94mgdBIZVBYH/yFnMoIxgKVe93xfO2GA==} peerDependencies: astro: ^2.5.0 dependencies: '@astrojs/prism': 2.1.2 - astro: 2.5.5(sharp@0.32.1) + astro: 2.5.6(sharp@0.32.1) github-slugger: 1.5.0 import-meta-resolve: 2.2.2 rehype-raw: 6.1.1 @@ -137,14 +137,14 @@ packages: prismjs: 1.29.0 dev: false - /@astrojs/tailwind@3.1.3(astro@2.5.5)(tailwindcss@3.3.2): + /@astrojs/tailwind@3.1.3(astro@2.5.6)(tailwindcss@3.3.2): resolution: {integrity: sha512-10S1omrv5K5HRVAZ0fBgN5vQykn2HRL332LAVFyBASMn1Ff6gDfSK+CPUeUu94eZUOEaPnECLK8EHAqZ8iY9CA==} peerDependencies: astro: ^2.5.0 tailwindcss: ^3.0.24 dependencies: '@proload/core': 0.3.3 - astro: 2.5.5(sharp@0.32.1) + astro: 2.5.6(sharp@0.32.1) autoprefixer: 10.4.14(postcss@8.4.24) postcss: 8.4.24 postcss-load-config: 4.0.1(postcss@8.4.24) @@ -1478,14 +1478,14 @@ packages: - supports-color dev: true - /astro-imagetools@0.8.1(astro@2.5.5): + /astro-imagetools@0.8.1(astro@2.5.6): resolution: {integrity: sha512-2E737IBqzuwkuK4FMYB9UmE1xmQWghn1HOHNMERrzZmGsKpGSAdQGo7nSnYwpy8amF+Do8sUx9wtCe2+6T4k+A==} engines: {node: ^14.15.0 || >=16.0.0} peerDependencies: astro: '>=0.26 || >=1.0.0-beta' dependencies: '@astropub/codecs': 0.4.4 - astro: 2.5.5(sharp@0.32.1) + astro: 2.5.6(sharp@0.32.1) file-type: 17.1.1 find-cache-dir: 3.3.2 find-up: 6.3.0 @@ -1499,8 +1499,8 @@ packages: resolution: {integrity: sha512-YnSqj4E6vbF7wRk3gcxOPHBjenhfgaINEJlTsnu4sovAyfyGEdQksbioYKoZ+vERRDaYvEricfSzC6fc9lieww==} dev: false - /astro@2.5.5(sharp@0.32.1): - resolution: {integrity: sha512-VRwnlfRtPALeOxfE4e7To5Vlu9pGwlTRWN1zkn1QTizwfg0rLirFTm6t2MCG/fUhlu/p3QO9tz8SpAIyDq53/Q==} + /astro@2.5.6(sharp@0.32.1): + resolution: {integrity: sha512-IdgEnjP8kqLEYgNbWcrRyqR4tUq1iEXI3AZ5RqV9PTaDd4l9H+UmN0oDjrzG8VTmCdpfSHGlQEr+0qkGPoIiOw==} engines: {node: '>=16.12.0', npm: '>=6.14.0'} hasBin: true peerDependencies: @@ -1511,7 +1511,7 @@ packages: dependencies: '@astrojs/compiler': 1.4.2 '@astrojs/language-server': 1.0.8 - '@astrojs/markdown-remark': 2.2.1(astro@2.5.5) + '@astrojs/markdown-remark': 2.2.1(astro@2.5.6) '@astrojs/telemetry': 2.1.1 '@astrojs/webapi': 2.2.0 '@babel/core': 7.22.1 @@ -1594,7 +1594,7 @@ packages: postcss: ^8.1.0 dependencies: browserslist: 4.21.7 - caniuse-lite: 1.0.30001491 + caniuse-lite: 1.0.30001492 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -1606,7 +1606,7 @@ packages: hasBin: true dependencies: browserslist: 4.21.7 - caniuse-lite: 1.0.30001491 + caniuse-lite: 1.0.30001492 normalize-range: 0.1.2 num2fraction: 1.2.2 picocolors: 0.2.1 @@ -1710,8 +1710,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001491 - electron-to-chromium: 1.4.414 + caniuse-lite: 1.0.30001492 + electron-to-chromium: 1.4.415 node-releases: 2.0.12 update-browserslist-db: 1.0.11(browserslist@4.21.7) @@ -1777,13 +1777,13 @@ packages: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} dependencies: browserslist: 4.21.7 - caniuse-lite: 1.0.30001491 + caniuse-lite: 1.0.30001492 lodash.memoize: 4.1.2 lodash.uniq: 4.5.0 dev: true - /caniuse-lite@1.0.30001491: - resolution: {integrity: sha512-17EYIi4TLnPiTzVKMveIxU5ETlxbSO3B6iPvMbprqnKh4qJsQGk5Nh1Lp4jIMAE0XfrujsJuWZAM3oJdMHaKBA==} + /caniuse-lite@1.0.30001492: + resolution: {integrity: sha512-2efF8SAZwgAX1FJr87KWhvuJxnGJKOnctQa8xLOskAXNXq8oiuqgl6u1kk3fFpsp3GgvzlRjiK1sl63hNtFADw==} /ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -2276,8 +2276,8 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: false - /electron-to-chromium@1.4.414: - resolution: {integrity: sha512-RRuCvP6ekngVh2SAJaOKT/hxqc9JAsK+Pe0hP5tGQIfonU2Zy9gMGdJ+mBdyl/vNucMG6gkXYtuM4H/1giws5w==} + /electron-to-chromium@1.4.415: + resolution: {integrity: sha512-3meOxxvyUOJVwa7cem6O2/MRPZ+FTzblSPSpG7biZoF9yOVrhCaS2l9C4jjW6YTm8uuEpmApuP0xQJSmUglfdg==} /emmet@2.4.4: resolution: {integrity: sha512-v8Mwpjym55CS3EjJgiCLWUB3J2HSR93jhzXW325720u8KvYxdI2voYLstW3pHBxFz54H6jFjayR9G4LfTG0q+g==} @@ -2486,8 +2486,8 @@ packages: semver: 6.3.0 dev: true - /eslint-plugin-tailwindcss@3.12.0(tailwindcss@3.3.2): - resolution: {integrity: sha512-DMfg8NcSV04V1v3iBgJGEhmRuapW36XZXyRV8WHdNFGEXGUkBwM9R8MujguKXeQKBG6VhjiX4t98rhzXdIlUFw==} + /eslint-plugin-tailwindcss@3.12.1(tailwindcss@3.3.2): + resolution: {integrity: sha512-LyIRV0rx6prTpJZsSCXSNJ34Yry3Nj9OJwvzh1xTsiG6+UCnAPW1Bx41s7vZzUDKMlwFgpUN9Me+NK12T4DHYg==} engines: {node: '>=12.13.0'} peerDependencies: tailwindcss: ^3.3.2 @@ -4100,8 +4100,8 @@ packages: '@types/nlcst': 1.0.0 dev: false - /node-abi@3.40.0: - resolution: {integrity: sha512-zNy02qivjjRosswoYmPi8hIKJRr8MpQyeKT6qlcq/OnOgA3Rhoae+IYOqsM9V5+JnHWmxKnWOT2GxvtqdtOCXA==} + /node-abi@3.43.0: + resolution: {integrity: sha512-QB0MMv+tn9Ur2DtJrc8y09n0n6sw88CyDniWSX2cHW10goQXYPK9ZpFJOktDS4ron501edPX6h9i7Pg+RnH5nQ==} engines: {node: '>=10'} dependencies: semver: 7.5.1 @@ -4858,7 +4858,7 @@ packages: minimist: 1.2.8 mkdirp-classic: 0.5.3 napi-build-utils: 1.0.2 - node-abi: 3.40.0 + node-abi: 3.43.0 pump: 3.0.0 rc: 1.2.8 simple-get: 4.0.1 diff --git a/src/components/content/index/Hero.astro b/src/components/content/index/Hero.astro index 9ae13b4..a13ab95 100644 --- a/src/components/content/index/Hero.astro +++ b/src/components/content/index/Hero.astro @@ -1,4 +1,5 @@ --- +// @ts-ignore import { Picture } from 'astro-imagetools/components' --- diff --git a/src/env.d.ts b/src/env.d.ts index c13bd73..75288c5 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,2 +1,3 @@ /// -/// \ No newline at end of file +/// +/// \ No newline at end of file