Skip to content

Commit c614dba

Browse files
committed
docs: adds jsr score badge
1 parent 7e50f0b commit c614dba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
88
[![npm](https://img.shields.io/npm/v/@dschz/solid-create-script)](https://www.npmjs.com/package/@dschz/solid-create-script)
99
[![Bundle Size](https://img.shields.io/bundlephobia/minzip/@dschz/solid-create-script)](https://bundlephobia.com/package/@dschz/solid-create-script)
10+
[![JSR](https://jsr.io/badges/@dschz/solid-create-script/score)](https://jsr.io/@dschz/solid-create-script)
1011
[![CI](https://github.com/dsnchz/solid-create-script/actions/workflows/ci.yaml/badge.svg)](https://github.com/dsnchz/solid-create-script/actions/workflows/ci.yaml)
1112

1213
> SolidJS hook to load external scripts -- built on top of [`@dschz/load-script`](https://www.npmjs.com/package/@dschz/load-script).

tsup.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { defineConfig } from "tsup";
22
import * as preset from "tsup-preset-solid";
33

4+
import pkg from "./package.json";
5+
6+
47
const generateSolidPresetOptions = (watching: boolean): preset.PresetOptions => ({
58
entries: [
69
{
@@ -28,7 +31,7 @@ export default defineConfig((config) => {
2831

2932
const tsupOptions = preset
3033
.generateTsupOptions(parsedOptions)
31-
.map((tsupOption) => ({ name: "solid-create-script", ...tsupOption }));
34+
.map((tsupOption) => ({ name: pkg.name, ...tsupOption }));
3235

3336
return tsupOptions;
3437
});

0 commit comments

Comments
 (0)