@mrpelz/boilerplate-common 7.3.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.
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env sh
2
2
  . "$(dirname -- "$0")/_/husky.sh"
3
3
 
4
- node_modules/.bin/commitlint --verbose --edit
4
+ node_modules/.bin/commitlint --verbose --config commitlint.config.mjs --edit
package/config/Makefile CHANGED
@@ -88,7 +88,7 @@ check: \
88
88
  check_test
89
89
 
90
90
  check_commit:
91
- commitlint --verbose --from HEAD~1 --to HEAD
91
+ commitlint --verbose --config commitlint.config.mjs --from HEAD~1 --to HEAD
92
92
 
93
93
  check_config:
94
94
  $(SUB_RUN)
@@ -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.3.0",
3
+ "version": "8.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mrpelz/boilerplate.git",
@@ -187,10 +187,10 @@ include ${BOILERPLATE_MODULE_PATH}config/Makefile
187
187
  EOF
188
188
  )"
189
189
 
190
- make_config commitlint.config.js "$(
190
+ make_config commitlint.config.mjs "$(
191
191
  cat <<EOF
192
192
  // @ts-ignore
193
- import config from '$BOILERPLATE_MODULE_NAME/config/commitlint.config.js';
193
+ import config from '$BOILERPLATE_MODULE_NAME/config/commitlint.config.mjs';
194
194
 
195
195
  /** @type {import('@commitlint/types').UserConfig} */
196
196
  export default config;
@@ -245,9 +245,9 @@ EOF
245
245
  make_config tsconfig.meta.json "$(
246
246
  cat <<EOF
247
247
  {
248
- "exclude": ["dist/**/*", "node_modules/**/*", "src/**/*"],
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
  )"
@@ -258,7 +258,7 @@ include:
258
258
  - project: "mrpelz/boilerplate"
259
259
  ref: main
260
260
  file: "/gitlab/.gitlab-ci.yml"
261
- # file: "/gitlab/.monorepo.gitlab-ci.yml"
261
+ # file: "/gitlab/.monorepo.gitlab-ci.yml"
262
262
  EOF
263
263
  else
264
264
  cat <<EOF
@@ -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