From ebebe15c45a17a15b7c381d058c839e34e64836a Mon Sep 17 00:00:00 2001 From: Aleksei Androsov Date: Tue, 26 Nov 2024 14:26:24 +0300 Subject: [PATCH] Add missing types to package (#4) --- package.json | 1 + tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 18fd1bb..c9b3919 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "4.0.0", "description": "plugin for descript to use redis as cache", "main": "./build/index.js", + "types": "./build/index.d.ts", "scripts": { "eslint": "npx eslint .", "test": "npx vitest", diff --git a/tsconfig.json b/tsconfig.json index 2de59c4..5dc8687 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -50,7 +50,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. */