diff --git a/packages/unhead/optionalPlugins.d.ts b/packages/unhead/optionalPlugins.d.ts new file mode 100644 index 00000000..e065b711 --- /dev/null +++ b/packages/unhead/optionalPlugins.d.ts @@ -0,0 +1 @@ +export * from './dist/optionalPlugins' diff --git a/packages/unhead/package.json b/packages/unhead/package.json index e96ced5d..2d262949 100644 --- a/packages/unhead/package.json +++ b/packages/unhead/package.json @@ -24,13 +24,26 @@ "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" + }, + "./optionalPlugins": { + "types": "./dist/optionalPlugins.d.ts", + "import": "./dist/optionalPlugins.mjs", + "require": "./dist/optionalPlugins.cjs" } }, "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", + "optionalPlugins": { + "*": { + "optionalPlugins": [ + "dist/optionalPlugins" + ] + } + }, "files": [ - "dist" + "dist", + "optionalPlugins.d.ts" ], "scripts": { "build": "unbuild .",