From fe86d935a6d61b3d2107a85354762d8c129d1e40 Mon Sep 17 00:00:00 2001 From: Aaron Hedges Date: Fri, 12 Apr 2024 13:25:38 -0400 Subject: [PATCH 1/2] expose types --- index.tsx | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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..21041a92a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "dist" ], "scripts": { - "build": "webpack --mode production", + "build": "webpack --mode production && npx tsc --declaration --emitDeclarationOnly --declarationDir ./dist --skipLibCheck", + "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", From 1cbe9fdc82b992ab4f1f4f9e6080833a924a4373 Mon Sep 17 00:00:00 2001 From: Aaron Hedges Date: Fri, 12 Apr 2024 13:30:01 -0400 Subject: [PATCH 2/2] copypaste strikes again --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 21041a92a..1b7ebaf95 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "dist" ], "scripts": { - "build": "webpack --mode production && npx tsc --declaration --emitDeclarationOnly --declarationDir ./dist --skipLibCheck", + "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",