@companion-module/tools 1.0.0 → 1.0.2

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.2](https://github.com/bitfocus/companion-module-tools/compare/v1.0.1...v1.0.2) (2023-02-19)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * paths on windows in bash ([85f5438](https://github.com/bitfocus/companion-module-tools/commit/85f5438a57caf0328beb26b18ef55fcab2115665))
9
+
10
+ ## [1.0.1](https://github.com/bitfocus/companion-module-tools/compare/v1.0.0...v1.0.1) (2023-02-17)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * missing prebuilds in built packages ([acd76e8](https://github.com/bitfocus/companion-module-tools/commit/acd76e84ed98916f31d251ddddc0a601514c91c0))
16
+
3
17
  ## [1.0.0](https://github.com/bitfocus/companion-module-tools/compare/v0.5.2...v1.0.0) (2023-02-05)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-module/tools",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
package/scripts/build.js CHANGED
@@ -31,7 +31,7 @@ console.log(`Framework path: ${frameworkDir}`)
31
31
  await fs.remove('pkg')
32
32
 
33
33
  // build the code
34
- const webpackConfig = path.join(toolsDir, 'webpack.config.cjs')
34
+ const webpackConfig = path.join(toolsDir, 'webpack.config.cjs').replace(/\\/g, '/') // Fix slashes because windows is a pain
35
35
  await $`yarn webpack -c ${webpackConfig}`
36
36
 
37
37
  // copy in the metadata
@@ -95,7 +95,7 @@ if (fs.existsSync(webpackExtPath)) {
95
95
  const srcDir = await findModuleDir(require.resolve(lib))
96
96
  const dirs = await fs.readdir(path.join(srcDir, 'prebuilds'))
97
97
  for (const dir of dirs) {
98
- fs.copy(path.join(srcDir, 'prebuilds', dir), path.join('pkg/prebuilds', dir))
98
+ await fs.copy(path.join(srcDir, 'prebuilds', dir), path.join('pkg/prebuilds', dir))
99
99
  }
100
100
  }
101
101
  }