Autogenerate TypeScript declaration files (#2359)

* Remove .d.ts and fix type errors

* Fix failing test

* Upgrade roll up to remove maxlisteners warning

* Refactor type generation and make build script run in sequence to avoid OOM errors in GitHub actions

* Small change

* Fix playground TS errors
This commit is contained in:
John Flockton
2022-06-14 10:42:43 +01:00
committed by GitHub
parent c739c563e6
commit c26e41d595
109 changed files with 361 additions and 3169 deletions

View File

@ -13,6 +13,7 @@ const {LEXICAL_PKG, DEFAULT_PKGS} = require('./npm/packages');
const packages = [LEXICAL_PKG, ...DEFAULT_PKGS];
packages.forEach((pkg) => {
fs.removeSync(path.resolve(`./.ts-temp`));
fs.removeSync(path.resolve(`./packages/${pkg}/dist`));
fs.removeSync(path.resolve(`./packages/${pkg}/npm`));
});