From 642a6d9b339c2dc6222508d168469234ceeeaa6e Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Sun, 22 Dec 2024 10:20:49 +0100 Subject: [PATCH] fix: Support for Node.js 22 --- biome.json | 2 +- package.json | 16 ++++++++-------- src/{index.ts => index.mts} | 0 src/{preset.ts => preset.mts} | 0 tsup.config.ts => tsup.config.mts | 0 5 files changed, 9 insertions(+), 9 deletions(-) rename src/{index.ts => index.mts} (100%) rename src/{preset.ts => preset.mts} (100%) rename tsup.config.ts => tsup.config.mts (100%) diff --git a/biome.json b/biome.json index 8ce4062..3f56059 100644 --- a/biome.json +++ b/biome.json @@ -4,7 +4,7 @@ "enabled": true }, "files": { - "include": ["src/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.mts"] }, "formatter": { "indentStyle": "space" diff --git a/package.json b/package.json index d0d24ff..c36b930 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "@storybook/addon-webpack5-compiler-babel", "version": "3.0.3", - "type": "module", "description": "Adds babel as a Webpack5 compiler to Storybook", "keywords": [ "storybook-addons", @@ -13,7 +12,7 @@ "url": "git+https://github.com/storybookjs/addon-webpack5-compiler-babel.git" }, "scripts": { - "build": "tsup", + "build": "tsup --config tsup.config.mts", "format": "biome format ./src", "format:write": "pnpm format --write", "check": "biome check ./src", @@ -24,10 +23,10 @@ }, "exports": { ".": { - "require": "./dist/index.cjs", - "import": "./dist/index.js" + "require": "./dist/index.js", + "import": "./dist/index.mjs" }, - "./preset": "./dist/preset.cjs", + "./preset": "./dist/preset.js", "./package.json": "./package.json" }, "main": "dist/index.cjs", @@ -78,10 +77,11 @@ }, "bundler": { "exportEntries": [ - "src/index.ts" + "src/index.mts" ], "nodeEntries": [ - "src/preset.ts" + "src/preset.mts" ] - } + }, + "packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c" } diff --git a/src/index.ts b/src/index.mts similarity index 100% rename from src/index.ts rename to src/index.mts diff --git a/src/preset.ts b/src/preset.mts similarity index 100% rename from src/preset.ts rename to src/preset.mts diff --git a/tsup.config.ts b/tsup.config.mts similarity index 100% rename from tsup.config.ts rename to tsup.config.mts