File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { libsize } from "./libsize";
1111import { release , RELEASE_TYPES , toReleaseType } from "./release" ;
1212import { sandbox } from "./sandbox" ;
1313import { sassdoc } from "./sassdoc" ;
14+ import { sassMigrator } from "./sassMigrator" ;
1415import { shared } from "./shared" ;
1516import { themes } from "./themes" ;
1617import { typedoc } from "./typedoc" ;
@@ -205,4 +206,6 @@ createCommand("typedoc")
205206 )
206207 . action ( ( ) => typedoc ( ) ) ;
207208
209+ createCommand ( "migrate" ) . action ( ( ) => sassMigrator ( ) ) ;
210+
208211program . parse ( process . argv ) ;
Original file line number Diff line number Diff line change 1+ import { exec } from "child_process" ;
2+ import { promisify } from "util" ;
3+
4+ import { glob } from "./utils" ;
5+
6+ const execPromise = promisify ( exec ) ;
7+
8+ export async function sassMigrator ( ) : Promise < void > {
9+ const files = await glob ( "packages/!(documentation)/src/**/*.scss" ) ;
10+
11+ await Promise . all (
12+ files . map ( ( file ) => execPromise ( `sass-migrator division ${ file } ` ) )
13+ ) ;
14+ }
You can’t perform that action at this time.
0 commit comments