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

pull/28788/head^2
Michael Telatynski 2022-09-30 17:12:16 +01:00 committed by GitHub
parent c2e2f406af
commit eaff7e945c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 19 deletions

View File

@ -27,9 +27,9 @@ jobs:
run: "yarn run lint:types"
- name: Switch js-sdk to release mode
working-directory: node_modules/matrix-js-sdk
run: |
scripts/ci/js-sdk-to-release.js
cd node_modules/matrix-js-sdk
scripts/switch_package_to_release.js
yarn install
yarn run build:compile
yarn run build:types

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();