@iobroker/legacy-testing 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/setup.js +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Legacy test modules for ioBroker
|
|
|
11
11
|
|
|
12
12
|
## Changelog
|
|
13
13
|
<!-- ### **WORK IN PROGRESS** -->
|
|
14
|
-
### 0.3.
|
|
14
|
+
### 0.3.2 (2023-05-08)
|
|
15
15
|
* (bluefox) Added possibility to install additional adapters at start
|
|
16
16
|
* (bluefox) Added setOfflineState/getOfflineState
|
|
17
17
|
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -294,7 +294,6 @@ async function installAdapter(customAdapterName, cb) {
|
|
|
294
294
|
console.warn(`[${customAdapterName}] Adapter not installed: ${err}`);
|
|
295
295
|
// try workaround
|
|
296
296
|
installCustomAdapter(customAdapterName);
|
|
297
|
-
const startFile = `node_modules/${appName}.js-controller/${appName}.js`;
|
|
298
297
|
// make first install
|
|
299
298
|
if (debug) {
|
|
300
299
|
cp.execSync(`node ${startFile} add ${customAdapterName} --enabled false`, {
|
|
@@ -673,6 +672,7 @@ function startCustomAdapter(adapterName, adapterInstance) {
|
|
|
673
672
|
adaptersStarted[id] = true;
|
|
674
673
|
console.log(`startAdapter ${id} ...`);
|
|
675
674
|
const _pkg = adapterName ? require(`${rootDir}tmp/node_modules/iobroker.${adapterName}/package.json`) : pkg;
|
|
675
|
+
adapterName = adapterName || pkg.name;
|
|
676
676
|
if (fs.existsSync(`${rootDir}tmp/node_modules/iobroker.${adapterName}/${_pkg.main || 'main.js'}`)) {
|
|
677
677
|
try {
|
|
678
678
|
if (debug) {
|