@ornikar/repo-config 14.0.2 → 14.1.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 +9 -0
- package/lib/postinstall/install-husky.js +9 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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
|
+
## [14.1.0](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@14.0.2...@ornikar/repo-config@14.1.0) (2024-11-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* do not add pod-install if expo managed project [no issue] ([#1107](https://github.com/ornikar/shared-configs/issues/1107)) ([5dccb1f](https://github.com/ornikar/shared-configs/commit/5dccb1fb1f07382546cb693ed79e950a7f55aefc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [14.0.2](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@14.0.1...@ornikar/repo-config@14.0.2) (2024-10-09)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @ornikar/repo-config
|
|
@@ -156,12 +156,16 @@ fi
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
const podfilePath = path.join(packageLocation, 'ios/Podfile.lock');
|
|
159
|
+
|
|
159
160
|
if (fs.existsSync(podfilePath)) {
|
|
160
|
-
|
|
161
|
-
if
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
const gitIgnorePath = path.join(packageLocation, '.gitignore');
|
|
162
|
+
if (fs.existsSync(gitIgnorePath) && !fs.readFileSync(gitIgnorePath, 'utf8').includes('/ios/')) {
|
|
163
|
+
postHookContent += `
|
|
164
|
+
if [ -n "$(git diff HEAD@{1}..HEAD@{0} -- ${podfilePath})" ]; then
|
|
165
|
+
${[cdToPackageLocation, 'yarn pod-install || true', cdToRoot].filter(Boolean).join('\n ')}
|
|
166
|
+
fi
|
|
167
|
+
`;
|
|
168
|
+
}
|
|
165
169
|
}
|
|
166
170
|
});
|
|
167
171
|
writeHook('post-checkout', postHookContent);
|