Skip to content

Commit 8c9f427

Browse files
committed
chore: adjust typing imports
1 parent 77f2904 commit 8c9f427

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

packages/cordis/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
export * from '@cordisjs/core'
2-
export {} from '@cordisjs/plugin-loader'
3-
export {} from '@cordisjs/plugin-logger'
42
export { default as Schema, default as z } from 'schemastery'

packages/hmr/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { ModuleJob, ModuleLoader } from 'cordis/loader'
44
import { ChokidarOptions, FSWatcher, watch } from 'chokidar'
55
import { relative, resolve } from 'node:path'
66
import { handleError } from './error.ts'
7-
import {} from '@cordisjs/plugin-timer'
7+
import type {} from '@cordisjs/plugin-timer'
8+
import type {} from '@cordisjs/plugin-logger'
89
import { fileURLToPath, pathToFileURL } from 'node:url'
910
import picomatch from 'picomatch'
1011
import enUS from './locales/en-US.yml'

packages/loader/src/config/file.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,4 @@ export namespace LoaderFile {
8787
}
8888

8989
export const supported = new Set(Object.keys(writable))
90-
91-
if (typeof require !== 'undefined') {
92-
// eslint-disable-next-line n/no-deprecated-api
93-
for (const extname in require.extensions) {
94-
supported.add(extname)
95-
}
96-
}
9790
}

packages/loader/src/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Context, Inject, Service } from '@cordisjs/core'
2-
import {} from '@cordisjs/plugin-logger'
2+
import type {} from '@cordisjs/plugin-logger'
33
import { defineProperty, Dict, isNullable } from 'cosmokit'
44
import { ModuleLoader } from './internal.ts'
55
import { Entry, EntryOptions } from './config/entry.ts'

0 commit comments

Comments
 (0)