formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

chore: build CommonJS by default #674

Closed pyrocat101 closed 4 years ago

pyrocat101 commented 4 years ago

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.