@companion-module/tools 1.1.0 → 1.2.1
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 +14 -0
- package/package.json +2 -2
- package/scripts/build.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.1](https://github.com/bitfocus/companion-module-tools/compare/v1.2.0...v1.2.1) (2023-05-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* use name from package.json when building externals dependencies object ([6563d0e](https://github.com/bitfocus/companion-module-tools/commit/6563d0e1b23123a056146576e7721c3e2f9e4cfd))
|
|
9
|
+
|
|
10
|
+
## [1.2.0](https://github.com/bitfocus/companion-module-tools/compare/v1.1.0...v1.2.0) (2023-03-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* flatten directory structure for extra files ([edfff7d](https://github.com/bitfocus/companion-module-tools/commit/edfff7dc2d41d8215cde2b9d9158a08cbecb62e3))
|
|
16
|
+
|
|
3
17
|
## [1.1.0](https://github.com/bitfocus/companion-module-tools/compare/v1.0.2...v1.1.0) (2023-02-22)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@companion-module/tools",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"parse-author": "^2.0.0",
|
|
34
34
|
"prettier": "^2.8.3",
|
|
35
35
|
"tar": "^6.1.13",
|
|
36
|
-
"webpack": "^5.
|
|
36
|
+
"webpack": "^5.76.0",
|
|
37
37
|
"webpack-cli": "^5.0.1",
|
|
38
38
|
"zx": "^7.1.1"
|
|
39
39
|
},
|
package/scripts/build.js
CHANGED
|
@@ -84,7 +84,7 @@ if (fs.existsSync(webpackExtPath)) {
|
|
|
84
84
|
for (const external of Object.keys(extGroup)) {
|
|
85
85
|
const extPath = await findUp('package.json', { cwd: require.resolve(external) })
|
|
86
86
|
const extJson = JSON.parse(await fs.readFile(extPath))
|
|
87
|
-
packageJson.dependencies[
|
|
87
|
+
packageJson.dependencies[extJson.name] = extJson.version
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -107,8 +107,7 @@ if (fs.existsSync(webpackExtPath)) {
|
|
|
107
107
|
if (Array.isArray(webpackExt.extraFiles)) {
|
|
108
108
|
const files = await globby(webpackExt.extraFiles)
|
|
109
109
|
for (const file of files) {
|
|
110
|
-
await fs.copy(file, path.join('pkg', file), {
|
|
111
|
-
recursive: true,
|
|
110
|
+
await fs.copy(file, path.join('pkg', path.basename(file)), {
|
|
112
111
|
overwrite: false,
|
|
113
112
|
})
|
|
114
113
|
}
|