dont use rspack as part of test-packages since it only affects app code

This commit is contained in:
Nacho Codoñer
2025-08-29 08:35:14 +02:00
parent c01e3c4902
commit 68bb2e6fed
2 changed files with 9 additions and 3 deletions

View File

@@ -66,7 +66,6 @@ const {
isMeteorAppDebug,
isMeteorAppConfigModernVerbose,
isMeteorAppNative,
isMeteorBundleVisualizerProject,
} = require('meteor/tools-core/lib/meteor');
const {

View File

@@ -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';
}