Skip to content

Commit

Permalink
well, this is weird, but does produce .d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed Mar 22, 2022
1 parent 70f443c commit 8f3f21a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default [
sourcemap: true,
},
external: ["util"],
plugins: [resolve(), commonjs(), typescript()],
plugins: [resolve(), commonjs(), typescript({ tsconfig: './tsconfig.json' })],
},
// {
// input: "build/compiled/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"include": ["src"],
"exclude": ["dist"],
"compilerOptions": {
/* TODO review and adjust settings */

Expand Down Expand Up @@ -44,7 +46,7 @@
// "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. */
// "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 All @@ -65,7 +67,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": "./", /* Specify the output directory for generated declaration files. */
"declarationDir": ".", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */

/* Interop Constraints */
Expand Down

0 comments on commit 8f3f21a

Please sign in to comment.