Skip to content

Commit 6ad05e5

Browse files
fix: support for @nativescript-community/svelte-native (#2867)
* fix: support for @nativescript-community/svelte-native We moved the svelte-native plugin to @nativescript-community. This supports it while still supporting the old package * Add changeset for svelte-language-server patch Add a changeset for patching svelte-language-server. --------- Co-authored-by: Simon H <[email protected]>
1 parent edcb4ed commit 6ad05e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/kind-carrots-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte-language-server": patch
3+
---
4+
5+
fix: support for @nativescript-community/svelte-native

packages/language-server/src/plugins/typescript/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ async function createLanguageService(
794794
//override if we detect svelte-native
795795
if (workspacePath) {
796796
try {
797-
const svelteNativePkgInfo = getPackageInfo('svelte-native', workspacePath);
797+
const svelteNativePkgInfo = getPackageInfo('@nativescript-community/svelte-native', workspacePath) || getPackageInfo('svelte-native', workspacePath);
798798
if (svelteNativePkgInfo.path) {
799799
// For backwards compatibility
800800
parsedConfig.raw.svelteOptions = parsedConfig.raw.svelteOptions || {};

0 commit comments

Comments
 (0)