From c98dda39c53e42c1867fa1ca77131cf9af93cccd Mon Sep 17 00:00:00 2001 From: Mihira Jayasekera Date: Mon, 29 Jul 2024 12:35:27 -0500 Subject: [PATCH] fix: install `svelte-preprocess` to avoid editor error See https://github.com/sveltejs/language-tools/issues/1683#issuecomment-1279886738. --- package-lock.json | 59 ++++++++++++++++++++++++++++++++++++++++++++++- package.json | 3 ++- 2 files changed, 60 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 718c498..600ee92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,8 @@ "prettier-plugin-astro": "^0.14.0", "prettier-plugin-svelte": "^3.2.6", "probe-image-size": "^7.2.3", - "sass": "1.51.0" + "sass": "1.51.0", + "svelte-preprocess": "^6.0.2" } }, "node_modules/@ampproject/remapping": { @@ -8295,6 +8296,62 @@ "svelte": "^3.19.0 || ^4.0.0" } }, + "node_modules/svelte-preprocess": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-6.0.2.tgz", + "integrity": "sha512-OvDTLfaOkkhjprbDKO0SOCkjNYuHy16dbD4SpqbIi6QiabOMHxRT4km5/dzbFFkmW1L0E2INF3MFltG2pgOyKQ==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "engines": { + "node": ">= 18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.10.2", + "coffeescript": "^2.5.1", + "less": "^3.11.3 || ^4.0.0", + "postcss": "^7 || ^8", + "postcss-load-config": ">=3", + "pug": "^3.0.0", + "sass": "^1.26.8", + "stylus": ">=0.55", + "sugarss": "^2.0.0 || ^3.0.0 || ^4.0.0", + "svelte": "^4.0.0 || ^5.0.0-next.100 || ^5.0.0", + "typescript": "^5.0.0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "coffeescript": { + "optional": true + }, + "less": { + "optional": true + }, + "postcss": { + "optional": true + }, + "postcss-load-config": { + "optional": true + }, + "pug": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, "node_modules/svelte/node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", diff --git a/package.json b/package.json index 8195a2c..b7f23c7 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "prettier-plugin-astro": "^0.14.0", "prettier-plugin-svelte": "^3.2.6", "probe-image-size": "^7.2.3", - "sass": "1.51.0" + "sass": "1.51.0", + "svelte-preprocess": "^6.0.2" }, "dependencies": { "bigger-picture": "^1.1.1",