From 979180185afd774fad19cc42e2c57d6ef1fb0ba4 Mon Sep 17 00:00:00 2001 From: Richard Herman <1429781+GeekyEggo@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:27:17 +0000 Subject: [PATCH] fix!: package exports (#16) * fix!: package exports * docs: add release notes --------- Co-authored-by: Richard Herman --- CHANGELOG.md | 6 ++++++ package.json | 8 +++----- rollup.config.ts | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fa15af..99e9113 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ # Change Log +## 0.4.0 + +### 🐞 Fix + +- Fix package exports. + ## 0.3.9 ### ♻️ Changed diff --git a/package.json b/package.json index de8d1bd..925ea64 100644 --- a/package.json +++ b/package.json @@ -2,22 +2,20 @@ "name": "@elgato/schemas", "version": "0.3.9", "description": "Collection of schemas, and TypeScript declarations, to support the creation and validation of Stream Deck SDK files", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", "exports": { ".": { - "default": "./dist/index.js", "import": "./dist/index.mjs", + "require": "./dist/index.cjs", "types": "./dist/index.d.ts" }, "./streamdeck/plugins": { - "default": "./dist/streamdeck/plugins/index.js", "import": "./dist/streamdeck/plugins/index.mjs", + "require": "./dist/streamdeck/plugins/index.cjs", "types": "./dist/streamdeck/plugins/index.d.ts" }, "./streamdeck/plugins/json": { - "default": "./dist/streamdeck/plugins/json.js", "import": "./dist/streamdeck/plugins/json.mjs", + "require": "./dist/streamdeck/plugins/json.cjs", "types": "./dist/streamdeck/plugins/json.d.ts" }, "./streamdeck/plugins/layout.json": { diff --git a/rollup.config.ts b/rollup.config.ts index c8d69e1..02aa2d7 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -27,7 +27,7 @@ function getConfig(input: string): RollupOptions[] { input, output: [ { - file: `${pathWithoutExtension}.js`, + file: `${pathWithoutExtension}.cjs`, format: "cjs", banner },