From 974c751c2bb623d0f09ac2d5f2d2fcd7f4896b7d Mon Sep 17 00:00:00 2001 From: saltyaom Date: Fri, 9 Dec 2022 16:59:09 +0700 Subject: [PATCH] fix: add main fields for bundlephobia --- CHANGELOG.md | 5 ++++- package.json | 1 + tsconfig.cjs.json | 2 +- tsconfig.esm.json | 2 +- tsconfig.json | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b846ffa..73654ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ -# 0.1.0-rc.2 - x Dec 2022 +# 0.1.0-rc.2 - 9 Dec 2022 Improvement: - Support for Elysia 0.1.0-rc.1 onward +Fix: +- Add main fields Bundlephobia + # 0.1.0-rc.1 - 6 Dec 2022 Improvement: - Support for Elysia 0.1.0-rc.1 onward diff --git a/package.json b/package.json index 94bdacf..9969ffc 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "url": "https://github.com/SaltyAom", "email": "saltyaom@gmail.com" }, + "main": "./dist/index.js", "exports": { "require": "./dist/cjs/index.js", "import": "./dist/index.js", diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index f9c7261..f151ee3 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -44,7 +44,7 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ - "declaration": false, /* 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. */ diff --git a/tsconfig.esm.json b/tsconfig.esm.json index 69ac63a..887c6e7 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -44,7 +44,7 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ - "declaration": false, /* 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. */ diff --git a/tsconfig.json b/tsconfig.json index b485241..4eb9882 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -44,7 +44,7 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ - // "declaration": false, /* 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. */