Skip to content

Commit 265f91d

Browse files
authored
chore(sdk): try no minify on rc version (#1181)
1 parent 77e32c5 commit 265f91d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/publish-sdk.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
- name: Prepare sdk-bundle
112112
if: steps.semantic.outputs.new_release_published == 'true'
113113
run: |
114+
BRANCH=${GITHUB_REF##*/}
114115
pnpm build:bundle
115116
pnpm json -I -f package.json -e "this.dependencies=Object.fromEntries(Object.entries(this.dependencies).filter((entry) => ['@sentio/chain', '@sentio/runtime', 'piscina'].includes(entry['0'])))"
116117
pnpm json -I -f package.json -e 'this.name="@sentio/sdk-bundle"; this.scripts={}; this.peerDependencies={}; this.devDependencies={}; this.files = ["{lib,assets}"]'

packages/sdk/src/bundle.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineConfig({
1414
},
1515
entry,
1616
outDir: 'lib',
17-
minify: true,
17+
minify: process.env['BRANCH'] === 'release',
1818
sourcemap: true,
1919
clean: true,
2020
// https://github.com/egoist/tsup/issues/920, use `tsc --emitDeclarationOnly --declaration` as a workaround

0 commit comments

Comments
 (0)