1- /* eslint-disable @typescript-eslint/no-var-requires */
2- const path = require ( 'node:path' ) ;
3- const fs = require ( 'fs' ) ;
4- const { cleanUp } = require ( './clean-up' ) ;
5- const { createBuildIn } = require ( '../../src/core/method/create-build-in-helper' ) ;
6- const { setBuildIn } = require ( '../../src/core/method/set-build-in-helper' ) ;
7- const { globalBuildIn } = require ( '../../src/core/method/global-build-in-helper' ) ;
8- const { rootBuildIn } = require ( '../../src/core/method/root-build-in-helper' ) ;
9- const fg = require ( 'fast-glob' ) ;
1+ import path from 'path' ;
2+ import fs from 'fs' ;
3+ import fg from 'fast-glob' ;
4+ import { cleanUp } from './clean-up' ;
5+ import { createBuildIn } from '../../src/core/method/create-build-in-helper' ;
6+ import { setBuildIn } from '../../src/core/method/set-build-in-helper' ;
7+ import { globalBuildIn } from '../../src/core/method/global-build-in-helper' ;
8+ import { rootBuildIn } from '../../src/core/method/root-build-in-helper' ;
109
1110( async ( ) => {
12- cleanUp ( ) ;
11+ await cleanUp ( ) ;
1312 let appRoot = '' ;
1413 const threeLevelsUp = path . join ( process . cwd ( ) , '../../../../..' ) ;
1514 const pnpmExists = fs . existsSync ( path . join ( threeLevelsUp , 'node_modules/.pnpm' ) ) ;
@@ -20,7 +19,7 @@ const fg = require('fast-glob');
2019 appRoot = path . join ( process . cwd ( ) , '../../' ) ;
2120 }
2221 const csstsPattern = path . join ( appRoot , '**/*.css.ts' ) ;
23- const files : string [ ] = await fg ( [ csstsPattern ] ) ;
22+ const files = await fg ( [ csstsPattern ] ) ;
2423 console . log ( '\n💬 The following CSS caches were accepted:\n' ) ;
2524 for ( const file of files ) {
2625 const filePath = path . resolve ( file ) ;
0 commit comments