@simbo/find-git-repository-root 2.0.0 → 3.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 +35 -0
- package/README.md +2 -2
- package/dist/find-git-repository-root.js.map +1 -1
- package/package.json +14 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @simbo/find-git-repository-root
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 19c8dc1: Require Node.js ^24.15.0 || >=26.0.0 across all packages, as Node.js
|
|
8
|
+
22 reaches its end of life on 2027-04-30.
|
|
9
|
+
|
|
10
|
+
- Remove `^22.22.2` from `engines.node` in every package.
|
|
11
|
+
- Update the requirements in the package READMEs.
|
|
12
|
+
|
|
13
|
+
Node.js 22 is no longer supported. Upgrade to Node.js ^24.15.0 or >=26.0.0
|
|
14
|
+
before updating these packages.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 19c8dc1: Point the `repository` field of the manifest to the workspace folder.
|
|
19
|
+
|
|
20
|
+
- `repository` uses the object form with `type`, `url`, and `directory`, so
|
|
21
|
+
npm links the package folder and resolves relative links in the README from
|
|
22
|
+
there.
|
|
23
|
+
- `packages-changelog` gets the field for the first time.
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [19c8dc1]
|
|
26
|
+
- Updated dependencies [19c8dc1]
|
|
27
|
+
- @simbo/is-git-repository-root@3.0.0
|
|
28
|
+
|
|
29
|
+
## 2.0.1
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 6f304e0: Include the original sources in source maps (`inlineSources`), so
|
|
34
|
+
debuggers and stack traces show the TypeScript code without publishing `src`.
|
|
35
|
+
- Updated dependencies [6f304e0]
|
|
36
|
+
- @simbo/is-git-repository-root@2.0.1
|
|
37
|
+
|
|
3
38
|
## 2.0.0
|
|
4
39
|
|
|
5
40
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ This package builds on [find-up](https://npmjs.com/package/find-up) and
|
|
|
26
26
|
|
|
27
27
|
## Requirements
|
|
28
28
|
|
|
29
|
-
Requires Node.js `^
|
|
29
|
+
Requires Node.js `^24.15.0 || >=26.0.0`.
|
|
30
30
|
|
|
31
31
|
## Installation
|
|
32
32
|
|
|
@@ -57,4 +57,4 @@ If no Git repository root is found, the function resolves to `undefined`.
|
|
|
57
57
|
|
|
58
58
|
## License
|
|
59
59
|
|
|
60
|
-
[MIT © Simon Lepel](
|
|
60
|
+
[MIT © Simon Lepel](https://simbo.mit-license.org/2025/)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-git-repository-root.js","sourceRoot":"","sources":["../src/find-git-repository-root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,UAAU,GAAG,GAAG,EAAE;IAC5D,MAAM,OAAO,GAAG,KAAK,EAAE,IAAY,EAA+B,EAAE,CAClE,CAAC,MAAM,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACvD,OAAO,MAAM,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACjE,CAAC"}
|
|
1
|
+
{"version":3,"file":"find-git-repository-root.js","sourceRoot":"","sources":["../src/find-git-repository-root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,UAAU,GAAG,GAAG,EAAE;IAC5D,MAAM,OAAO,GAAG,KAAK,EAAE,IAAY,EAA+B,EAAE,CAClE,CAAC,MAAM,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACvD,OAAO,MAAM,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACjE,CAAC","sourcesContent":["import { cwd } from 'node:process';\n\nimport { isGitRepositoryRoot } from '@simbo/is-git-repository-root';\nimport { findUp } from 'find-up';\n\n/**\n * Finds the root directory of a Git repository by searching upwards from the given working directory.\n *\n * It uses `@simbo/is-git-repository-root` to check if a directory is a Git repository root.\n *\n * @param workingDir - The directory from which to start searching for the Git root. Defaults to the current working directory.\n * @returns A promise that resolves to the path of the Git repository root, or undefined if not found.\n */\nexport async function findGitRepositoryRoot(workingDir = cwd()): Promise<string | undefined> {\n const matcher = async (path: string): Promise<string | undefined> =>\n (await isGitRepositoryRoot(path)) ? path : undefined;\n return findUp(matcher, { cwd: workingDir, type: 'directory' });\n}\n"]}
|
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": "3.0.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
7
7
|
"repository",
|
|
@@ -17,14 +17,15 @@
|
|
|
17
17
|
],
|
|
18
18
|
"author": "Simon Lepel <simbo@simbo.de> (https://simbo.de/)",
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"homepage": "
|
|
20
|
+
"homepage": "https://github.com/simbo/packages/tree/main/packages/find-git-repository-root",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "github
|
|
23
|
+
"url": "git+https://github.com/simbo/packages.git",
|
|
24
|
+
"directory": "packages/find-git-repository-root"
|
|
24
25
|
},
|
|
25
26
|
"bugs": "https://github.com/simbo/packages/issues",
|
|
26
27
|
"engines": {
|
|
27
|
-
"node": "^
|
|
28
|
+
"node": "^24.15.0 || >=26.0.0"
|
|
28
29
|
},
|
|
29
30
|
"type": "module",
|
|
30
31
|
"exports": {
|
|
@@ -37,29 +38,24 @@
|
|
|
37
38
|
"README.md"
|
|
38
39
|
],
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@simbo/is-git-repository-root": "
|
|
41
|
+
"@simbo/is-git-repository-root": "3.0.0",
|
|
41
42
|
"find-up": "^8.0.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@simbo/
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"
|
|
50
|
-
"@vitest/ui": "^5.0.1",
|
|
51
|
-
"baseline-browser-mapping": "^2.11.25",
|
|
52
|
-
"eslint": "^10.11.0",
|
|
45
|
+
"@simbo/eslint-config": "5.0.0",
|
|
46
|
+
"@simbo/tsconfig": "3.0.0",
|
|
47
|
+
"@types/node": "^24.19.2",
|
|
48
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
49
|
+
"@vitest/ui": "^5.1.1",
|
|
50
|
+
"eslint": "^10.15.0",
|
|
53
51
|
"jiti": "^2.7.0",
|
|
54
|
-
"prettier": "^3.9.8",
|
|
55
52
|
"typescript": "^6.0.3",
|
|
56
|
-
"vitest": "^5.
|
|
53
|
+
"vitest": "^5.1.1"
|
|
57
54
|
},
|
|
58
55
|
"scripts": {
|
|
59
56
|
"build": "tsc --project tsconfig.build.json",
|
|
60
|
-
"check": "pnpm run check:eslint && pnpm run check:
|
|
57
|
+
"check": "pnpm run check:eslint && pnpm run check:types",
|
|
61
58
|
"check:eslint": "eslint --config ./eslint.config.ts --max-warnings 0",
|
|
62
|
-
"check:format": "prettier --check .",
|
|
63
59
|
"check:types": "tsc --noEmit",
|
|
64
60
|
"clean": "pnpm run clean:dist && pnpm run clean:coverage && pnpm run clean:turbo && pnpm run clean:node_modules",
|
|
65
61
|
"clean:dist": "rm -rf dist",
|
|
@@ -67,7 +63,6 @@
|
|
|
67
63
|
"clean:turbo": "rm -rf .turbo",
|
|
68
64
|
"clean:coverage": "rm -rf coverage",
|
|
69
65
|
"fix:eslint": "pnpm run check:eslint --fix",
|
|
70
|
-
"fix:format": "prettier --write .",
|
|
71
66
|
"test": "vitest run --coverage",
|
|
72
67
|
"test:ui": "pnpm run test:watch --ui",
|
|
73
68
|
"test:watch": "vitest dev --coverage"
|