@ornikar/repo-config 10.3.2 → 10.4.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
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [10.4.0](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@10.3.2...@ornikar/repo-config@10.4.0) (2023-01-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** update dependency husky to v8.0.3 ([#834](https://github.com/ornikar/shared-configs/issues/834)) ([79d24fa](https://github.com/ornikar/shared-configs/commit/79d24fa33dabb3b1d46f16efbd7b3d748c05a694))
12
+
13
+
14
+ ### Features
15
+
16
+ * **repo-config:** add warning on autogenerated hooks [no issue] ([#832](https://github.com/ornikar/shared-configs/issues/832)) ([aafb217](https://github.com/ornikar/shared-configs/commit/aafb2179169dc40899cfb2d3f9e7e73e8ac56f28))
17
+
18
+
19
+
20
+
21
+
6
22
  ## [10.3.2](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@10.3.1...@ornikar/repo-config@10.3.2) (2022-12-16)
7
23
 
8
24
  **Note:** Version bump only for package @ornikar/repo-config
@@ -9,7 +9,8 @@ const workspaces = pkg.workspaces || false;
9
9
  const isLernaRepo = Boolean(pkg.devDependencies && pkg.devDependencies.lerna);
10
10
  const hasTypescript = Boolean(pkg.devDependencies && pkg.devDependencies.typescript);
11
11
  const shouldGenerateTsconfigInLernaRepo = isLernaRepo && hasTypescript;
12
- const shouldRunCheckPkgScript = fs.existsSync('./scripts/check-packagejson.js');
12
+ const shouldRunCheckPkgJSScript = fs.existsSync('./scripts/check-packagejson.js');
13
+ const shouldRunCheckPkgMJSScript = fs.existsSync('./scripts/check-packagejson.mjs');
13
14
 
14
15
  const getSrcDirectories = (srcDirectoryName = 'src') =>
15
16
  workspaces
@@ -32,7 +33,8 @@ module.exports = function createLintStagedConfig(options = {}) {
32
33
  packagejsonFilenames.length === 0 ? undefined : `prettier --write ${packagejsonFilenames.join(' ')}`,
33
34
  isLernaRepo && require.resolve('@ornikar/lerna-config/bin/generate-eslintrc-files.mjs'),
34
35
  shouldGenerateTsconfigInLernaRepo && require.resolve('@ornikar/lerna-config/bin/generate-tsconfig-files.mjs'),
35
- shouldRunCheckPkgScript && 'node ./scripts/check-packagejson.js',
36
+ shouldRunCheckPkgJSScript && 'node ./scripts/check-packagejson.js',
37
+ shouldRunCheckPkgMJSScript && 'node ./scripts/check-packagejson.mjs',
36
38
  'git add yarn.lock .yarn',
37
39
  ].filter(Boolean);
38
40
  },
@@ -31,7 +31,7 @@ const ensureHuskyNotInDevDependencies = (pkg) => {
31
31
  const writeHook = (hookName, hookContent) => {
32
32
  fs.writeFileSync(
33
33
  path.resolve(`.husky/${hookName}`),
34
- `#!/usr/bin/env sh\n. "$(dirname "$0")/_/husky.sh"\n\n${hookContent.trim()}\n`,
34
+ `#!/usr/bin/env sh\n. "$(dirname "$0")/_/husky.sh"\n\n# This file is autogenerated by @ornikar/repo-config. Do not change it.\n\n${hookContent.trim()}\n`,
35
35
  {
36
36
  mode: '755',
37
37
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/repo-config",
3
- "version": "10.3.2",
3
+ "version": "10.4.0",
4
4
  "description": "🔧 repo config",
5
5
  "repository": {
6
6
  "directory": "@ornikar/repo-config",
@@ -22,9 +22,9 @@
22
22
  "ornikar-repo-config-postinstall": "./bin/ornikar-repo-config-postinstall.js"
23
23
  },
24
24
  "dependencies": {
25
- "@commitlint/cli": "17.3.0",
25
+ "@commitlint/cli": "17.4.2",
26
26
  "@ornikar/commitlint-config": "^5.0.1",
27
- "husky": "8.0.2",
27
+ "husky": "8.0.3",
28
28
  "lint-staged": "13.1.0",
29
29
  "prettier-plugin-properties": "0.2.0",
30
30
  "semver": "^7.3.5",
@@ -33,5 +33,5 @@
33
33
  "scripts": {
34
34
  "lint:eslint": "yarn ../.. eslint --report-unused-disable-directives --quiet @ornikar/repo-config"
35
35
  },
36
- "gitHead": "91a6683bc25b9e7ed7b6fb861e9fc87e477423da"
36
+ "gitHead": "1426d3e32ac3eec214b60e2f5c9dbb38513b5b2e"
37
37
  }