Skip to content

Commit

Permalink
Fix build error for easm sdk (#8031)
Browse files Browse the repository at this point in the history
* Fix build error for easm sdk

* update
  • Loading branch information
kazrael2119 authored Apr 8, 2024
1 parent bb98c07 commit 11ab9a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/js-sdk-release-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/js-sdk-release-tools",
"version": "2.7.4",
"version": "2.7.5",
"description": "",
"scripts": {
"start": "node dist/changelogToolCli.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export function changeConfigOfTestAndSample(packagePath: string, mode: ChangeMod
tsConfig = JSON.parse(tsConfigFile);
packageJson = JSON.parse(packageJsonFile);
apiExtractor = JSON.parse(apiExtractorFile);
const isModular = packageJson["exports"] !== undefined && sdkType === SdkType.Rlc;
tsConfig['include'] = ["./src/**/*.ts"];
// Only update other files for HLC and pure RLC not Modular
if(!isModular) {
const isEsm = packageJson["type"] === "module";
// Only update other files for common JS packages
if(!isEsm) {
packageJson['module'] = "./dist-esm/index.js";
if (sdkType === SdkType.Hlc) {
apiExtractor['mainEntryPointFilePath'] = "./dist-esm/index.d.ts";
Expand Down

0 comments on commit 11ab9a3

Please sign in to comment.