File tree 2 files changed +8
-2
lines changed
packages/knip/src/plugins
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ const enablers = ['@moonrepo/cli'];
10
10
11
11
const isEnabled : IsPluginEnabled = ( { dependencies } ) => hasDependency ( dependencies , enablers ) ;
12
12
13
- const config : string [ ] = [ 'moon.yml' , '.moon/tasks.yml' , '.moon/tasks/*.yml' ] ;
13
+ const isRootOnly = true ;
14
+
15
+ const config = [ 'moon.yml' , '.moon/tasks.yml' , '.moon/tasks/*.yml' ] ;
14
16
15
17
const resolveConfig : ResolveConfig < MoonConfiguration > = async ( config , options ) => {
16
18
const tasks = config . tasks ? Object . values ( config . tasks ) : [ ] ;
@@ -27,6 +29,7 @@ export default {
27
29
title,
28
30
enablers,
29
31
isEnabled,
32
+ isRootOnly,
30
33
config,
31
34
resolveConfig,
32
35
} satisfies Plugin ;
Original file line number Diff line number Diff line change @@ -9,11 +9,14 @@ const enablers = 'This plugin is enabled when a `yarn.lock` file is found in the
9
9
10
10
const isEnabled : IsPluginEnabled = async ( { cwd } ) => Boolean ( await _firstGlob ( { cwd, patterns : [ 'yarn.lock' ] } ) ) ;
11
11
12
- const entry : string [ ] = [ 'yarn.config.cjs' ] ;
12
+ const isRootOnly = true ;
13
+
14
+ const entry = [ 'yarn.config.cjs' ] ;
13
15
14
16
export default {
15
17
title,
16
18
enablers,
17
19
isEnabled,
20
+ isRootOnly,
18
21
entry,
19
22
} satisfies Plugin ;
You can’t perform that action at this time.
0 commit comments