Skip to content

Commit 6b94f6f

Browse files
authored
Merge branch 'main' into W-22283814-local-dev-ach-header-forwarding
2 parents f782409 + 5e43132 commit 6b94f6f

9 files changed

Lines changed: 91 additions & 309 deletions

File tree

.changeset/sdk-esm-only.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@salesforce/b2c-tooling-sdk': minor
3+
'b2c-vs-extension': patch
4+
---
5+
6+
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`.

.github/workflows/ci-vs-extension.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ jobs:
7373
- name: Build packages
7474
run: pnpm -r run build
7575

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

0 commit comments

Comments
 (0)