diff --git a/packages/rspack/rspack_plugin.js b/packages/rspack/rspack_plugin.js index abb6c9bcff..4d961ed24a 100644 --- a/packages/rspack/rspack_plugin.js +++ b/packages/rspack/rspack_plugin.js @@ -66,7 +66,6 @@ const { isMeteorAppDebug, isMeteorAppConfigModernVerbose, isMeteorAppNative, - isMeteorBundleVisualizerProject, } = require('meteor/tools-core/lib/meteor'); const { diff --git a/packages/tools-core/lib/meteor.js b/packages/tools-core/lib/meteor.js index 5dc5f1a66f..47b2c8eae5 100644 --- a/packages/tools-core/lib/meteor.js +++ b/packages/tools-core/lib/meteor.js @@ -163,8 +163,7 @@ export function isMeteorAppBuild() { * @returns {boolean} True if the current command is 'test', false otherwise. */ export function isMeteorAppTest() { - return Package?.meteor?.global?.currentCommand?.name === 'test' - || Package?.meteor?.global?.currentCommand?.name === 'test-packages'; + return Package?.meteor?.global?.currentCommand?.name === 'test'; } /** @@ -404,3 +403,11 @@ export function isMeteorScssProject() { export function isMeteorBundleVisualizerProject() { return getMeteorAppPackages().includes('bundle-visualizer'); } + +/** + * Checks if the current Meteor command is 'test-packages'. + * @returns {boolean} True if the current command is 'test-packages', false otherwise. + */ +export function isMeteorPackagesTest() { + return Package?.meteor?.global?.currentCommand?.name === 'test-packages'; +}