From 3ce474ec02b3e8c31c5d94419fd7ab57cbb5fb1e Mon Sep 17 00:00:00 2001 From: Ben Kennedy Date: Fri, 3 May 2024 09:45:36 +0100 Subject: [PATCH] chore(bug): Added missing type `Buffer` (#40) bug: changed package.json main export to dist folder --- package.json | 4 ++-- scripts/definitions/scale-that-svg.d.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cbf3ba55..82f7a1d8 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,11 @@ "main": "index.js", "types": "dist/index.d.ts", "exports": { - ".": "./index.js", + ".": "./dist/index.js", + "./icon-manifest.json": "./outputs/icon-manifest.json", "./icons/*": "./outputs/icons/*", "./png/*": "./outputs/png/*", "./font/*": "./outputs/font/*", - "./icon-manifest.json": "./outputs/icon-manifest.json", "./index.css": "./index.css" }, "devDependencies": { diff --git a/scripts/definitions/scale-that-svg.d.ts b/scripts/definitions/scale-that-svg.d.ts index c5395582..4ba4d391 100644 --- a/scripts/definitions/scale-that-svg.d.ts +++ b/scripts/definitions/scale-that-svg.d.ts @@ -1,3 +1,4 @@ declare module "scale-that-svg" { + import { Buffer } from "buffer"; export function scale(input: string | Buffer, scaleOptions: {}): Promise; }