@@ -16,7 +16,7 @@ export const PREFIX = 'hds';
16
16
17
17
export async function generateCssHelpers ( dictionary : Dictionary , config : Platform ) : Promise < void > {
18
18
19
- fs . ensureDir ( `${ config . buildPath } / helpers/` ) ;
19
+ fs . ensureDir ( `${ config . buildPath } helpers/` ) ;
20
20
21
21
// tried to use style-dictionary/lib/common/formatHelpers/fileHeader.js but didn't work
22
22
const header = `/**\n * Do not edit directly\n * Generated on ${ new Date ( ) . toUTCString ( ) } \n */\n` ;
@@ -31,24 +31,24 @@ export async function generateCssHelpers(dictionary: Dictionary, config: Platfor
31
31
// so it's simpler to process all the tokens (flat structure) and filter them
32
32
const helpers = generateColorHelpers ( dictionary . allTokens , outputCssVars ) ;
33
33
const content = `${ header } \n${ helpers . join ( '\n' ) } \n` ;
34
- await fs . writeFile ( `${ config . buildPath } / helpers/color.css` , content ) ;
34
+ await fs . writeFile ( `${ config . buildPath } helpers/color.css` , content ) ;
35
35
}
36
36
37
37
if ( dictionary . tokens . typography ) {
38
38
const helpers = generateTypographyHelpers ( dictionary . tokens . typography , outputCssVars ) ;
39
39
const content = `${ header } \n${ helpers . join ( '\n' ) } \n` ;
40
- await fs . writeFile ( `${ config . buildPath } / helpers/typography.css` , content ) ;
40
+ await fs . writeFile ( `${ config . buildPath } helpers/typography.css` , content ) ;
41
41
}
42
42
43
43
if ( dictionary . tokens . elevation ) {
44
44
const helpers = generateElevationHelpers ( dictionary . tokens . elevation , dictionary . tokens . surface , outputCssVars ) ;
45
45
const content = `${ header } \n${ helpers . join ( '\n' ) } \n` ;
46
- await fs . writeFile ( `${ config . buildPath } / helpers/elevation.css` , content ) ;
46
+ await fs . writeFile ( `${ config . buildPath } helpers/elevation.css` , content ) ;
47
47
}
48
48
49
49
if ( dictionary . tokens [ 'focus-ring' ] ) {
50
50
const helpers = generateFocusRingHelpers ( dictionary . tokens [ 'focus-ring' ] , outputCssVars ) ;
51
51
const content = `${ header } \n${ helpers . join ( '\n' ) } \n` ;
52
- await fs . writeFile ( `${ config . buildPath } / helpers/focus-ring.css` , content ) ;
52
+ await fs . writeFile ( `${ config . buildPath } helpers/focus-ring.css` , content ) ;
53
53
}
54
54
}
0 commit comments