From 81bfb4dbd23b711afc11a011e4aaf53e084c1eae Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 5 Feb 2021 15:35:57 +0100 Subject: [PATCH] :wrench: build --- package-lock.json | 6 ++++++ package.json | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ee86c7e4..6a78da57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -796,6 +796,12 @@ "rimraf": "^3.0.0" } }, + "typescript": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.3.tgz", + "integrity": "sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==", + "dev": true + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", diff --git a/package.json b/package.json index 0b10724f..91e82f3a 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,11 @@ "name": "discord-server-util", "version": "1.0.0", "description": "", - "main": "index.js", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "build": "tsc -b ." }, "repository": { "type": "git", @@ -22,6 +24,8 @@ "lambert-db": "^1.1.4" }, "devDependencies": { - "@types/jsonwebtoken": "^8.5.0" + "@types/jsonwebtoken": "^8.5.0", + "@types/node": "^14.14.25", + "typescript": "^4.1.3" } }