From 7db26b5531248e1d4f6d3a10e9c690c710f4e591 Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Thu, 28 Mar 2024 09:16:38 -0700 Subject: [PATCH] export types --- package.json | 1 + tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0832101..a41fba5 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.5.2", "description": "Command line tool to run JavaScript, TypeScript or HTML files in the browser.", "exports": "./dist/index.js", + "types": "./dist/index.d.ts", "type": "module", "bin": { "bx": "./bin/bx" diff --git a/tsconfig.json b/tsconfig.json index e4656ea..ed3715f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -49,7 +49,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": false, /* Create source map files for emitted JavaScript files. */