diff --git a/README.md b/README.md index 9df32b4..e6d52ce 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ import { PluginConfig, GenerateURL, GenerateLabel, -} from "@payloadcms/plugin-nested-docs/dist/types"; +} from "@payloadcms/plugin-nested-docs/types"; ``` ## Development @@ -242,5 +242,3 @@ To actively develop or debug this plugin you can either work directly within the ``` ## Screenshots - - diff --git a/package.json b/package.json index 2c19d5e..1d3cb69 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,8 @@ "typescript": "^4.5.5" }, "files": [ - "dist" + "dist", + "types.js", + "types.d.ts" ] } diff --git a/types.d.ts b/types.d.ts new file mode 100644 index 0000000..7236c51 --- /dev/null +++ b/types.d.ts @@ -0,0 +1 @@ +export * from './dist/types'; diff --git a/types.js b/types.js new file mode 100644 index 0000000..d94f718 --- /dev/null +++ b/types.js @@ -0,0 +1 @@ +module.exports = require('./dist/types');