diff --git a/index.tsx b/index.tsx index 740bdfb61..63d1a1836 100644 --- a/index.tsx +++ b/index.tsx @@ -86,7 +86,7 @@ export const html = (text: string, opts = {}) => { unimplemented('html export'); }; -export const mdast = (text: string, opts = {}) => { +export const mdast: any = (text: string, opts = {}) => { const processor = remark().use(remarkMdx); try { diff --git a/package.json b/package.json index b7c215225..1b7ebaf95 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "dist" ], "scripts": { - "build": "webpack --mode production", + "build": "webpack --mode production && npm run build-types", + "build-types": "npx tsc --declaration --emitDeclarationOnly --declarationDir ./dist --skipLibCheck", "lint": "eslint . --ext .jsx --ext .js --ext .ts --ext .tsx", "release": "npx semantic-release", "release.dry": "npx semantic-release --dry-run",