Skip to content

Commit 7e52fb4

Browse files
committed
chore: add types into dist export files
1 parent 1231fbf commit 7e52fb4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@
5757
"lint:fix": "eslint src/**/*.ts --fix"
5858
},
5959
"type": "module",
60-
"version": "2.1.0"
60+
"version": "2.1.1"
6161
}

tsconfig.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"include": ["./src/**/*.ts"],
23
"compilerOptions": {
34
/* Visit https://aka.ms/tsconfig to read more about this file */
45

@@ -11,7 +12,7 @@
1112
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1213

1314
/* Language and Environment */
14-
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15+
"target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1516
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1617
// "jsx": "preserve", /* Specify what JSX code is generated. */
1718
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
@@ -26,7 +27,7 @@
2627

2728
/* Modules */
2829
"module": "esnext" /* Specify what module code is generated. */,
29-
// "rootDir": "./", /* Specify the root folder within your source files. */
30+
// "rootDir": "./" /* Specify the root folder within your source files. */,
3031
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
3132
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3233
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
@@ -49,13 +50,13 @@
4950
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5051

5152
/* Emit */
52-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
5354
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5455
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
5556
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
5657
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5758
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58-
// "outDir": "./", /* Specify an output folder for all emitted files. */
59+
"outDir": "dist" /* Specify an output folder for all emitted files. */,
5960
// "removeComments": true, /* Disable emitting comments. */
6061
// "noEmit": true, /* Disable emitting files from a compilation. */
6162
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */

0 commit comments

Comments
 (0)