@iobroker/legacy-testing 1.0.7 → 1.0.9
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 +6 -0
- package/package.json +1 -1
- package/setup.js +3 -8
package/README.md
CHANGED
|
@@ -14,6 +14,12 @@ Set process.env.JS_CONTROLLER_VERSION to version e.g. `5.0.5-alpha.0-20230617-46
|
|
|
14
14
|
|
|
15
15
|
## Changelog
|
|
16
16
|
<!-- ### **WORK IN PROGRESS** -->
|
|
17
|
+
### 1.0.9 (2023-12-19)
|
|
18
|
+
* (foxriver76) create folder on initialization
|
|
19
|
+
|
|
20
|
+
### 1.0.8 (2023-12-19)
|
|
21
|
+
* (foxriver76) use hardcoded appName instead of inference with a heuristic approach
|
|
22
|
+
|
|
17
23
|
### 1.0.7 (2023-12-19)
|
|
18
24
|
* (foxriver76) allow re-initialization after config change
|
|
19
25
|
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -35,15 +35,12 @@ initialize();
|
|
|
35
35
|
function initialize() {
|
|
36
36
|
pkg = require(`${rootDir}package.json`);
|
|
37
37
|
pkg.main = pkg.main || 'main.js';
|
|
38
|
-
}
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
const parts = rootDir.replace(/\\/g, '/').split('/');
|
|
42
|
-
parts.pop();
|
|
43
|
-
return parts.pop().split('.')[0];
|
|
39
|
+
!fs.existsSync(`${rootDir}tmp`) && fs.mkdirSync(`${rootDir}tmp`);
|
|
44
40
|
}
|
|
45
41
|
|
|
46
|
-
|
|
42
|
+
/** Lowercase application name */
|
|
43
|
+
const appName = 'iobroker';
|
|
47
44
|
|
|
48
45
|
function loadJSONLDB() {
|
|
49
46
|
if (!JSONLDB) {
|
|
@@ -111,8 +108,6 @@ function copyFolderRecursiveSync(source, target, ignore) {
|
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
|
|
114
|
-
!fs.existsSync(`${rootDir}tmp`) && fs.mkdirSync(`${rootDir}tmp`);
|
|
115
|
-
|
|
116
111
|
async function storeOriginalFiles() {
|
|
117
112
|
console.log('Store original files...');
|
|
118
113
|
const dataDir = `${rootDir}tmp/${appName}-data/`;
|