@companion-module/tools 1.5.0 → 1.5.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.1](https://github.com/bitfocus/companion-module-tools/compare/v1.5.0...v1.5.1) (2024-06-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * don't expand `extraFiles` directories when copying ([6ad1d43](https://github.com/bitfocus/companion-module-tools/commit/6ad1d43f6a83fa44ea2014fbe357f0ab1687ea0f))
9
+
3
10
  ## [1.5.0](https://github.com/bitfocus/companion-module-tools/compare/v1.4.4...v1.5.0) (2024-02-08)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-module/tools",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "find-up": "^7.0.0",
33
33
  "parse-author": "^2.0.0",
34
34
  "prettier": "^2.8.8",
35
- "tar": "^6.2.0",
35
+ "tar": "^6.2.1",
36
36
  "webpack": "^5.90.0",
37
37
  "webpack-cli": "^5.1.4",
38
38
  "zx": "^7.2.3"
package/scripts/build.js CHANGED
@@ -121,7 +121,11 @@ if (fs.existsSync(webpackExtPath)) {
121
121
 
122
122
  // copy extra files
123
123
  if (Array.isArray(webpackExt.extraFiles)) {
124
- const files = await globby(webpackExt.extraFiles)
124
+ const files = await globby(webpackExt.extraFiles, {
125
+ expandDirectories: false,
126
+ onlyFiles: false,
127
+ })
128
+
125
129
  for (const file of files) {
126
130
  await fs.copy(file, path.join('pkg', path.basename(file)), {
127
131
  overwrite: false,