Skip to content

Commit

Permalink
repository-tools: add js extension
Browse files Browse the repository at this point in the history
  • Loading branch information
altano committed May 6, 2024
1 parent 667f6c4 commit 7ea1103
Show file tree
Hide file tree
Showing 7 changed files with 5,991 additions and 4,798 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-jeans-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@altano/repository-tools": patch
---

add js extensions
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"eslint-plugin-package-json@0.12.1": "patches/eslint-plugin-package-json@0.12.1.patch"
}
},
"packageManager": "pnpm@8.15.5"
"packageManager": "pnpm@9.0.6"
}
2 changes: 1 addition & 1 deletion packages/repository-tools/src/findRoot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { repositoryExec } from "./repositoryCommand";
import { repositoryExec } from "./repositoryCommand.js";

async function findGitRoot(directory: string): Promise<string> {
return repositoryExec(directory, "git", [
Expand Down
2 changes: 1 addition & 1 deletion packages/repository-tools/src/findRootSync.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { repositoryExecSync } from "./repositoryCommand";
import { repositoryExecSync } from "./repositoryCommand.js";

function findGitRoot(cwd: string): string {
return repositoryExecSync(cwd, "git", [
Expand Down
4 changes: 2 additions & 2 deletions packages/repository-tools/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./findRoot";
export * from "./findRootSync";
export * from "./findRoot.js";
export * from "./findRootSync.js";
2 changes: 1 addition & 1 deletion packages/repository-tools/src/repositoryCommand.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execFileAsync, execFileSync } from "./exec";
import { execFileAsync, execFileSync } from "./exec.js";
import {} from "child_process";

type RepositoryCommand = "git" | "hg" | "sl" | "svn" | "svnadmin" | "svnrdump";
Expand Down
Loading

0 comments on commit 7ea1103

Please sign in to comment.