We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a14c741 commit 91e24f7Copy full SHA for 91e24f7
1 file changed
packages/b2c-tooling-sdk/src/version.ts
@@ -11,7 +11,8 @@
11
import {createRequire} from 'node:module';
12
13
const require = createRequire(import.meta.url);
14
-const pkg = require('../package.json') as {name: string; version: string};
+// Use the package.json exports path to resolve correctly from both src/ and dist/
15
+const pkg = require('@salesforce/b2c-tooling-sdk/package.json') as {name: string; version: string};
16
17
/**
18
* The SDK package name.
0 commit comments