Skip to content

Commit

Permalink
Declare matrix-js-sdk as an ES module
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Jun 26, 2024
1 parent 0210106 commit ecd9fd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/switch_package_to_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ async function main() {
pkgJson[field] = pkgJson["matrix_lib_" + field];
}
}

// matrix-js-sdk is built into ECMAScript modules. Make sure we declare it as such.
// See https://nodejs.org/api/packages.html#type.
pkgJson['type'] = 'module';

await fsProm.writeFile(PKGJSON, JSON.stringify(pkgJson, null, 2));
}

Expand Down

0 comments on commit ecd9fd2

Please sign in to comment.