diff --git a/code/addons/test/manager.js b/code/addons/test/manager.js index 8a2eae4ffce1..280488a50c10 100644 --- a/code/addons/test/manager.js +++ b/code/addons/test/manager.js @@ -1 +1 @@ -import './dist/manager'; +require('./dist/manager'); diff --git a/code/addons/test/manager.mjs b/code/addons/test/manager.mjs new file mode 100644 index 000000000000..8a2eae4ffce1 --- /dev/null +++ b/code/addons/test/manager.mjs @@ -0,0 +1 @@ +import './dist/manager'; diff --git a/code/addons/test/postinstall.cjs b/code/addons/test/postinstall.cjs deleted file mode 100644 index 29374d2a9382..000000000000 --- a/code/addons/test/postinstall.cjs +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./dist/postinstall.cjs'); diff --git a/code/addons/test/postinstall.js b/code/addons/test/postinstall.js new file mode 100644 index 000000000000..e543456ba157 --- /dev/null +++ b/code/addons/test/postinstall.js @@ -0,0 +1 @@ +module.exports = require('./dist/postinstall'); diff --git a/code/addons/test/postinstall.mjs b/code/addons/test/postinstall.mjs new file mode 100644 index 000000000000..d73f1904173d --- /dev/null +++ b/code/addons/test/postinstall.mjs @@ -0,0 +1 @@ +export * from './dist/postinstall.mjs'; diff --git a/code/addons/test/preset.cjs b/code/addons/test/preset.cjs deleted file mode 100644 index 4c4e36fbb3bb..000000000000 --- a/code/addons/test/preset.cjs +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - ...require('./dist/preset.cjs'), -}; diff --git a/code/addons/test/preset.js b/code/addons/test/preset.js index e538669369e9..a83f95279e7f 100644 --- a/code/addons/test/preset.js +++ b/code/addons/test/preset.js @@ -1,10 +1 @@ -const { checkActionsLoaded } = require('./dist/preset'); - -function previewAnnotations(entry = [], options) { - checkActionsLoaded(options.configDir); - return entry; -} - -module.exports = { - previewAnnotations, -}; +module.exports = require('./dist/preset'); diff --git a/code/addons/test/preset.mjs b/code/addons/test/preset.mjs new file mode 100644 index 000000000000..510233d53efa --- /dev/null +++ b/code/addons/test/preset.mjs @@ -0,0 +1 @@ +export * from './dist/preset.mjs';