Skip to content

Commit 3e4a96d

Browse files
committed
fix: use patha only when needed
1 parent ae014dc commit 3e4a96d

File tree

22 files changed

+33
-32
lines changed

22 files changed

+33
-32
lines changed

dist/legacy/assets/actions_python-BF80bhWt.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/assets/actions_python-mhNRejTS.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/modern/setup-cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/chocolatey/chocolatey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { dirname } from "path"
12
import { addPath } from "envosman"
23
import { execaSync } from "execa"
34
import { pathExists } from "path-exists"
4-
import { dirname } from "patha"
55
import which from "which"
66
import { rcOptions } from "../cli-options.js"
77
import type { InstallationInfo } from "../utils/setup/setupBin.js"

src/doxygen/doxygen.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { join } from "path"
12
import { info, notice } from "ci-log"
23
import { addPath } from "envosman"
3-
import { addExeExt, join } from "patha"
4+
import { addExeExt } from "patha"
45
import { installAptPack } from "setup-apt"
56
import { installBrewPack } from "setup-brew"
67
import { setupGraphviz } from "../graphviz/graphviz.js"

src/gcc/__tests__/gcc.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import path from "path"
1+
import path, { join } from "path"
22
import { fileURLToPath } from "url"
33
import { execaSync } from "execa"
44
import { chmod } from "fs/promises"
5-
import { addExeExt, join } from "patha"
5+
import { addExeExt } from "patha"
66
import { isUbuntu } from "../../utils/env/isUbuntu.js"
77
import { ubuntuVersion } from "../../utils/env/ubuntu_version.js"
88
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers.js"

src/gcc/gcc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import path from "path"
1+
import path, { join } from "path"
22
import { fileURLToPath } from "url"
33
import { GITHUB_ACTIONS } from "ci-info"
44
import { error, info, warning } from "ci-log"
55
import { addEnv, addPath } from "envosman"
66
import { type ExecaReturnValue, execa } from "execa"
77
import { readdir } from "fs/promises"
88
import { pathExists } from "path-exists"
9-
import { addExeExt, join } from "patha"
9+
import { addExeExt } from "patha"
1010
import semverCoerce from "semver/functions/coerce"
1111
import semverMajor from "semver/functions/major"
1212
import { addUpdateAlternativesToRc, installAptPack } from "setup-apt"

0 commit comments

Comments
 (0)