@companion-module/tools 0.4.1 → 0.5.0
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/scripts/build.js +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0](https://github.com/bitfocus/companion-module-tools/compare/v0.4.1...v0.5.0) (2022-11-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* support copying native module prebuilt binaries ([3e5610a](https://github.com/bitfocus/companion-module-tools/commit/3e5610a809cbbb8d7ad9844824489ed7f5dedb3a))
|
|
9
|
+
|
|
3
10
|
## [0.4.1](https://github.com/bitfocus/companion-module-tools/compare/v0.4.0...v0.4.1) (2022-11-26)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/scripts/build.js
CHANGED
|
@@ -78,6 +78,18 @@ if (fs.existsSync(webpackExtPath)) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
+
|
|
82
|
+
if (webpackExt.prebuilds) {
|
|
83
|
+
await fs.mkdir('pkg/prebuilds')
|
|
84
|
+
|
|
85
|
+
for (const lib of webpackExt.prebuilds) {
|
|
86
|
+
const srcDir = await findModuleDir(require.resolve(lib))
|
|
87
|
+
const dirs = await fs.readdir(path.join(srcDir, 'prebuilds'))
|
|
88
|
+
for (const dir of dirs) {
|
|
89
|
+
fs.copy(path.join(srcDir, 'prebuilds', dir), path.join('pkg/prebuilds', dir))
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
81
93
|
}
|
|
82
94
|
|
|
83
95
|
// Write the package.json
|