@companion-module/tools 1.4.3 → 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,19 @@
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
+
10
+ ## [1.4.4](https://github.com/bitfocus/companion-module-tools/compare/v1.4.3...v1.4.4) (2024-02-08)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * yarn install failing due to `CI=1` ([076bc54](https://github.com/bitfocus/companion-module-tools/commit/076bc54a2031dfce414941007f60d6d100a129ec))
16
+
3
17
  ## [1.4.3](https://github.com/bitfocus/companion-module-tools/compare/v1.4.2...v1.4.3) (2024-02-08)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-module/tools",
3
- "version": "1.4.3",
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')
@@ -161,7 +167,7 @@ await fs.writeFile('pkg/package.json', JSON.stringify(packageJson))
161
167
  // If we found any depenendencies for the pkg, install them
162
168
  if (Object.keys(packageJson.dependencies).length) {
163
169
  await fs.writeFile('pkg/yarn.lock', '')
164
- await $`yarn --cwd pkg install`
170
+ await $`yarn --cwd pkg install --no-immutable`
165
171
  }
166
172
 
167
173
  // Create tgz of the build