@ornikar/repo-config 7.2.3 → 7.3.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,33 @@
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
+ # [7.3.0](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@7.2.5...@ornikar/repo-config@7.3.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * add check packagejson script to lint staged config [no issue] ([#658](https://github.com/ornikar/shared-configs/issues/658)) ([e362c15](https://github.com/ornikar/shared-configs/commit/e362c1511f5155557a19a53f0e97d2e21ab39a67))
12
+
13
+
14
+
15
+
16
+
17
+ ## [7.2.5](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@7.2.4...@ornikar/repo-config@7.2.5) (2022-02-14)
18
+
19
+ **Note:** Version bump only for package @ornikar/repo-config
20
+
21
+
22
+
23
+
24
+
25
+ ## [7.2.4](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@7.2.3...@ornikar/repo-config@7.2.4) (2022-02-10)
26
+
27
+ **Note:** Version bump only for package @ornikar/repo-config
28
+
29
+
30
+
31
+
32
+
6
33
  ## [7.2.3](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@7.2.2...@ornikar/repo-config@7.2.3) (2022-02-09)
7
34
 
8
35
 
@@ -22,4 +22,4 @@ if (!pm) {
22
22
 
23
23
  const pkg = JSON.parse(fs.readFileSync(path.resolve('package.json')));
24
24
 
25
- require('../lib/postinstall/install-husky.js')({ pkg, pm });
25
+ require('../lib/postinstall/install-husky')({ pkg, pm });
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ const fs = require('fs');
3
4
  const path = require('path');
4
5
 
5
6
  // eslint-disable-next-line import/no-dynamic-require
@@ -8,6 +9,7 @@ const workspaces = pkg.workspaces || false;
8
9
  const isLernaRepo = Boolean(pkg.devDependencies && pkg.devDependencies.lerna);
9
10
  const hasTypescript = Boolean(pkg.devDependencies && pkg.devDependencies.typescript);
10
11
  const shouldGenerateTsconfigInLernaRepo = isLernaRepo && hasTypescript;
12
+ const shouldRunCheckPkgScript = fs.existsSync('./scripts/check-packagejson.js');
11
13
 
12
14
  const getSrcDirectories = (srcDirectoryName = 'src') =>
13
15
  workspaces
@@ -33,6 +35,7 @@ module.exports = function createLintStagedConfig(options = {}) {
33
35
  packagejsonFilenames.length === 0 ? undefined : `prettier --write ${packagejsonFilenames.join(' ')}`,
34
36
  isLernaRepo && require.resolve('@ornikar/lerna-config/bin/generate-eslintrc-files.js'),
35
37
  shouldGenerateTsconfigInLernaRepo && require.resolve('@ornikar/lerna-config/bin/generate-tsconfig-files.js'),
38
+ shouldRunCheckPkgScript && './scripts/check-packagejson.js',
36
39
  ].filter(Boolean);
37
40
  },
38
41
  '!(package).json': ['prettier --write'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/repo-config",
3
- "version": "7.2.3",
3
+ "version": "7.3.0",
4
4
  "description": "🔧 repo config",
5
5
  "repository": "ornikar/shared-configs",
6
6
  "license": "ISC",
@@ -16,14 +16,14 @@
16
16
  "ornikar-prettier-fix": "./bin/ornikar-prettier-fix.sh"
17
17
  },
18
18
  "dependencies": {
19
- "@commitlint/cli": "16.1.0",
19
+ "@commitlint/cli": "16.2.1",
20
20
  "@ornikar/commitlint-config": "^4.0.3",
21
21
  "husky": "7.0.4",
22
- "lint-staged": "12.3.3",
22
+ "lint-staged": "12.3.4",
23
23
  "prettier-plugin-properties": "0.1.0",
24
24
  "semver": "^7.3.5",
25
25
  "which-pm-runs": "^1.0.0",
26
26
  "yarn-deduplicate": "3.1.0"
27
27
  },
28
- "gitHead": "364c303cb30967ced7c94bcdcc5ca07d66c379ac"
28
+ "gitHead": "a7956f98136d87c6ed727e9c4f61426c916acfe9"
29
29
  }