11import { listModifiedFilesInPullRequest } from './list-modified-files.mjs' ;
22import { listWorkspaces } from '../list-workspaces/list-workspaces.mjs' ;
33
4- const privateRootDependencies = [
5- 'packages/postcss-tape' ,
4+ const internalDependencies = [
5+ '.github/' ,
6+ 'package-lock.json' ,
7+ 'package.json' ,
8+ 'rollup/' ,
9+ 'tsconfig.json' ,
610] ;
711
812export async function listModifiedWorkspaces ( ) {
@@ -40,8 +44,9 @@ export async function listModifiedWorkspaces() {
4044 const modifiedWorkspaces = new Set ( ) ;
4145
4246 for ( const modifiedFile of modifiedFiles ) {
43- for ( const privateRootDependency of privateRootDependencies ) {
44- if ( modifiedFile . startsWith ( privateRootDependency ) ) {
47+ for ( const internalDependency of internalDependencies ) {
48+ if ( modifiedFile . startsWith ( internalDependency ) ) {
49+ console . error ( 'modified a private dependency' , modifiedFile ) ;
4550 // this file can influence anything
4651 // anything or everything might have changed
4752 return {
@@ -54,6 +59,16 @@ export async function listModifiedWorkspaces() {
5459
5560 let isNonWorkspaceFile = true ;
5661 for ( const workspace of workspaces ) {
62+ if ( modifiedFile . startsWith ( 'e2e/' ) ) {
63+ continue ;
64+ }
65+
66+ if ( modifiedFile . startsWith ( 'sites/' ) ) {
67+ continue ;
68+ }
69+
70+ console . error ( 'modifiedFile outside of workspaces' , modifiedFile ) ;
71+
5772 if ( modifiedFile . startsWith ( workspace . path ) ) {
5873 isNonWorkspaceFile = false ;
5974
0 commit comments