diff --git a/packages/hoci/build.config.ts b/packages/hoci/build.config.ts index 0ac5457..062fa37 100644 --- a/packages/hoci/build.config.ts +++ b/packages/hoci/build.config.ts @@ -2,8 +2,8 @@ import { defineBuildConfig } from "unbuild"; export default defineBuildConfig({ entries: [ - "index", - "resolver" + "src/index", + "src/resolver" ], clean: true, declaration: true, diff --git a/packages/hoci/package.json b/packages/hoci/package.json index fd4f742..f358c8f 100644 --- a/packages/hoci/package.json +++ b/packages/hoci/package.json @@ -18,14 +18,14 @@ "types": "./dist/resolver.d.ts", "require": "./dist/resolver.cjs", "import": "./dist/resolver.mjs" - }, - "./*": "./dist/*" + } }, "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ - "dist/" + "dist/", + "*.d.ts" ], "scripts": { "build": "unbuild", diff --git a/packages/hoci/resolver.d.ts b/packages/hoci/resolver.d.ts new file mode 100644 index 0000000..7bcb13b --- /dev/null +++ b/packages/hoci/resolver.d.ts @@ -0,0 +1,2 @@ +export * from './dist/resolver' +export { default } from './dist/resolver' diff --git a/packages/hoci/index.ts b/packages/hoci/src/index.ts similarity index 100% rename from packages/hoci/index.ts rename to packages/hoci/src/index.ts diff --git a/packages/hoci/resolver.ts b/packages/hoci/src/resolver.ts similarity index 100% rename from packages/hoci/resolver.ts rename to packages/hoci/src/resolver.ts