Skip to content

Commit

Permalink
feat: add .d.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
0529bill committed Jul 12, 2022
1 parent 2beddfb commit f6cf76c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export default [
format: 'cjs',
sourcemap: true,
},
plugins: [terser(), typescript()],
plugins: [terser(), typescript({ tsconfig: './tsconfig.json' })],
},
]
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */

/* Emit */
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
"declarationDir": ".",
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
Expand Down

0 comments on commit f6cf76c

Please sign in to comment.