From 25627e94680a7a30eb6cf9b2ff455db6b4b7e6d3 Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Mon, 19 Feb 2024 11:45:28 +0900 Subject: [PATCH 1/6] Add .editorconfig The configuration is based on the current repository files. CSS tab indent style is based on example/public/global.css --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..21982b1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{json,svelte,ts,js}] +indent_style = space +indent_size = 2 + +[*.css] +indent_style = tab From 9a1f42d1fab76abbedea6954f0770aa372176b3c Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Mon, 19 Feb 2024 11:53:21 +0900 Subject: [PATCH 2/6] Update package-lock.json --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8f83e5f..5d48fd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "svelte-boring-avatars", - "version": "1.2.4", + "version": "1.2.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "svelte-boring-avatars", - "version": "1.2.4", + "version": "1.2.5", "license": "MIT", "devDependencies": { "@rollup/plugin-node-resolve": "^13.3.0", From 48e05dc3128bda3fa1a0023276283a6aa03f042e Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Mon, 19 Feb 2024 11:53:28 +0900 Subject: [PATCH 3/6] Export types in package.json Configured according to https://kit.svelte.dev/docs/packaging#anatomy-of-a-package-json-exports I've tested it locally by importing this package into a SvelteKit v2 project. The error I was resolving was: ../src/lib/figma/navigation/AvatarVariant.svelte:19:44 Error: Cannot find module 'svelte-boring-avatars' or its corresponding type declarations. (ts)