Skip to content

Commit ea51091

Browse files
committed
Tuning on exports
1 parent 5e94019 commit ea51091

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Volumes listed in `iobBackup` are tagged for inclusion in ioBroker backup routin
180180
-->
181181

182182
## Changelog
183-
### 0.0.21 (2025-10-09)
183+
### **WORK IN PROGRESS**
184184
- (@GermanBluefox) Split the docker manager into pure docker commands and monitoring of own containers
185185

186186
### 0.0.3 (2025-09-25)

tasks.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
const { copyFileSync } = require('node:fs');
1+
const { copyFileSync, readFileSync, writeFileSync } = require('node:fs');
22
copyFileSync(`${__dirname}/src/types.d.ts`, `${__dirname}/build/esm/types.d.ts`);
33
copyFileSync(`${__dirname}/src/types.d.ts`, `${__dirname}/build/cjs/types.d.ts`);
44
copyFileSync(`${__dirname}/package.json`, `${__dirname}/build/esm/package.json`);
55
copyFileSync(`${__dirname}/package.json`, `${__dirname}/build/cjs/package.json`);
6+
let text = readFileSync(`${__dirname}/build/cjs/index.js`, 'utf8');
7+
text = text.replace(
8+
'exports.default = DockerPlugin;',
9+
`module.exports = DockerPlugin;
10+
module.exports.DockerManagerOfOwnContainers = DockerManagerOfOwnContainers;
11+
module.exports.DockerManager = DockerManager;
12+
module.exports.default = DockerPlugin;`,
13+
);
14+
writeFileSync(`${__dirname}/build/cjs/index.js`, text, 'utf8');

0 commit comments

Comments
 (0)