This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed
Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1- import { writeFileSync } from 'fs' ;
2- import path from 'path' ;
1+ /* eslint-disable @typescript-eslint/no-var-requires */
2+ const fs = require ( 'fs' ) ;
3+ const path = require ( 'node:path' ) ;
34
45const styleFilePath = path . join ( __dirname , '../../src/core/styles/style.module.css' ) ;
56const globalFilePath = path . join ( __dirname , '../../src/core/styles/global.css' ) ;
67
78export const cleanUp = async ( ) => {
89 try {
9- writeFileSync ( styleFilePath , '/*------------------------------*/' , 'utf-8' ) ;
10+ fs . writeFileSync ( styleFilePath , '/*------------------------------*/' , 'utf-8' ) ;
1011 console . log ( '...💫(reseted module css)' ) ;
1112
12- writeFileSync ( globalFilePath , '/*------------------------------*/' , 'utf-8' ) ;
13+ fs . writeFileSync ( globalFilePath , '/*------------------------------*/' , 'utf-8' ) ;
1314 console . log ( '...💫(reseted global css)' ) ;
1415 } catch ( err ) {
1516 console . error ( 'An error occurred:' , err ) ;
Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-var-requires */
2- import path from 'node:path' ;
3- import fs from 'fs' ;
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' ;
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' ) ;
99const fg = require ( 'fast-glob' ) ;
1010
1111( async ( ) => {
You can’t perform that action at this time.
0 commit comments