Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit c8e94ee

Browse files
committed
fix: common called
1 parent c31180a commit c8e94ee

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

compiler/src/clean-up.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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

45
const styleFilePath = path.join(__dirname, '../../src/core/styles/style.module.css');
56
const globalFilePath = path.join(__dirname, '../../src/core/styles/global.css');
67

78
export 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);

compiler/src/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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');
99
const fg = require('fast-glob');
1010

1111
(async () => {

0 commit comments

Comments
 (0)