Skip to content

Commit

Permalink
fix mjs references
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Feb 14, 2024
1 parent a2e083b commit 50e37b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .storybook/local-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* to load the built addon in this test Storybook
*/
function previewAnnotations(entry = []) {
return [...entry, require.resolve("../dist/preview.mjs")];
return [...entry, require.resolve("../dist/preview.js")];
}

function managerEntries(entry = []) {
return [...entry, require.resolve("../dist/manager.mjs")];
return [...entry, require.resolve("../dist/manager.js")];
}

module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"build:watch": "npm run build -- --watch",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "run-p build:watch 'storybook --quiet'",
"prerelease": "zx scripts/prepublish-checks.mjs",
"prerelease": "zx scripts/prepublish-checks.js",
"release": "npm run build && auto shipit",
"eject-ts": "zx scripts/eject-typescript.mjs",
"eject-ts": "zx scripts/eject-typescript.js",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepublish-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ peerDependencies.forEach((dependency) => {
${chalk.red(dedent`You have a peer dependency on ${chalk.bold(dependency)} which is most likely unnecessary
as that is provided by Storybook directly.
Check the "bundling" section in README.md for more information.
If you are absolutely sure you are doing it correct, you should remove this check from scripts/prepublish-checks.mjs.`)}
If you are absolutely sure you are doing it correct, you should remove this check from scripts/prepublish-checks.js.`)}
`,
{ padding: 1, borderColor: "red" }
)
Expand Down

0 comments on commit 50e37b3

Please sign in to comment.