Skip to content

Commit c58d1f8

Browse files
build(audience): wire CDN bundle build into pnpm build
- Adds transpile:cdn script calling tsup --config ./tsup.cdn.js. - Orders build as transpile -> transpile:cdn -> typegen; ordering is load-bearing because the CDN config uses clean: false. - Ships dist/cdn/imtbl-audience.global.js in the published tarball via the existing files: ["dist"] field. - Studios can hotlink via unpkg.com/@imtbl/audience/dist/cdn/imtbl-audience.global.js until the CDN deploy pipeline lands. Refs SDK-115
1 parent 3121f3a commit c58d1f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/audience/sdk/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@
5252
},
5353
"repository": "immutable/ts-immutable-sdk.git",
5454
"scripts": {
55-
"build": "pnpm transpile && pnpm typegen",
55+
"build": "pnpm transpile && pnpm transpile:cdn && pnpm typegen",
5656
"transpile": "tsup --config tsup.config.js",
57+
"transpile:cdn": "tsup --config ./tsup.cdn.js",
5758
"typegen": "tsc --customConditions default --emitDeclarationOnly --outDir dist/types && rollup -c rollup.dts.config.js && find dist/types -name '*.d.ts' ! -name 'index.d.ts' -delete",
5859
"lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0",
5960
"pack:root": "pnpm pack --pack-destination $(dirname $(pnpm root -w))",

0 commit comments

Comments
 (0)