@companion-module/tools 1.4.1 → 1.4.3

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.4.3](https://github.com/bitfocus/companion-module-tools/compare/v1.4.2...v1.4.3) (2024-02-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * touch lockfile before running `yarn install` in package. ([c502dd7](https://github.com/bitfocus/companion-module-tools/commit/c502dd7a4bc2e2156ebd6a339554fbfbb1ded83c))
9
+
10
+ ## [1.4.2](https://github.com/bitfocus/companion-module-tools/compare/v1.4.1...v1.4.2) (2023-12-27)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * use name from package.json when building externals dependencies object ([339d2ac](https://github.com/bitfocus/companion-module-tools/commit/339d2acd6cd5d8a770766214d0687a7c9fd05196))
16
+
3
17
  ## [1.4.1](https://github.com/bitfocus/companion-module-tools/compare/v1.4.0...v1.4.1) (2023-09-11)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-module/tools",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -25,15 +25,15 @@
25
25
  "dependencies": {
26
26
  "@typescript-eslint/eslint-plugin": "^5.59.9",
27
27
  "@typescript-eslint/parser": "^5.59.9",
28
- "eslint": "^8.47.0",
28
+ "eslint": "^8.56.0",
29
29
  "eslint-config-prettier": "^8.8.0",
30
- "eslint-plugin-n": "^16.0.2",
30
+ "eslint-plugin-n": "^16.6.2",
31
31
  "eslint-plugin-prettier": "^4.2.1",
32
- "find-up": "^6.3.0",
32
+ "find-up": "^7.0.0",
33
33
  "parse-author": "^2.0.0",
34
34
  "prettier": "^2.8.8",
35
- "tar": "^6.1.15",
36
- "webpack": "^5.88.2",
35
+ "tar": "^6.2.0",
36
+ "webpack": "^5.90.0",
37
37
  "webpack-cli": "^5.1.4",
38
38
  "zx": "^7.2.3"
39
39
  },
package/scripts/build.js CHANGED
@@ -94,7 +94,7 @@ if (fs.existsSync(webpackExtPath)) {
94
94
  for (const external of Object.keys(extGroup)) {
95
95
  const extPath = await findUp('package.json', { cwd: require.resolve(external) })
96
96
  const extJson = JSON.parse(await fs.readFile(extPath))
97
- packageJson.dependencies[external] = extJson.version
97
+ packageJson.dependencies[extJson.name] = extJson.version
98
98
  }
99
99
  }
100
100
  }
@@ -160,6 +160,7 @@ await fs.writeFile('pkg/package.json', JSON.stringify(packageJson))
160
160
 
161
161
  // If we found any depenendencies for the pkg, install them
162
162
  if (Object.keys(packageJson.dependencies).length) {
163
+ await fs.writeFile('pkg/yarn.lock', '')
163
164
  await $`yarn --cwd pkg install`
164
165
  }
165
166