@simbo/find-git-repository-root 1.0.2 → 2.0.1

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
@@ -1,5 +1,37 @@
1
1
  # @simbo/find-git-repository-root
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6f304e0: Include the original sources in source maps (`inlineSources`), so
8
+ debuggers and stack traces show the TypeScript code without publishing `src`.
9
+ - Updated dependencies [6f304e0]
10
+ - @simbo/is-git-repository-root@2.0.1
11
+
12
+ ## 2.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - 2ded9ff: Require Node.js ^22.22.2 || ^24.15.0 || >=26.0.0 across all packages
17
+ to align with the runtime requirements of the updated dependencies. Node.js
18
+ 20, 21, 23 and 25, as well as earlier Node.js 22 and 24 releases, are no
19
+ longer supported. Upgrade to a supported Node.js version before updating these
20
+ packages.
21
+
22
+ ### Patch Changes
23
+
24
+ - 2ded9ff: Update documentation links from `simbo.codes` to `simbo.de`,
25
+ including the package READMEs and generated package list.
26
+ - 2ded9ff: Document the shared Node.js requirements and updated peer
27
+ dependencies. Correct API documentation links, installation and usage
28
+ examples, and repository development instructions. Clarify string count
29
+ conversion, literal replacements and import metadata fallbacks.
30
+ - Updated dependencies [2ded9ff]
31
+ - Updated dependencies [2ded9ff]
32
+ - Updated dependencies [2ded9ff]
33
+ - @simbo/is-git-repository-root@2.0.0
34
+
3
35
  ## 1.0.2
4
36
 
5
37
  ### 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 `folder).
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.codes/packages/modules/_simbo_find-git-repository-root/).
42
+ [documentation](https://simbo.de/packages/modules/_simbo_find-git-repository-root/).
39
43
 
40
44
  ### Example
41
45
 
@@ -53,4 +57,4 @@ If no Git repository root is found, the function resolves to `undefined`.
53
57
 
54
58
  ## License
55
59
 
56
- [MIT © Simon Lepel](http://simbo.mit-license.org/2025/)
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": "1.0.2",
4
+ "version": "2.0.1",
5
5
  "keywords": [
6
6
  "git",
7
7
  "repository",
@@ -17,11 +17,14 @@
17
17
  ],
18
18
  "author": "Simon Lepel <simbo@simbo.de> (https://simbo.de/)",
19
19
  "license": "MIT",
20
- "homepage": "http://github.com/simbo/packages/tree/main/packages/find-git-repository-root",
21
- "repository": "github:simbo/packages",
20
+ "homepage": "https://github.com/simbo/packages/tree/main/packages/find-git-repository-root",
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": ">=20"
27
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
25
28
  },
26
29
  "type": "module",
27
30
  "exports": {
@@ -34,32 +37,31 @@
34
37
  "README.md"
35
38
  ],
36
39
  "dependencies": {
37
- "find-up": "^8.0.0",
38
- "@simbo/is-git-repository-root": "1.0.1"
40
+ "@simbo/is-git-repository-root": "2.0.1",
41
+ "find-up": "^8.0.0"
39
42
  },
40
43
  "devDependencies": {
41
- "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
42
- "@types/node": "^20.19.18",
43
- "@vitest/coverage-v8": "^3.2.4",
44
- "@vitest/ui": "^3.2.4",
45
- "eslint": "^9.36.0",
46
- "jiti": "^2.6.0",
47
- "prettier": "^3.6.2",
48
- "prettier-plugin-organize-attributes": "^1.0.0",
49
- "typescript": "^5.9.2",
50
- "vitest": "^3.2.4",
51
- "@simbo/eslint-config": "2.0.0",
52
- "@simbo/prettier-config": "1.0.6",
53
- "@simbo/tsconfig": "1.0.4"
44
+ "@simbo/eslint-config": "3.3.0",
45
+ "@simbo/tsconfig": "2.1.0",
46
+ "@types/node": "^24.19.2",
47
+ "@vitest/coverage-v8": "^5.1.0",
48
+ "@vitest/ui": "^5.1.0",
49
+ "eslint": "^10.14.0",
50
+ "jiti": "^2.7.0",
51
+ "typescript": "^6.0.3",
52
+ "vitest": "^5.1.0"
54
53
  },
55
54
  "scripts": {
56
55
  "build": "tsc --project tsconfig.build.json",
56
+ "check": "pnpm run check:eslint && pnpm run check:types",
57
57
  "check:eslint": "eslint --config ./eslint.config.ts --max-warnings 0",
58
- "check:format": "prettier --check .",
59
58
  "check:types": "tsc --noEmit",
59
+ "clean": "pnpm run clean:dist && pnpm run clean:coverage && pnpm run clean:turbo && pnpm run clean:node_modules",
60
60
  "clean:dist": "rm -rf dist",
61
+ "clean:node_modules": "rm -rf node_modules",
62
+ "clean:turbo": "rm -rf .turbo",
63
+ "clean:coverage": "rm -rf coverage",
61
64
  "fix:eslint": "pnpm run check:eslint --fix",
62
- "fix:format": "prettier --write .",
63
65
  "test": "vitest run --coverage",
64
66
  "test:ui": "pnpm run test:watch --ui",
65
67
  "test:watch": "vitest dev --coverage"