Skip to content

Commit 6e3ad93

Browse files
committed
chore: update package scope and add jsr config
1 parent c12cbc9 commit 6e3ad93

File tree

5 files changed

+51
-38
lines changed

5 files changed

+51
-38
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ jobs:
1818
- name: Setup Bun
1919
uses: oven-sh/setup-bun@v1
2020
with:
21-
bun-version: latest
21+
bun-version: 1.2.12
2222
- name: Install Dependencies
2323
run: bun install --frozen-lockfile
24+
- name: Type Check
25+
run: bun run typecheck
2426
- name: Lint Check
2527
run: bun run lint
2628
- name: Format Check
2729
run: bun run format
30+
- name: Run Tests
31+
run: bun run test:cov

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44

55
[![NPM Version](https://img.shields.io/npm/v/solid-create-script.svg?style=for-the-badge)](https://www.npmjs.com/package/solid-create-script) [![Build Status](https://img.shields.io/github/actions/workflow/status/thedanchez/solid-create-script/ci.yaml?branch=main&logo=github&style=for-the-badge)](https://github.com/thedanchez/solid-create-script/actions/workflows/ci.yaml) [![bun](https://img.shields.io/badge/maintained%20with-bun-cc00ff.svg?style=for-the-badge&logo=bun)](https://bun.sh/)
66

7-
# solid-create-script
7+
# @dschz/solid-create-script
88

99
Utility function to dynamically load external scripts in both declarative and imperative styles within SolidJS.
1010

1111
## Installation
1212

1313
```bash
14-
npm install solid-js solid-create-script
15-
pnpm add solid-js solid-create-script
16-
yarn add solid-js solid-create-script
17-
bun add solid-js solid-create-script
14+
npm install solid-js @dschz/solid-create-script
15+
pnpm add solid-js @dschz/solid-create-script
16+
yarn add solid-js @dschz/solid-create-script
17+
bun add solid-js @dschz/solid-create-script
1818
```
1919

2020
## Summary
2121

2222
This library exports two APIs: `createScript` and `loadScript`.
2323

2424
```ts
25-
import { createScript, loadScript } from "solid-create-script";
25+
import { createScript, loadScript } from "@dschz/solid-create-script";
2626
```
2727

2828
## API Breakdown
@@ -51,7 +51,7 @@ It is useful for:
5151

5252
```ts
5353
import { Switch, Match } from "solid-js"
54-
import { createScript } from "solid-create-script"
54+
import { createScript } from "@dschz/solid-create-script"
5555

5656
const CustomComponent = () => {
5757
const script = createScript("https://example.com/library.js", { async: true });
@@ -94,7 +94,7 @@ Useful for:
9494

9595
```ts
9696
import { Switch, Match, onMount } from "solid-js"
97-
import { loadScript } from "solid-create-script"
97+
import { loadScript } from "@dschz/solid-create-script"
9898

9999
const CustomComponent = () => {
100100
let containerRef!: HTMLElement;

bun.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@
77
"@changesets/cli": "^2.29.3",
88
"@dschz/try-catch": "^1.0.2",
99
"@solidjs/testing-library": "^0.8.10",
10-
"@testing-library/jest-dom": "^6.5.0",
11-
"@types/bun": "^1.1.10",
12-
"@typescript-eslint/eslint-plugin": "^8.7.0",
13-
"@typescript-eslint/parser": "^8.7.0",
14-
"@vitest/coverage-istanbul": "^2.1.1",
15-
"eslint": "^8.57.0",
10+
"@testing-library/jest-dom": "^6.6.3",
11+
"@types/bun": "^1.2.12",
12+
"@typescript-eslint/eslint-plugin": "^8.32.0",
13+
"@typescript-eslint/parser": "^8.32.0",
14+
"@vitest/coverage-istanbul": "^2.1.9",
15+
"eslint": "^8.57.1",
1616
"eslint-plugin-simple-import-sort": "^12.1.1",
17-
"eslint-plugin-solid": "^0.14.3",
17+
"eslint-plugin-solid": "^0.14.5",
1818
"jsdom": "^25.0.1",
19-
"prettier": "^3.3.3",
20-
"tsup": "^8.3.0",
19+
"prettier": "^3.5.3",
20+
"tsup": "^8.4.0",
2121
"tsup-preset-solid": "^2.2.0",
22-
"typescript": "^5.6.2",
23-
"vite": "^5.4.8",
24-
"vite-plugin-solid": "^2.10.2",
25-
"vitest": "^2.1.1",
22+
"typescript": "^5.8.3",
23+
"vite": "^5.4.19",
24+
"vite-plugin-solid": "^2.11.6",
25+
"vitest": "^2.1.9",
2626
},
2727
"peerDependencies": {
28-
"solid-js": ">=1.8.0",
28+
"solid-js": "^1.9.6",
2929
},
3030
},
3131
},

jsr.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "@dschz/solid-create-script",
3+
"version": "1.1.0",
4+
"license": "MIT",
5+
"exports": "./src/index.tsx"
6+
}

package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "solid-create-script",
2+
"name": "@dschz/solid-create-script",
33
"version": "1.1.0",
44
"description": "Solid utility hook to dynamically load an external script.",
55
"type": "module",
@@ -12,6 +12,9 @@
1212
"bugs": {
1313
"url": "https://github.com/thedanchez/solid-create-script/issues"
1414
},
15+
"publishConfig": {
16+
"access": "public"
17+
},
1518
"exports": {
1619
"solid": "./dist/index.jsx",
1720
"import": {
@@ -56,24 +59,24 @@
5659
"@changesets/cli": "^2.29.3",
5760
"@dschz/try-catch": "^1.0.2",
5861
"@solidjs/testing-library": "^0.8.10",
59-
"@testing-library/jest-dom": "^6.5.0",
60-
"@types/bun": "^1.1.10",
61-
"@typescript-eslint/eslint-plugin": "^8.7.0",
62-
"@typescript-eslint/parser": "^8.7.0",
63-
"@vitest/coverage-istanbul": "^2.1.1",
64-
"eslint": "^8.57.0",
62+
"@testing-library/jest-dom": "^6.6.3",
63+
"@types/bun": "^1.2.12",
64+
"@typescript-eslint/eslint-plugin": "^8.32.0",
65+
"@typescript-eslint/parser": "^8.32.0",
66+
"@vitest/coverage-istanbul": "^2.1.9",
67+
"eslint": "^8.57.1",
6568
"eslint-plugin-simple-import-sort": "^12.1.1",
66-
"eslint-plugin-solid": "^0.14.3",
69+
"eslint-plugin-solid": "^0.14.5",
6770
"jsdom": "^25.0.1",
68-
"prettier": "^3.3.3",
69-
"tsup": "^8.3.0",
71+
"prettier": "^3.5.3",
72+
"tsup": "^8.4.0",
7073
"tsup-preset-solid": "^2.2.0",
71-
"typescript": "^5.6.2",
72-
"vite": "^5.4.8",
73-
"vite-plugin-solid": "^2.10.2",
74-
"vitest": "^2.1.1"
74+
"typescript": "^5.8.3",
75+
"vite": "^5.4.19",
76+
"vite-plugin-solid": "^2.11.6",
77+
"vitest": "^2.1.9"
7578
},
7679
"peerDependencies": {
77-
"solid-js": ">=1.8.0"
80+
"solid-js": "^1.9.6"
7881
}
7982
}

0 commit comments

Comments
 (0)