Skip to content

Commit

Permalink
fix: Support for Node.js 22
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Dec 23, 2024
1 parent 014263d commit fd01da8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"enabled": true
},
"files": {
"include": ["src/**/*.ts"]
"include": ["src/**/*.ts", "src/**/*.mts"]
},
"formatter": {
"indentStyle": "space"
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -24,13 +23,13 @@
},
"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",
"main": "dist/index.js",
"files": [
"dist/**/*",
"preset.js",
Expand Down Expand Up @@ -78,10 +77,11 @@
},
"bundler": {
"exportEntries": [
"src/index.ts"
"src/index.mts"
],
"nodeEntries": [
"src/preset.ts"
"src/preset.mts"
]
}
},
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
}
2 changes: 1 addition & 1 deletion preset.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./dist/preset.cjs');
module.exports = require('./dist/preset.js');
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fd01da8

Please sign in to comment.