File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 55import * as process from 'node:process' ;
66import * as fs from 'node:fs' ;
77
8- const run = async ( ) => {
9- const defaultConfig = process . argv [ 2 ] ;
8+ const defaultConfig = process . argv [ 2 ] ;
109
11- const internal = process . argv [ 3 ] ;
10+ const internal = process . argv [ 3 ] ;
1211
13- let configFile = `
12+ let configFile = `
1413 const tokens = require('${
1514 internal ? './' : '@db-ui/base/build/tailwind/'
1615 } tailwind-tokens.json')
@@ -35,14 +34,11 @@ const run = async () => {
3534 };
3635 ` ;
3736
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+ }
4140
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