From e6f86f593e7c154fa0ec83627d5a7954e35ce900 Mon Sep 17 00:00:00 2001 From: Tyler Shaddix Date: Thu, 16 Nov 2023 15:43:12 -0800 Subject: [PATCH] Fix typings and import --- .github/workflows/build.yaml | 1 + package.json | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1b04ea6..5b3c992 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,3 +22,4 @@ jobs: - run: npm run typecheck - run: npm run prettier - run: npm run build + - run: npm run build-example diff --git a/package.json b/package.json index abd3a18..1fe57a5 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,14 @@ { "name": "paintbricks", - "version": "1.0.0", + "version": "1.0.2", "description": "An extendable drawing system built for the web.", - "exports": "./dist/index.esm.js", + "exports": { + ".": { + "types": "./src/index.d.ts", + "import": "./dist/index.es.js", + "require": "./dist/index.umd.js" + } + }, "engines": { "node": " >=14.13.1 || >=16.0.0" }, @@ -15,7 +21,6 @@ "prettier": "prettier --check \"{src,example/src}/**/*.{ts,json}\"", "prettier:fix": "prettier --write \"{src,example/src}/**/*.{ts,json}\"" }, - "typings": "src/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/tshaddix/paintbricks.git"