mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-12 15:40:04 +00:00
Switch to ESM for source and test, use CommonJS for dist
This commit is contained in:
parent
f9070de1ea
commit
27b24ababa
23 changed files with 212259 additions and 231165 deletions
|
|
@ -38,6 +38,8 @@ import {
|
|||
} from "./utils/platforms";
|
||||
import { getUvVersionFromFile } from "./version/resolve";
|
||||
|
||||
const sourceDir = __dirname;
|
||||
|
||||
async function getPythonVersion(): Promise<string> {
|
||||
if (pythonVersion !== "") {
|
||||
return pythonVersion;
|
||||
|
|
@ -308,7 +310,7 @@ function setCacheDir(): void {
|
|||
|
||||
function addMatchers(): void {
|
||||
if (addProblemMatchers) {
|
||||
const matchersPath = path.join(__dirname, `..${path.sep}..`, ".github");
|
||||
const matchersPath = path.join(sourceDir, "..", "..", ".github");
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, "python.json")}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue