From c197017f77893b82f2ceccffbd34fd3ed5dfd711 Mon Sep 17 00:00:00 2001 From: Romain Menke Date: Thu, 6 Apr 2023 21:59:01 +0200 Subject: [PATCH] cleanup --- .github/bin/list-workspaces/list-workspaces.mjs | 1 - .github/bin/modified-workspaces/modified-workspaces.mjs | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/bin/list-workspaces/list-workspaces.mjs b/.github/bin/list-workspaces/list-workspaces.mjs index 49874dec3..5c5080bcd 100644 --- a/.github/bin/list-workspaces/list-workspaces.mjs +++ b/.github/bin/list-workspaces/list-workspaces.mjs @@ -35,7 +35,6 @@ export async function listWorkspaces() { for (const packageJSONPath of Array.from(packages)) { const packageJSON = JSON.parse(await fsp.readFile(packageJSONPath)); const packagePath = path.relative(process.cwd(), path.dirname(packageJSONPath)); - console.error('package relative path - ', packagePath); result.push({ path: packagePath, diff --git a/.github/bin/modified-workspaces/modified-workspaces.mjs b/.github/bin/modified-workspaces/modified-workspaces.mjs index 922cd2531..de5c8d740 100644 --- a/.github/bin/modified-workspaces/modified-workspaces.mjs +++ b/.github/bin/modified-workspaces/modified-workspaces.mjs @@ -3,10 +3,10 @@ import { listWorkspaces } from '../list-workspaces/list-workspaces.mjs'; import path from 'path'; const internalDependencies = [ - '.github/', + '.github' + path.sep, 'package-lock.json', 'package.json', - 'rollup/', + 'rollup' + path.sep, 'tsconfig.json', ]; @@ -46,13 +46,12 @@ export async function listModifiedWorkspaces() { for (const modifiedFile of modifiedFiles) { const modifiedFilePath = path.relative(process.cwd(), path.format(path.posix.parse(modifiedFile))); - console.error('modified file - ', modifiedFilePath); - if (modifiedFile.startsWith('e2e/')) { + if (modifiedFile.startsWith('e2e' + path.sep)) { continue; } - if (modifiedFile.startsWith('sites/')) { + if (modifiedFile.startsWith('sites' + path.sep)) { continue; }