@companion-module/tools 0.4.0 → 0.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
+ ## [0.5.0](https://github.com/bitfocus/companion-module-tools/compare/v0.4.1...v0.5.0) (2022-11-27)
4
+
5
+
6
+ ### Features
7
+
8
+ * support copying native module prebuilt binaries ([3e5610a](https://github.com/bitfocus/companion-module-tools/commit/3e5610a809cbbb8d7ad9844824489ed7f5dedb3a))
9
+
10
+ ## [0.4.1](https://github.com/bitfocus/companion-module-tools/compare/v0.4.0...v0.4.1) (2022-11-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * updated tsconfig ([6dd1a05](https://github.com/bitfocus/companion-module-tools/commit/6dd1a0544e5d9f784f276485cb9254b35195f3c1))
16
+
3
17
  ## [0.4.0](https://github.com/bitfocus/companion-module-tools/compare/v0.3.3...v0.4.0) (2022-11-26)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-module/tools",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
package/scripts/build.js CHANGED
@@ -78,6 +78,18 @@ if (fs.existsSync(webpackExtPath)) {
78
78
  }
79
79
  }
80
80
  }
81
+
82
+ if (webpackExt.prebuilds) {
83
+ await fs.mkdir('pkg/prebuilds')
84
+
85
+ for (const lib of webpackExt.prebuilds) {
86
+ const srcDir = await findModuleDir(require.resolve(lib))
87
+ const dirs = await fs.readdir(path.join(srcDir, 'prebuilds'))
88
+ for (const dir of dirs) {
89
+ fs.copy(path.join(srcDir, 'prebuilds', dir), path.join('pkg/prebuilds', dir))
90
+ }
91
+ }
92
+ }
81
93
  }
82
94
 
83
95
  // Write the package.json
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "module": "commonjs",
4
- "target": "es2018",
4
+ "target": "es2022",
5
5
  "noImplicitAny": true,
6
6
  "moduleResolution": "node",
7
7
  "sourceMap": true,
@@ -13,7 +13,7 @@
13
13
  "listFiles": false,
14
14
  "traceResolution": false,
15
15
  "pretty": true,
16
- "lib": ["es2018"],
16
+ "lib": ["es2022"],
17
17
  "types": ["node"],
18
18
  "strict": true,
19
19
  "alwaysStrict": false,
@@ -23,7 +23,8 @@
23
23
  "noUnusedLocals": true,
24
24
  "noUnusedParameters": true,
25
25
  "skipLibCheck": true,
26
- "allowSyntheticDefaultImports": true
26
+ "allowSyntheticDefaultImports": true,
27
+ "esModuleInterop": true
27
28
  },
28
29
  "compileOnSave": false
29
30
  }