diff --git a/build/data/preview-config.ts b/build/data/preview-config.ts index 175af27..489f9e8 100644 --- a/build/data/preview-config.ts +++ b/build/data/preview-config.ts @@ -24,6 +24,14 @@ export const folderMapping: FolderMapping = { isStatiq: true, isAstro: false }, + '--ccm': { + folder: 'choco-licensed-management-ui', + protocol: 'https', + port: 44302, + isStatiq: false, + isAstro: false, + root: '/src/ChocolateySoftware.ChocolateyManagement.Web.Mvc' + }, '--boxstarter': { folder: 'boxstarter.org', port: 5083, diff --git a/build/preview-upgrade.ts b/build/preview-upgrade.ts index 50ed047..5eb17df 100644 --- a/build/preview-upgrade.ts +++ b/build/preview-upgrade.ts @@ -51,6 +51,13 @@ const init = async () => { return; // Skip to the next folder } + try { + await fs.rm(`${folderPath}/yarn.lock`, { force: true }); + console.log(`✅ ${folderName} yarn.lock removed`); + } catch (error) { + throw new Error(`Error removing yarn.lock: ${error.message}`); + } + try { const childProcess = spawn(`yarn up choco-theme@${url}`, [], { // stdio: 'inherit', // Use 'inherit' to directly pipe the output to the parent process