@simbo/is-git-repository-root 2.0.0 → 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,15 @@
1
1
  # @simbo/is-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/accessible@2.0.1
11
+ - @simbo/git-constants@2.0.1
12
+
3
13
  ## 2.0.0
4
14
 
5
15
  ### Major Changes
package/README.md CHANGED
@@ -55,4 +55,4 @@ if (await isGitRepositoryRoot('/path/to/dir')) {
55
55
 
56
56
  ## License
57
57
 
58
- [MIT © Simon Lepel](http://simbo.mit-license.org/2025/)
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": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "keywords": [
6
6
  "git",
7
7
  "repository",
@@ -17,7 +17,7 @@
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/is-git-repository-root",
20
+ "homepage": "https://github.com/simbo/packages/tree/main/packages/is-git-repository-root",
21
21
  "repository": {
22
22
  "type": "git",
23
23
  "url": "github:simbo/packages"
@@ -37,29 +37,24 @@
37
37
  "README.md"
38
38
  ],
39
39
  "dependencies": {
40
- "@simbo/accessible": "2.0.0",
41
- "@simbo/git-constants": "2.0.0"
40
+ "@simbo/accessible": "2.0.1",
41
+ "@simbo/git-constants": "2.0.1"
42
42
  },
43
43
  "devDependencies": {
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",
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",
53
50
  "jiti": "^2.7.0",
54
- "prettier": "^3.9.8",
55
51
  "typescript": "^6.0.3",
56
- "vitest": "^5.0.1"
52
+ "vitest": "^5.1.0"
57
53
  },
58
54
  "scripts": {
59
55
  "build": "tsc --project tsconfig.build.json",
60
- "check": "pnpm run check:eslint && pnpm run check:format && pnpm run check:types",
56
+ "check": "pnpm run check:eslint && pnpm run check:types",
61
57
  "check:eslint": "eslint --config ./eslint.config.ts --max-warnings 0",
62
- "check:format": "prettier --check .",
63
58
  "check:types": "tsc --noEmit",
64
59
  "clean": "pnpm run clean:dist && pnpm run clean:coverage && pnpm run clean:turbo && pnpm run clean:node_modules",
65
60
  "clean:dist": "rm -rf dist",
@@ -67,7 +62,6 @@
67
62
  "clean:turbo": "rm -rf .turbo",
68
63
  "clean:coverage": "rm -rf coverage",
69
64
  "fix:eslint": "pnpm run check:eslint --fix",
70
- "fix:format": "prettier --write .",
71
65
  "test": "vitest run --coverage",
72
66
  "test:ui": "pnpm run test:watch --ui",
73
67
  "test:watch": "vitest dev --coverage"