Skip to content

Commit

Permalink
feat(cordis): export loader at cordis/loader
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jul 19, 2024
1 parent 2d4a1f6 commit fa78ba8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/cordis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"types": "./lib/plugins/import-config.d.ts",
"default": "./lib/plugins/import-config.mjs"
},
"./loader": {
"types": "./lib/plugins/loader.d.ts",
"default": "./lib/plugins/loader.mjs"
},
"./worker": {
"types": "./lib/worker/index.d.ts",
"default": "./lib/worker/index.mjs"
Expand Down
1 change: 1 addition & 0 deletions packages/cordis/src/plugins/loader.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@cordisjs/loader'
2 changes: 1 addition & 1 deletion packages/hmr/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Context, ForkScope, MainScope, Plugin, Schema, Service } from 'cordis'
import { Dict, makeArray } from 'cosmokit'
import { ModuleJob } from '@cordisjs/loader'
import { ModuleJob } from 'cordis/loader'
import { FSWatcher, watch, WatchOptions } from 'chokidar'
import { relative, resolve } from 'path'
import { handleError } from './error.js'
Expand Down

0 comments on commit fa78ba8

Please sign in to comment.