Skip to content

Commit 529b53a

Browse files
generate declaration files for ts
1 parent 687853d commit 529b53a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.49.1",
44
"description": "A framework for developing and distributing html components",
55
"main": "./dist/index.js",
6+
"types": "./dist/index.d.ts",
67
"bin": {
78
"oc": "./dist/oc-cli.js"
89
},

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
4545

4646
/* Emit */
47-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
47+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
4848
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
4949
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
50+
// "sourceMap": true /* Create source map files for emitted JavaScript files. */,
5151
// "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. */
5252
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
5353
// "removeComments": true, /* Disable emitting comments. */

0 commit comments

Comments
 (0)