Skip to content

Commit 1ea6fb8

Browse files
committed
feat: rename package from solid-node-loader to solid-register and update related references
1 parent 23758d7 commit 1ea6fb8

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "solid-node-loader",
2+
"name": "solid-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>",
@@ -27,8 +27,8 @@
2727
}
2828
},
2929
"scripts": {
30-
"test:ssr": "node --experimental-strip-types --import solid-node-loader/ssr --test tests/ssr.test.tsx",
31-
"test:client": "node --experimental-strip-types --conditions=browser --import solid-node-loader/client --test tests/client.test.tsx",
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",
3232
"build": "tsc --build",
3333
"prepublishOnly": "pnpm run build"
3434
},

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Solid Node Loader
1+
# Solid Register
22

33
Node loader for compiling JSX/TSX files using Solid's compiler.
44

@@ -7,21 +7,21 @@ Node loader for compiling JSX/TSX files using Solid's compiler.
77
Install the loader
88

99
```bash
10-
npm i solid-node-loader # or pnpm, yarn, etc.
10+
npm i solid-register # or pnpm, yarn, etc.
1111
```
1212

1313
Run jsx/tsx files in SSR mode
1414

1515
```bash
16-
node --import=solid-node-loader ./index.tsx
16+
node --import=solid-register ./index.tsx
1717
```
1818

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

2323
```bash
24-
node --conditions=browser --import=solid-node-loader/client ./index.tsx
24+
node --conditions=browser --import=solid-register/client ./index.tsx
2525
```
2626

2727
## Example

0 commit comments

Comments
 (0)