Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Apr 6, 2023
1 parent 2c9ab99 commit c197017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/bin/list-workspaces/list-workspaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 4 additions & 5 deletions .github/bin/modified-workspaces/modified-workspaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit c197017

Please sign in to comment.