Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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 isEasm = packageJson["type"] === "module";
// Only update other files for common JS packages
if(!isEasm) {
packageJson['module'] = "./dist-esm/index.js";
if (sdkType === SdkType.Hlc) {
apiExtractor['mainEntryPointFilePath'] = "./dist-esm/index.d.ts";
Expand Down