@companion-module/tools 2.0.3 → 2.0.4

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
+ ## [2.0.4](https://github.com/bitfocus/companion-module-tools/compare/v2.0.3...v2.0.4) (2024-09-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * ensure mjs files are interpreted as esm ([bf0fceb](https://github.com/bitfocus/companion-module-tools/commit/bf0fceb569bd1e193ebe23f95fb27110fb0d3391))
9
+
3
10
  ## [2.0.3](https://github.com/bitfocus/companion-module-tools/compare/v2.0.2...v2.0.3) (2024-09-11)
4
11
 
5
12
 
package/eslint/config.mjs CHANGED
@@ -70,6 +70,12 @@ export async function generateEslintConfig(options = {}) {
70
70
  files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
71
71
  ...(tseslint ? tseslint.configs.disableTypeChecked : {}),
72
72
  },
73
+ {
74
+ files: ['*.mjs'],
75
+ languageOptions: {
76
+ sourceType: 'module',
77
+ },
78
+ },
73
79
  tseslint
74
80
  ? {
75
81
  files: ['**/*.ts', '**/*.cts', '**/*.mts'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-module/tools",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "license": "MIT",