File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33## 4.1.0 IN PROGRESS
44
55* Populate module descriptor's ` name ` field with module-name if ` description ` is missing. Refs STCLI-272.
6+ * Use node-native glob functionality in ` translate compile ` . Refs STCLI-273.
67
78## [ 4.0.0] ( https://github.com/folio-org/stripes-cli/tree/v4.0.0 ) (2025-02-24)
89[ Full Changelog] ( https://github.com/folio-org/stripes-cli/compare/v3.2.0...v4.0.0 )
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ const importLazy = require('import-lazy')(require);
1010const fs = importLazy ( 'fs' ) ;
1111const path = importLazy ( 'path' ) ;
1212const process = importLazy ( 'process' ) ;
13- const fg = importLazy ( 'fast-glob' ) ;
1413const { compile } = importLazy ( '@formatjs/cli-lib' ) ;
1514
1615const { contextMiddleware } = importLazy ( '../../cli/context-middleware' ) ;
16+ const { globSync } = fs ;
1717
1818/**
1919 * createOutDir
@@ -42,8 +42,8 @@ function formatjsCompileCommand(argv) {
4242 ast : true ,
4343 format : 'simple' ,
4444 } ;
45-
46- const files = fg . globSync ( path . join ( txPath , '*.json' ) ) ;
45+ const globSelect = path . join ( txPath , '*.json' ) ;
46+ const files = globSync ( globSelect ) ;
4747 if ( fs . existsSync ( txPath ) && files . length > 0 ) {
4848 createOutDir ( outDir ) ;
4949 Promise . all ( files . map ( f => compile ( [ f ] , opts ) ) )
Original file line number Diff line number Diff line change 3131 "configstore" : " ^3.1.1" ,
3232 "debug" : " ^4.0.1" ,
3333 "express" : " ^4.17.1" ,
34- "fast-glob" : " ^3.3.1" ,
3534 "fast-xml-parser" : " ^4.2.4" ,
3635 "find-up" : " ^2.1.0" ,
3736 "fs-extra" : " ^11.1.1" ,
You can’t perform that action at this time.
0 commit comments