Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/sdk-esm-only.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@salesforce/b2c-tooling-sdk': minor
'b2c-vs-extension': patch
---

The SDK is now ESM-only — the dual-format `dist/cjs` build has been removed and the package exports map exposes only ESM. CommonJS consumers that previously did `require('@salesforce/b2c-tooling-sdk')` from a CJS package must either switch to `import` or rely on Node's `require(esm)` (Node ≥22.12). The VS Code extension has been converted to a `"type": "module"` package; its bundled entry is now `dist/extension.cjs`.
11 changes: 3 additions & 8 deletions .github/workflows/ci-vs-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ jobs:
- name: Build packages
run: pnpm -r run build

# Temporarily disabled: SDK dist/cjs emits ESM syntax (tsc with module: Node16
# respects the SDK's "type": "module"), which Node's CJS loader rejects when
# vscode-test requires it transitively from out/test/*.js. The production VSIX
# is unaffected because esbuild bundles the SDK directly. Re-enable once the
# SDK CJS emit is fixed.
# - name: Run VS Extension tests
# working-directory: packages/b2c-vs-extension
# run: xvfb-run -a pnpm run test
- name: Run VS Extension tests
working-directory: packages/b2c-vs-extension
run: xvfb-run -a pnpm run test
Loading
Loading