@simbo/find-git-repository-root 1.0.2 → 2.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.
- package/CHANGELOG.md +23 -0
- package/README.md +6 -2
- package/package.json +26 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @simbo/find-git-repository-root
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 2ded9ff: Require Node.js ^22.22.2 || ^24.15.0 || >=26.0.0 across all packages
|
|
8
|
+
to align with the runtime requirements of the updated dependencies. Node.js
|
|
9
|
+
20, 21, 23 and 25, as well as earlier Node.js 22 and 24 releases, are no
|
|
10
|
+
longer supported. Upgrade to a supported Node.js version before updating these
|
|
11
|
+
packages.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 2ded9ff: Update documentation links from `simbo.codes` to `simbo.de`,
|
|
16
|
+
including the package READMEs and generated package list.
|
|
17
|
+
- 2ded9ff: Document the shared Node.js requirements and updated peer
|
|
18
|
+
dependencies. Correct API documentation links, installation and usage
|
|
19
|
+
examples, and repository development instructions. Clarify string count
|
|
20
|
+
conversion, literal replacements and import metadata fallbacks.
|
|
21
|
+
- Updated dependencies [2ded9ff]
|
|
22
|
+
- Updated dependencies [2ded9ff]
|
|
23
|
+
- Updated dependencies [2ded9ff]
|
|
24
|
+
- @simbo/is-git-repository-root@2.0.0
|
|
25
|
+
|
|
3
26
|
## 1.0.2
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
A lightweight utility for locating the **root directory of a Git repository**.
|
|
7
7
|
|
|
8
8
|
It searches upward from a given directory until it finds a valid repository root
|
|
9
|
-
(a directory containing a `.git
|
|
9
|
+
(a directory containing a `.git` folder).
|
|
10
10
|
|
|
11
11
|
This package builds on [find-up](https://npmjs.com/package/find-up) and
|
|
12
12
|
[`@simbo/is-git-repository-root`](https://npmjs.com/package/@simbo/is-git-repository-root).
|
|
@@ -24,6 +24,10 @@ This package builds on [find-up](https://npmjs.com/package/find-up) and
|
|
|
24
24
|
|
|
25
25
|
- Fully typed with TypeScript
|
|
26
26
|
|
|
27
|
+
## Requirements
|
|
28
|
+
|
|
29
|
+
Requires Node.js `^22.22.2 || ^24.15.0 || >=26.0.0`.
|
|
30
|
+
|
|
27
31
|
## Installation
|
|
28
32
|
|
|
29
33
|
Install `@simbo/find-git-repository-root` from the npm registry:
|
|
@@ -35,7 +39,7 @@ npm i [-D] @simbo/find-git-repository-root
|
|
|
35
39
|
## Usage
|
|
36
40
|
|
|
37
41
|
For a complete API reference, see the
|
|
38
|
-
[documentation](https://simbo.
|
|
42
|
+
[documentation](https://simbo.de/packages/modules/_simbo_find-git-repository-root/).
|
|
39
43
|
|
|
40
44
|
### Example
|
|
41
45
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simbo/find-git-repository-root",
|
|
3
3
|
"description": "A lightweight utility for locating the root directory of a Git repository.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
7
7
|
"repository",
|
|
@@ -18,10 +18,13 @@
|
|
|
18
18
|
"author": "Simon Lepel <simbo@simbo.de> (https://simbo.de/)",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"homepage": "http://github.com/simbo/packages/tree/main/packages/find-git-repository-root",
|
|
21
|
-
"repository":
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "github:simbo/packages"
|
|
24
|
+
},
|
|
22
25
|
"bugs": "https://github.com/simbo/packages/issues",
|
|
23
26
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
27
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
25
28
|
},
|
|
26
29
|
"type": "module",
|
|
27
30
|
"exports": {
|
|
@@ -34,30 +37,35 @@
|
|
|
34
37
|
"README.md"
|
|
35
38
|
],
|
|
36
39
|
"dependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
40
|
+
"@simbo/is-git-repository-root": "2.0.0",
|
|
41
|
+
"find-up": "^8.0.0"
|
|
39
42
|
},
|
|
40
43
|
"devDependencies": {
|
|
41
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.7.
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
44
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
45
|
+
"@simbo/eslint-config": "3.0.0",
|
|
46
|
+
"@simbo/prettier-config": "3.0.0",
|
|
47
|
+
"@simbo/tsconfig": "2.0.0",
|
|
48
|
+
"@types/node": "^24.13.6",
|
|
49
|
+
"@vitest/coverage-v8": "^5.0.1",
|
|
50
|
+
"@vitest/ui": "^5.0.1",
|
|
51
|
+
"baseline-browser-mapping": "^2.11.25",
|
|
52
|
+
"eslint": "^10.11.0",
|
|
53
|
+
"jiti": "^2.7.0",
|
|
54
|
+
"prettier": "^3.9.8",
|
|
55
|
+
"typescript": "^6.0.3",
|
|
56
|
+
"vitest": "^5.0.1"
|
|
54
57
|
},
|
|
55
58
|
"scripts": {
|
|
56
59
|
"build": "tsc --project tsconfig.build.json",
|
|
60
|
+
"check": "pnpm run check:eslint && pnpm run check:format && pnpm run check:types",
|
|
57
61
|
"check:eslint": "eslint --config ./eslint.config.ts --max-warnings 0",
|
|
58
62
|
"check:format": "prettier --check .",
|
|
59
63
|
"check:types": "tsc --noEmit",
|
|
64
|
+
"clean": "pnpm run clean:dist && pnpm run clean:coverage && pnpm run clean:turbo && pnpm run clean:node_modules",
|
|
60
65
|
"clean:dist": "rm -rf dist",
|
|
66
|
+
"clean:node_modules": "rm -rf node_modules",
|
|
67
|
+
"clean:turbo": "rm -rf .turbo",
|
|
68
|
+
"clean:coverage": "rm -rf coverage",
|
|
61
69
|
"fix:eslint": "pnpm run check:eslint --fix",
|
|
62
70
|
"fix:format": "prettier --write .",
|
|
63
71
|
"test": "vitest run --coverage",
|