From ab6295783db8bc31122f5fa923a1a4b14b012000 Mon Sep 17 00:00:00 2001 From: Patrick Remy Date: Thu, 18 Nov 2021 17:00:30 +0100 Subject: [PATCH] fix(build): proper refer types and output as dir (#3) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0c92144..269046b 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Utility for Unix-like operating systems to print PDF files from Node.js and Electron", "license": "MIT", "main": "build/index.js", + "types": "build/index.d.ts", "files": [ "build" ], @@ -16,7 +17,7 @@ "build": "npm run build:clean && npm run build:esbuild && npm run build:declarations", "build:clean": "rimraf build", "build:esbuild": "esbuild ./src --bundle --platform=node --outfile=build/index.js", - "build:declarations": "tsc -p tsconfig.dist.json --emitDeclarationOnly --outFile build/index.d.ts", + "build:declarations": "tsc -p tsconfig.dist.json --emitDeclarationOnly --outDir build", "prettier-check": "prettier -c ./src", "prepare": "yarn prettier-check && npm run test && npm run build" },