Consolidate base tsconfig settings #494
Open
+55
−74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Consolidates the shared
tscsettings intotsconfig.json, and specific build settings intotsconfig.module.jsonandtsconfig.node.json.Aims to resolve #493.
Details
Aside from updating to ES2020 in
dist-nodeand the addition ofsourceMaps indist-module, this should not alter the build or exports.tsconfig
tsconfig.json: sharedcompilerOptionsbetweenbuild:moduleandbuild:node. Does not reference any files, or specify an output.tsconfig.module.json: input & output settings forsrc -> dist-modulecompilation.tsconfig.node.json: input & output settings fordist-module -> dist-noderecompilation.package.json
engines.node >= 14: increased the minimum node version to 14, which AFAICT allows increasing thetsconfig.json"target"to"ES2020".build:typesscript: types are now generated bybuild:module.build:rebuildscript:compositetscconfiguration introducesincrementalcompilation and*.tsbuildinfoartifacts.build:clean, but that defeats the purpose and benefit ofincrementalbuilds. I figure it'll be less of a problem in actual usage.rm -rf ;withrimraf &&: based on Actually fix windows build #190, I believe this is the last outstanding change needed.