Skip to content

Commit

Permalink
Merge pull request #28978 from storybookjs/shilman/fix-vitest-postins…
Browse files Browse the repository at this point in the history
…tall

Addon Vitest: Fix postinstall file types
  • Loading branch information
shilman authored Aug 27, 2024
2 parents 1ebcb33 + d109914 commit 740ed80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code/addons/vitest/postinstall.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./dist/postinstall.js');
module.exports = require('./dist/postinstall.cjs');
7 changes: 1 addition & 6 deletions code/addons/vitest/preset.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
function managerEntries(entry = []) {
return [...entry, require.resolve('./dist/manager.js')];
}

module.exports = {
managerEntries,
...require('./dist/preset'),
...require('./dist/preset.cjs'),
};

0 comments on commit 740ed80

Please sign in to comment.