From f55018663961eb66b1045cacbae74162e95927a9 Mon Sep 17 00:00:00 2001 From: Arthur van de Vondervoort Date: Wed, 29 Apr 2026 11:14:29 +0200 Subject: [PATCH] refactor: rename install/ to download/ Rename the src/install/ directory and tests/install/ directory to src/download/ and tests/download/ respectively, reflecting the actual behavior of downloading .dll files to a destination folder. This is a breaking change for consumers importing from the install path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/{install => download}/nuget-api.ts | 0 src/{install => download}/nuget-extractor.ts | 0 src/index.ts | 6 +++--- tests/{install => download}/compiler-path.test.ts | 0 tests/{install => download}/nuget-api.test.ts | 2 +- tests/{install => download}/nuget-extractor.test.ts | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename src/{install => download}/nuget-api.ts (100%) rename src/{install => download}/nuget-extractor.ts (100%) rename tests/{install => download}/compiler-path.test.ts (100%) rename tests/{install => download}/nuget-api.test.ts (99%) rename tests/{install => download}/nuget-extractor.test.ts (97%) diff --git a/src/install/nuget-api.ts b/src/download/nuget-api.ts similarity index 100% rename from src/install/nuget-api.ts rename to src/download/nuget-api.ts diff --git a/src/install/nuget-extractor.ts b/src/download/nuget-extractor.ts similarity index 100% rename from src/install/nuget-extractor.ts rename to src/download/nuget-extractor.ts diff --git a/src/index.ts b/src/index.ts index 2b2ee36..e3e2c7e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,9 +4,9 @@ export { detectFromMarketplace, queryMarketplace, resolveExtensionVersion } from export { detectFromNuGetDevTools, resolveDevToolsVersion, selectBestDllEntry } from './detectors/nuget-devtools'; export { detectFromCompilerPath, findDllFiles } from './detectors/compiler-path'; -// Install -export { resolveVersion, downloadPackage, getDownloadUrl } from './install/nuget-api'; -export { extractAnalyzers, findMatchingTfmFolder } from './install/nuget-extractor'; +// Download +export { resolveVersion, downloadPackage, getDownloadUrl } from './download/nuget-api'; +export { extractAnalyzers, findMatchingTfmFolder } from './download/nuget-extractor'; // Shared utilities export { getUserAgent } from './user-agent'; diff --git a/tests/install/compiler-path.test.ts b/tests/download/compiler-path.test.ts similarity index 100% rename from tests/install/compiler-path.test.ts rename to tests/download/compiler-path.test.ts diff --git a/tests/install/nuget-api.test.ts b/tests/download/nuget-api.test.ts similarity index 99% rename from tests/install/nuget-api.test.ts rename to tests/download/nuget-api.test.ts index d241f83..d53ec36 100644 --- a/tests/install/nuget-api.test.ts +++ b/tests/download/nuget-api.test.ts @@ -23,7 +23,7 @@ import { resolveVersion, getDownloadUrl, downloadPackage, -} from '../../src/install/nuget-api'; +} from '../../src/download/nuget-api'; const mockQueryRegistration = queryNuGetRegistration as ReturnType; diff --git a/tests/install/nuget-extractor.test.ts b/tests/download/nuget-extractor.test.ts similarity index 97% rename from tests/install/nuget-extractor.test.ts rename to tests/download/nuget-extractor.test.ts index 53c6eda..463ae80 100644 --- a/tests/install/nuget-extractor.test.ts +++ b/tests/download/nuget-extractor.test.ts @@ -4,7 +4,7 @@ import * as path from 'path'; import * as os from 'os'; import { zipSync } from 'fflate'; -import { extractAnalyzers, findMatchingTfmFolder } from '../../src/install/nuget-extractor'; +import { extractAnalyzers, findMatchingTfmFolder } from '../../src/download/nuget-extractor'; let tmpDir: string;