File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ import { join } from 'path'
11
11
import { ManifestGenerator } from '@adonisjs/ace'
12
12
import { fsReadAll } from '@poppinss/utils/build/helpers'
13
13
14
+ /**
15
+ * Get the file path to every assembler commands
16
+ */
17
+ const commandsPaths = fsReadAll (
18
+ join ( __dirname , '../commands' ) ,
19
+ ( file ) => ! file . includes ( 'Base' ) && file . endsWith ( '.js' )
20
+ )
21
+ . map ( ( file ) => `./commands/${ file } ` )
22
+ . map ( ( file ) => file . replace ( / \\ / g, '/' ) )
23
+
14
24
/**
15
25
* Generates ace-manifest file
16
26
*/
17
- new ManifestGenerator (
18
- join ( __dirname , '..' ) ,
19
- fsReadAll (
20
- join ( __dirname , '../commands' ) ,
21
- ( file ) => ! file . includes ( 'Base' ) && file . endsWith ( '.js' )
22
- ) . map ( ( file ) => `./commands/${ file } ` )
23
- ) . generate ( )
27
+ new ManifestGenerator ( join ( __dirname , '..' ) , commandsPaths ) . generate ( )
You can’t perform that action at this time.
0 commit comments