@companion-module/tools 1.4.4 → 1.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.0](https://github.com/bitfocus/companion-module-tools/compare/v1.4.4...v1.5.0) (2024-02-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * add option to force node-gyp to not be included in the build package ([838bb52](https://github.com/bitfocus/companion-module-tools/commit/838bb52c7c885adec12d8cf240a2b0e6955c6280))
9
+
3
10
  ## [1.4.4](https://github.com/bitfocus/companion-module-tools/compare/v1.4.3...v1.4.4) (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.4.4",
3
+ "version": "1.5.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
package/scripts/build.js CHANGED
@@ -100,6 +100,12 @@ if (fs.existsSync(webpackExtPath)) {
100
100
  }
101
101
  }
102
102
 
103
+ if (webpackExt.forceRemoveNodeGypFromPkg) {
104
+ packageJson.resolutions = {
105
+ 'node-gyp': 'npm:empty-npm-package@1.0.0',
106
+ }
107
+ }
108
+
103
109
  // Copy across any prebuilds that can be loaded corectly
104
110
  if (webpackExt.prebuilds) {
105
111
  await fs.mkdir('pkg/prebuilds')