From 04718f5253ab1114c3e686eae48c50bd67b02c69 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Fri, 20 Oct 2023 21:49:53 +0530 Subject: [PATCH] refactor: generate types using tsc --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 86db837..ce70845 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "test": "cross-env NODE_DEBUG=adonisjs:bodyparser c8 npm run quick:test", "clean": "del-cli build", "typecheck": "tsc --noEmit", - "compile": "npm run lint && npm run clean && tsup-node", + "compile": "npm run lint && npm run clean && tsup-node && npm run build:types", + "build:types": "tsc --emitDeclarationOnly --declaration", "build": "npm run compile", "release": "np", "version": "npm run build", @@ -141,7 +142,7 @@ "outDir": "./build", "clean": true, "format": "esm", - "dts": true, + "dts": false, "target": "esnext" } }