From d1099143dba1a1b5cd6627f415858c2420fa23c5 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 27 Aug 2024 20:22:19 +0800 Subject: [PATCH] Addon Vitest: Fix postinstall file types --- code/addons/vitest/postinstall.cjs | 2 +- code/addons/vitest/preset.cjs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/code/addons/vitest/postinstall.cjs b/code/addons/vitest/postinstall.cjs index 4a50bbe539e3..29374d2a9382 100644 --- a/code/addons/vitest/postinstall.cjs +++ b/code/addons/vitest/postinstall.cjs @@ -1 +1 @@ -module.exports = require('./dist/postinstall.js'); +module.exports = require('./dist/postinstall.cjs'); diff --git a/code/addons/vitest/preset.cjs b/code/addons/vitest/preset.cjs index 87f1602c2f26..4c4e36fbb3bb 100644 --- a/code/addons/vitest/preset.cjs +++ b/code/addons/vitest/preset.cjs @@ -1,8 +1,3 @@ -function managerEntries(entry = []) { - return [...entry, require.resolve('./dist/manager.js')]; -} - module.exports = { - managerEntries, - ...require('./dist/preset'), + ...require('./dist/preset.cjs'), };