@mashroom/mashroom
Advanced tools
Comparing version 2.3.2 to 2.4.0
@@ -24,3 +24,3 @@ "use strict"; | ||
indexPage: '/', | ||
devModePreferredBuildTool: 'nx', | ||
devModeDisableNxSupport: false, | ||
devModeNpmExecutionTimeoutSec: undefined | ||
@@ -27,0 +27,0 @@ }; |
@@ -31,3 +31,3 @@ "use strict"; | ||
this._nxUtils = new _NxUtils.default(loggerFactory, config.devModeNpmExecutionTimeoutSec || undefined); | ||
this._devModePreferredBuildTool = config.devModePreferredBuildTool; | ||
this._devModeDisableNxSupport = !!config.devModeDisableNxSupport; | ||
this._eventEmitter = new _events.EventEmitter(); | ||
@@ -187,3 +187,3 @@ this._eventEmitter.setMaxListeners(0); | ||
this._logger.debug(`Running build script '${buildScript}': ${queueEntry.pluginPackageName}`); | ||
if (this._devModePreferredBuildTool === 'nx' && (await this._nxUtils.isNxAvailable(queueEntry.pluginPackagePath))) { | ||
if (!this._devModeDisableNxSupport && (await this._nxUtils.isNxAvailable(queueEntry.pluginPackagePath))) { | ||
await this._nxUtils.runScript(queueEntry.pluginPackagePath, buildScript); | ||
@@ -190,0 +190,0 @@ } else { |
@@ -167,3 +167,3 @@ "use strict"; | ||
async _initialScan() { | ||
this._pluginPackageFolders.forEach(async pluginPackagesFolder => { | ||
await Promise.all(this._pluginPackageFolders.map(async pluginPackagesFolder => { | ||
if ((0, _fs.existsSync)((0, _path.resolve)(pluginPackagesFolder.path, 'package.json'))) { | ||
@@ -175,7 +175,9 @@ // This package folder contains a single package | ||
folders.forEach(folder => { | ||
const pluginPackagePath = (0, _path.resolve)(pluginPackagesFolder.path, folder); | ||
this._processChange(pluginPackagePath); | ||
if (!folder.startsWith('.')) { | ||
const pluginPackagePath = (0, _path.resolve)(pluginPackagesFolder.path, folder); | ||
this._processChange(pluginPackagePath); | ||
} | ||
}); | ||
} | ||
}); | ||
})); | ||
} | ||
@@ -182,0 +184,0 @@ _isMashroomPluginPackage(pluginPackagePath) { |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"main": "dist", | ||
@@ -15,3 +15,3 @@ "files": [ | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
@@ -22,11 +22,11 @@ "bin": { | ||
"dependencies": { | ||
"@mashroom/mashroom-utils": "2.3.2", | ||
"@types/express": "^4.17.15", | ||
"@mashroom/mashroom-utils": "2.4.0", | ||
"@types/express": "^4.17.17", | ||
"anymatch": "^3.1.3", | ||
"chokidar": "^3.5.3", | ||
"express": "^4.18.2", | ||
"fs-extra": "^11.1.0", | ||
"log4js": "^6.7.1", | ||
"fs-extra": "^11.1.1", | ||
"log4js": "^6.9.1", | ||
"lucy-dirsum": "^0.1.1", | ||
"minimist": "^1.2.7", | ||
"minimist": "^1.2.8", | ||
"spdy": "^4.0.2" | ||
@@ -44,4 +44,11 @@ }, | ||
], | ||
"testRegex": "(\\.(test|spec))\\.ts$" | ||
"testRegex": "(\\.(test|spec))\\.ts$", | ||
"reporters": [ | ||
"default", | ||
"jest-junit" | ||
] | ||
}, | ||
"jest-junit": { | ||
"outputDirectory": "./test-reports" | ||
}, | ||
"scripts": { | ||
@@ -48,0 +55,0 @@ "lint": "eslint src test --ext \".ts\" --fix", |
@@ -346,3 +346,3 @@ | ||
readonly indexPage: string; | ||
readonly devModePreferredBuildTool: 'npm' | 'nx' | null | undefined; | ||
readonly devModeDisableNxSupport: boolean | null | undefined; | ||
readonly devModeNpmExecutionTimeoutSec: number | null | undefined; | ||
@@ -349,0 +349,0 @@ |
@@ -287,3 +287,3 @@ // @flow | ||
+indexPage: string, | ||
+devModePreferredBuildTool: ? 'npm' | 'nx', | ||
+devModeDisableNxSupport: ?boolean; | ||
+devModeNpmExecutionTimeoutSec: ?number, | ||
@@ -290,0 +290,0 @@ [key: string]: any |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197417
5189
+ Added@mashroom/mashroom-utils@2.4.0(transitive)
- Removed@mashroom/mashroom-utils@2.3.2(transitive)
Updated@types/express@^4.17.17
Updatedfs-extra@^11.1.1
Updatedlog4js@^6.9.1
Updatedminimist@^1.2.8