Skip to content

Commit 56f548f

Browse files
committed
Publish as unscoped nanostores-svelte-runes
Rename the package for a personal npm release under the author's account (the @nanostores scope isn't ours to publish to). Add a files allowlist so the tarball ships only index.js and index.d.ts.
1 parent 29ad031 commit 56f548f

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ stores.
1919

2020
```svelte
2121
<script>
22-
import { useStore } from '@nanostores/svelte-runes'
22+
import { useStore } from 'nanostores-svelte-runes'
2323
2424
import { profile } from '../stores/profile.js'
2525
@@ -42,7 +42,7 @@ stores.
4242
## Install
4343

4444
```sh
45-
npm install nanostores @nanostores/svelte-runes
45+
npm install nanostores nanostores-svelte-runes
4646
```
4747

4848
Requires Svelte `>=5.7.0` (when [`createSubscriber`] was added).
@@ -56,7 +56,7 @@ value. As long as you read `.current` inside a reactive context — markup,
5656

5757
```svelte
5858
<script>
59-
import { useStore } from '@nanostores/svelte-runes'
59+
import { useStore } from 'nanostores-svelte-runes'
6060
6161
import { router } from '../stores/router.js'
6262
@@ -75,7 +75,7 @@ from any other rune:
7575

7676
```svelte
7777
<script>
78-
import { useStore } from '@nanostores/svelte-runes'
78+
import { useStore } from 'nanostores-svelte-runes'
7979
8080
import { profile } from '../stores/profile.js'
8181
@@ -118,7 +118,7 @@ export let profile = atom({ name: 'Anna' })
118118

119119
```svelte
120120
<script>
121-
import { useStore } from '@nanostores/svelte-runes'
121+
import { useStore } from 'nanostores-svelte-runes'
122122
123123
import { $profile as profile } from '../stores/profile.js'
124124
@@ -137,7 +137,7 @@ For [`map`](https://github.com/nanostores/nanostores#maps) and
137137

138138
```svelte
139139
<script>
140-
import { useStore } from '@nanostores/svelte-runes'
140+
import { useStore } from 'nanostores-svelte-runes'
141141
142142
import { settings } from '../stores/settings.js'
143143

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface UseStoreOptions<SomeStore> {
2020
*
2121
* ```svelte
2222
* <script>
23-
* import { useStore } from '@nanostores/svelte-runes'
23+
* import { useStore } from 'nanostores-svelte-runes'
2424
*
2525
* import { profile } from '../stores/profile.js'
2626
*

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@nanostores/svelte-runes",
2+
"name": "nanostores-svelte-runes",
33
"version": "1.0.0",
44
"description": "Svelte 5 runes integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores",
55
"keywords": [
@@ -22,6 +22,10 @@
2222
"sideEffects": false,
2323
"types": "./index.d.ts",
2424
"svelte": "./index.js",
25+
"files": [
26+
"index.js",
27+
"index.d.ts"
28+
],
2529
"exports": {
2630
".": {
2731
"types": "./index.d.ts",

0 commit comments

Comments
 (0)