1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Consolidate js-sdk release mode typing CI (#9326)

This commit is contained in:
Michael Telatynski
2022-09-30 17:12:16 +01:00
committed by GitHub
parent c2e2f406af
commit eaff7e945c
2 changed files with 2 additions and 19 deletions

View File

@ -1,17 +0,0 @@
#!/usr/bin/env node
const fsProm = require('fs/promises');
const PKGJSON = 'node_modules/matrix-js-sdk/package.json';
async function main() {
const pkgJson = JSON.parse(await fsProm.readFile(PKGJSON, 'utf8'));
for (const field of ['main', 'typings']) {
if (pkgJson["matrix_lib_"+field] !== undefined) {
pkgJson[field] = pkgJson["matrix_lib_"+field];
}
}
await fsProm.writeFile(PKGJSON, JSON.stringify(pkgJson, null, 2));
}
main();