File tree 1 file changed +10
-14
lines changed
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 5
5
import * as process from 'node:process' ;
6
6
import * as fs from 'node:fs' ;
7
7
8
- const run = async ( ) => {
9
- const defaultConfig = process . argv [ 2 ] ;
8
+ const defaultConfig = process . argv [ 2 ] ;
10
9
11
- const internal = process . argv [ 3 ] ;
10
+ const internal = process . argv [ 3 ] ;
12
11
13
- let configFile = `
12
+ let configFile = `
14
13
const tokens = require('${
15
14
internal ? './' : '@db-ui/base/build/tailwind/'
16
15
} tailwind-tokens.json')
@@ -35,14 +34,11 @@ const run = async () => {
35
34
};
36
35
` ;
37
36
38
- if ( defaultConfig === 'default' ) {
39
- configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')` ;
40
- }
37
+ if ( defaultConfig === 'default' ) {
38
+ configFile = `module.exports = require('@db-ui/base/build/tailwind/tailwind.config')` ;
39
+ }
41
40
42
- fs . writeFileSync (
43
- `${ internal ? './build/tailwind' : '.' } /tailwind.config.js` ,
44
- configFile
45
- ) ;
46
- } ;
47
-
48
- run ( ) ;
41
+ await fs . writeFileSync (
42
+ `${ internal ? './build/tailwind' : '.' } /tailwind.config.js` ,
43
+ configFile
44
+ ) ;
You can’t perform that action at this time.
0 commit comments