This PR changes tsconfig.json in all packages to build CommonJS by default, and optionally use tsconfig.esm.json to output ES module build results.
This is the preparation work for introducing composite project and incremental build to FormatJS repo. With composite project, it is possible to build all packages incrementally with tsc watch mode during the development, instead of going into individual subpackage to run npm run build.
This PR changes tsconfig.json in all packages to build CommonJS by default, and optionally use tsconfig.esm.json to output ES module build results.
This is the preparation work for introducing composite project and incremental build to FormatJS repo. With composite project, it is possible to build all packages incrementally with tsc watch mode during the development, instead of going into individual subpackage to run
npm run build
.