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

Commit 8ff0cb9

Browse files
committed
fix(*): tsc --noEmit also strictly checks import statements.
1 parent d9fd2a8 commit 8ff0cb9

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

compiler/src/clean-up.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { writeFileSync } from 'fs';
2-
import path from 'path';
2+
import * as path from 'path';
33

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

compiler/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import path from 'path';
2-
import fs from 'fs';
3-
import fg from 'fast-glob';
1+
import * as path from 'path';
2+
import * as fs from 'fs';
43
import { cleanUp } from './clean-up';
54
import { createBuildIn } from '../../src/core/method/create-build-in-helper';
65
import { setBuildIn } from '../../src/core/method/set-build-in-helper';
76
import { globalBuildIn } from '../../src/core/method/global-build-in-helper';
87
import { rootBuildIn } from '../../src/core/method/root-build-in-helper';
8+
import fg = require('fast-glob');
99

1010
(async () => {
1111
await cleanUp();
@@ -20,7 +20,7 @@ import { rootBuildIn } from '../../src/core/method/root-build-in-helper';
2020
}
2121
const csstsPattern = [path.join(appRoot, '**/*.css.ts'), path.join(appRoot, '**/*.css.tsx')];
2222
const files = await fg(csstsPattern);
23-
console.log('\n💬 The following CSS caches were accepted:\n');
23+
console.log('\n💬 The f ollowing CSS caches were accepted:\n');
2424
for (const file of files) {
2525
const filePath = path.resolve(file);
2626
await import(filePath);

src/_internal/utils/hash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CustomCSSProperties, ClassesObjectType } from '..';
2-
import crypto from 'crypto';
2+
import * as crypto from 'crypto';
33

44
const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
55

src/_internal/utils/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import path from 'path';
21
import type { ClassesObjectType, HasEPE, HasECE, HasCPC, HasCCC } from '..';
32
import htmlTags from './html-tags';
3+
import * as path from 'path';
44

55
export const isWindowDefined = typeof window !== 'undefined';
66
export const isDocumentDefined = typeof document !== 'undefined';

0 commit comments

Comments
 (0)