@simbo/is-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 +37 -0
- package/README.md +2 -2
- package/dist/is-git-repository-root.js.map +1 -1
- package/package.json +15 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @simbo/is-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/accessible@3.0.0
|
|
28
|
+
- @simbo/git-constants@3.0.0
|
|
29
|
+
|
|
30
|
+
## 2.0.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 6f304e0: Include the original sources in source maps (`inlineSources`), so
|
|
35
|
+
debuggers and stack traces show the TypeScript code without publishing `src`.
|
|
36
|
+
- Updated dependencies [6f304e0]
|
|
37
|
+
- @simbo/accessible@2.0.1
|
|
38
|
+
- @simbo/git-constants@2.0.1
|
|
39
|
+
|
|
3
40
|
## 2.0.0
|
|
4
41
|
|
|
5
42
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ It simply checks for the presence of a `.git` folder in the given directory.
|
|
|
24
24
|
|
|
25
25
|
## Requirements
|
|
26
26
|
|
|
27
|
-
Requires Node.js `^
|
|
27
|
+
Requires Node.js `^24.15.0 || >=26.0.0`.
|
|
28
28
|
|
|
29
29
|
## Installation
|
|
30
30
|
|
|
@@ -55,4 +55,4 @@ if (await isGitRepositoryRoot('/path/to/dir')) {
|
|
|
55
55
|
|
|
56
56
|
## License
|
|
57
57
|
|
|
58
|
-
[MIT © Simon Lepel](
|
|
58
|
+
[MIT © Simon Lepel](https://simbo.mit-license.org/2025/)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-git-repository-root.js","sourceRoot":"","sources":["../src/is-git-repository-root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,UAAU,GAAG,GAAG,EAAE;IAC1D,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC7C,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"is-git-repository-root.js","sourceRoot":"","sources":["../src/is-git-repository-root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,UAAU,GAAG,GAAG,EAAE;IAC1D,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC7C,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC","sourcesContent":["import { resolve } from 'node:path';\nimport { cwd } from 'node:process';\n\nimport { isDirectory } from '@simbo/accessible';\nimport { GIT_FOLDER } from '@simbo/git-constants';\n\n/**\n * Checks if the given directory is the root of a Git repository.\n *\n * Only succeeds on directories that contain a `.git` folder.\n *\n * Git submodules or worktrees are not considered as roots.\n *\n * @param workingDir - The directory in which to check for the Git root. Defaults to the current working directory.\n * @returns A promise that resolves to true if the directory is a Git root, false otherwise.\n */\nexport async function isGitRepositoryRoot(workingDir = cwd()): Promise<boolean> {\n try {\n const path = resolve(workingDir, GIT_FOLDER);\n return await isDirectory(path);\n } catch {\n return false;\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simbo/is-git-repository-root",
|
|
3
3
|
"description": "A lightweight utility for checking whether a directory is the root 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/is-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/is-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/accessible": "
|
|
41
|
-
"@simbo/git-constants": "
|
|
41
|
+
"@simbo/accessible": "3.0.0",
|
|
42
|
+
"@simbo/git-constants": "3.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"
|