File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 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 ) .
Original file line number Diff line number Diff line change 11import { defineConfig } from "tsup" ;
22import * as preset from "tsup-preset-solid" ;
33
4+ import pkg from "./package.json" ;
5+
6+
47const 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} ) ;
You can’t perform that action at this time.
0 commit comments