@ornikar/repo-config 6.1.0 → 6.1.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
@@ -3,6 +3,47 @@
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
+ ## [6.1.4](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@6.1.3...@ornikar/repo-config@6.1.4) (2021-11-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **repo-config:** fix lint-staged warnings [no issue] ([#552](https://github.com/ornikar/shared-configs/issues/552)) ([fae3636](https://github.com/ornikar/shared-configs/commit/fae36365d736001b45db217c38f302b9d6ba5370))
12
+
13
+
14
+
15
+
16
+
17
+ ## [6.1.3](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@6.1.2...@ornikar/repo-config@6.1.3) (2021-11-29)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * remove manual git add as lint-staged does it now [no issue] ([#546](https://github.com/ornikar/shared-configs/issues/546)) ([92ed60e](https://github.com/ornikar/shared-configs/commit/92ed60ee49710c09d15dba465e1ffbf7f1031979))
23
+
24
+
25
+
26
+
27
+
28
+ ## [6.1.2](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@6.1.1...@ornikar/repo-config@6.1.2) (2021-11-29)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **repo-config:** allow repo to have no tsconfig.build.json for prettier [no issue] ([#545](https://github.com/ornikar/shared-configs/issues/545)) ([218410d](https://github.com/ornikar/shared-configs/commit/218410df8b2014d8a9789f58f582a12caaaaceb3))
34
+
35
+
36
+
37
+
38
+
39
+ ## [6.1.1](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@6.1.0...@ornikar/repo-config@6.1.1) (2021-11-18)
40
+
41
+ **Note:** Version bump only for package @ornikar/repo-config
42
+
43
+
44
+
45
+
46
+
6
47
  # [6.1.0](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@6.0.2...@ornikar/repo-config@6.1.0) (2021-10-29)
7
48
 
8
49
 
@@ -10,7 +10,11 @@ const hasTypescript = Boolean(pkg.devDependencies && pkg.devDependencies.typescr
10
10
  const shouldGenerateTsconfigInLernaRepo = isLernaRepo && hasTypescript;
11
11
 
12
12
  const getSrcDirectories = (srcDirectoryName = 'src') =>
13
- workspaces ? `{${workspaces.join(',')}}${srcDirectoryName && `/${srcDirectoryName}`}` : srcDirectoryName;
13
+ workspaces
14
+ ? `${workspaces.length === 1 ? workspaces[0] : `{${workspaces.join(',')}}`}${
15
+ srcDirectoryName && `/${srcDirectoryName}`
16
+ }`
17
+ : srcDirectoryName;
14
18
 
15
19
  module.exports = function createLintStagedConfig(options = {}) {
16
20
  const srcExtensions = options.srcExtensions || ['js', 'mjs', 'ts'];
@@ -26,11 +30,10 @@ module.exports = function createLintStagedConfig(options = {}) {
26
30
  'yarn-deduplicate',
27
31
  'yarn --prefer-offline',
28
32
  packagejsonFilenames.length === 0 ? undefined : `prettier --write ${packagejsonFilenames.join(' ')}`,
29
- 'git add yarn.lock',
30
33
  isLernaRepo && require.resolve('@ornikar/lerna-config/bin/generate-eslintrc-files.js'),
31
34
  shouldGenerateTsconfigInLernaRepo && require.resolve('@ornikar/lerna-config/bin/generate-tsconfig-files.js'),
32
- shouldGenerateTsconfigInLernaRepo && 'prettier --write **/tsconfig.json **/tsconfig.build.json',
33
- shouldGenerateTsconfigInLernaRepo && 'git add **/tsconfig.json **/tsconfig.build.json',
35
+ shouldGenerateTsconfigInLernaRepo &&
36
+ 'prettier --write --no-error-on-unmatched-pattern **/tsconfig.json **/tsconfig.build.json',
34
37
  ].filter(Boolean);
35
38
  },
36
39
  '!(package).json': ['prettier --write'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornikar/repo-config",
3
- "version": "6.1.0",
3
+ "version": "6.1.4",
4
4
  "description": "repo config",
5
5
  "repository": "ornikar/shared-configs",
6
6
  "license": "ISC",
@@ -17,10 +17,10 @@
17
17
  "@commitlint/cli": "13.2.1",
18
18
  "@ornikar/commitlint-config": "^3.3.0",
19
19
  "husky": "7.0.4",
20
- "lint-staged": "11.2.4",
20
+ "lint-staged": "11.2.6",
21
21
  "semver": "^7.3.5",
22
22
  "which-pm-runs": "^1.0.0",
23
23
  "yarn-deduplicate": "3.1.0"
24
24
  },
25
- "gitHead": "3e392cda6169eaadf64ecddb885c3913c1c34c8f"
25
+ "gitHead": "92e44805336f7d314d640c538bcef6530cdd092d"
26
26
  }