From 5fe9dfee7f40de10dfecf4a73931427f8210060c Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Wed, 12 Jun 2024 19:33:45 +0200 Subject: [PATCH] Produce declaration files --- package.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d82801..133d22e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "description": "Access the RONIN data platform via TypeScript.", "scripts": { "dev": "bun run build -- --watch", - "build": "tsup ./src/index.ts ./src/bin/index.ts ./src/utils/index.ts --format esm", + "build": "tsup", "test": "bun test", "lint": "bun run lint:tsc && bun run lint:eslint --", "lint:eslint": "eslint . --ext .ts --ignore-path .gitignore", @@ -37,6 +37,15 @@ "eslint --fix --ignore-path .gitignore" ] }, + "tsup": { + "entry": [ + "src/index.ts", + "src/bin/index.ts", + "src/utils/index.ts" + ], + "format": "esm", + "dts": true + }, "exports": { ".": { "import": "./dist/index.js",