From 9c938941609fd5e6c13c2d998faeb5f2502f19fa Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 12 May 2023 13:56:42 +0100 Subject: [PATCH] Publish to npm :) --- .gitignore | 2 +- package.json | 7 ++++--- tsconfig.json | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 0edbce0..710ba61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Custom -build/ +lib/ # Logs logs diff --git a/package.json b/package.json index d52dd19..fb230d4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "bufferstuff", "version": "1.0.0", "description": "A set of utility classes for reading and writing binary data in NodeJS and the browser", - "main": "index.ts", + "main": "./lib/index.js", + "types": "./lib/index.d.ts", "scripts": { "updateCheck": "check-outdated", "build": "tsc --build", @@ -13,7 +14,7 @@ "url": "git+https://github.com/tgpholly/bufferStuff.git" }, "keywords": [], - "author": "", + "author": "tgpholly", "license": "MIT", "bugs": { "url": "https://github.com/tgpholly/bufferStuff/issues" @@ -25,4 +26,4 @@ "ts-node": "^10.9.1", "typescript": "^5.0.4" } -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index ac966ec..6d9eb1a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,8 +6,8 @@ "esModuleInterop": true, "resolveJsonModule": true, "rootDir": "./", - "outDir": "./build", + "outDir": "./lib", "strict": true, "declaration": true } -} +} \ No newline at end of file