Skip to content
David Liu edited this page Feb 10, 2023 · 4 revisions

Welcome to the ts-collection wiki!

FAQ

Q: Why not we don't support to have *.js file in test folder

  • It is clumsy to have 2 set of configs for eslint. Either using overwrite field in single config file or using 2 config files is hard to manage.

Which configs are used for making a lib project than an end user project

  • in tsconfig.json
    • declaration: true
    • declarationMap: true
    • module: CommonJS # Specify what module code is generated.
  • in package.json
    • main: "dist/index.js",
    • types: "dist/index.d.ts",
Clone this wiki locally