Skip to content

Commit 863a823

Browse files
authored
Added types reference for JSR release (#150)
I had failed to bring across the explicit reference to a types location from the previous JSR build process. This commit fixes that to enable the 1.0.0 release on JSR.
1 parent 8c00045 commit 863a823

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ npx esbuild src/index.ts \
2525
$DEBUG_ARG $MINIFY_ARG
2626

2727
# bundle ESM code to index.mjs
28+
# (--banner:js comment is for JSR's benefit)
2829
npx esbuild src/index.ts \
2930
--format=esm \
3031
--bundle \
3132
--keep-names \
3233
--inject:src/shims/shims.js \
3334
--define:BUNDLE_EXT=\"mjs\" \
3435
--target=es2020 \
36+
--banner:js='/* @ts-self-types="./index.d.mts" */' \
3537
--outfile=index.mjs \
3638
$DEBUG_ARG $MINIFY_ARG
3739

index.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* @ts-self-types="./index.d.mts" */
12
var vo=Object.create;var Te=Object.defineProperty;var xo=Object.getOwnPropertyDescriptor;var So=Object.getOwnPropertyNames;var Eo=Object.getPrototypeOf,Ao=Object.prototype.hasOwnProperty;var Co=(r,e,t)=>e in r?Te(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e)=>Te(r,"name",{value:e,configurable:!0});var z=(r,e)=>()=>(r&&(e=r(r=0)),e);var I=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ne=(r,e)=>{for(var t in e)Te(r,t,{get:e[t],
23
enumerable:!0})},Mn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of So(e))!Ao.
34
call(r,i)&&i!==t&&Te(r,i,{get:()=>e[i],enumerable:!(n=xo(e,i))||n.enumerable});return r};var xe=(r,e,t)=>(t=r!=null?vo(Eo(r)):{},Mn(e||!r||!r.__esModule?Te(t,"default",{value:r,enumerable:!0}):

0 commit comments

Comments
 (0)