Skip to content

Commit 5cd24f0

Browse files
committed
fix: correct package name references from solid-register to solid-node-register in package.json and README
1 parent d5b735a commit 5cd24f0

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "solid-register",
2+
"name": "solid-node-register",
33
"version": "1.0.0",
44
"description": "Node loader for compiling JSX/TSX files using Solid's compiler.",
55
"author": "Damian Tarnawski <gthetarnav@gmail.com>",
@@ -17,18 +17,22 @@
1717
"types": "./dist/register_ssr.d.ts",
1818
"import": "./dist/register_ssr.js"
1919
},
20+
"./hooks": {
21+
"types": "./dist/register_hooks.d.ts",
22+
"import": "./dist/register_hooks.js"
23+
},
2024
"./ssr": {
2125
"types": "./dist/register_ssr.d.ts",
2226
"import": "./dist/register_ssr.js"
2327
},
24-
"./client": {
28+
"./client": {
2529
"types": "./dist/register_client.d.ts",
2630
"import": "./dist/register_client.js"
2731
}
28-
},
32+
},
2933
"scripts": {
30-
"test:ssr": "node --experimental-strip-types --import solid-register --test tests/ssr.test.tsx",
31-
"test:client": "node --experimental-strip-types --conditions=browser --import solid-register/client --test tests/client.test.tsx",
34+
"test:ssr": "node --experimental-strip-types --import solid-node-register --test tests/ssr.test.tsx",
35+
"test:client": "node --experimental-strip-types --conditions=browser --import solid-node-register/client --test tests/client.test.tsx",
3236
"build": "tsc --build",
3337
"prepublishOnly": "pnpm run build"
3438
},

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ Requires Node `>=20.6.0`.
99
Install the loader
1010

1111
```bash
12-
npm i solid-register # or pnpm, yarn, etc.
12+
npm i solid-node-register # or pnpm, yarn, etc.
1313
```
1414

1515
Run jsx/tsx files in SSR mode
1616

1717
```bash
18-
node --import=solid-register ./index.tsx
18+
node --import=solid-node-register ./index.tsx
1919
```
2020

2121
Run jsx/tsx files in client mode.\
2222
Requires a browser condition to import the browser solid runtime.\
2323
Also requires for the DOM api to be mocked with `jsdom` or similar.
2424

2525
```bash
26-
node --conditions=browser --import=solid-register/client ./index.tsx
26+
node --conditions=browser --import=solid-node-register/client ./index.tsx
2727
```
2828

2929
## TypeScript

0 commit comments

Comments
 (0)