@mrpelz/boilerplate-common 7.4.0 → 8.0.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.
@@ -461,7 +461,7 @@ export const plugins = {
461
461
 
462
462
  /** @type {import('eslint').Linter.FlatConfig} */
463
463
  export const configMeta = {
464
- files: ['**/*.js'],
464
+ files: ['**/*.{js,mjs}'],
465
465
  ignores: ['dist/**/*', 'node_modules/**/*', 'src/**/*', 'packages/**/*'],
466
466
  languageOptions: {
467
467
  parser: typescriptParser,
@@ -1,7 +1,7 @@
1
1
  /** @type {import('ts-jest').JestConfigWithTsJest} */
2
2
  export default {
3
3
  moduleNameMapper: {
4
- '^(\\./.+)\\.js$': '$1',
4
+ '^(\\./.+)\\.m?js$': '$1',
5
5
  },
6
6
  passWithNoTests: true,
7
7
  preset: 'ts-jest/presets/js-with-ts-esm',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrpelz/boilerplate-common",
3
- "version": "7.4.0",
3
+ "version": "8.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mrpelz/boilerplate.git",
@@ -247,7 +247,7 @@ EOF
247
247
  {
248
248
  "exclude": ["dist/**/*", "node_modules/**/*", "packages/**/*", "src/**/*"],
249
249
  "extends": "$BOILERPLATE_MODULE_NAME/config/tsconfig.meta.json",
250
- "include": ["**/*.js"]
250
+ "include": ["**/*.js", "**/*.mjs"]
251
251
  }
252
252
  EOF
253
253
  )"
@@ -276,8 +276,7 @@ if check_response "💱 apply changes to \"package.json\"?" y; then
276
276
  "main=dist/main.js" \
277
277
  "module=dist/main.js" \
278
278
  "types=dist/main.d.ts" \
279
- "files[0]=dist/**/*.{js,map,ts}" \
280
- "devDependencies.@mrpelz/boilerplate-common=latest"
279
+ "files[0]=dist/**/*.{js,map,ts}"
281
280
  fi
282
281
 
283
282
  if check_response "🕳 run npm install?" y; then