Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correctly map /unstyled/*.svelte imports #27

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ This component is minimally styled; override the default styles by targeting the

### Unstyled components

Use the unstyled components located in the `svelte/src/unstyled` folder if you prefer to style the components from scratch.
Use the unstyled components located in the `svelte-pincode/unstyled` folder if you prefer to style the components from scratch.

```html
<script>
import Pincode from "svelte-pincode/src/unstyled/Pincode.svelte";
import PincodeInput from "svelte-pincode/src/unstyled/PincodeInput.svelte";
import Pincode from "svelte-pincode/unstyled/Pincode.svelte";
import PincodeInput from "svelte-pincode/unstyled/PincodeInput.svelte";
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"./unstyled/*.svelte": {
"types": "./src/unstyled/*.svelte.d.ts",
"import": "./src/*.svelte"
"import": "./src/unstyled/*.svelte"
}
},
"scripts": {
Expand Down