build: emit declaration in dist folder

If it's in the types folder, when importing a subpath like `axios-cache-interceptor/dist/storage/memory`, the types cannot be inferred.
This commit is contained in:
arthurfiorette 2021-11-23 09:50:46 -03:00
parent c2c409787a
commit e2de9288bd
No known key found for this signature in database
GPG Key ID: 9D190CD53C53C555

View File

@ -63,7 +63,7 @@
// "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
"declarationDir": "./types", /* Specify the output directory for generated declaration files. */
// "declarationDir": "./types", /* Specify the output directory for generated declaration files. */
/* Interop Constraints */
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */