diff --git a/.yarn/cache/@esbuild-linux-x64-npm-0.19.11-2afe281ab0-10.zip b/.yarn/cache/@esbuild-linux-x64-npm-0.19.11-2afe281ab0-10.zip deleted file mode 100644 index 1937416..0000000 Binary files a/.yarn/cache/@esbuild-linux-x64-npm-0.19.11-2afe281ab0-10.zip and /dev/null differ diff --git a/index.cjs.tsx b/index.cjs.tsx index 2bced40..a7df11f 100644 --- a/index.cjs.tsx +++ b/index.cjs.tsx @@ -1,5 +1,7 @@ -import Markdown, { compiler, RuleType } from './' +import Markdown, { compiler, RuleType } from './index.tsx' + Object.assign(Markdown, { compiler, RuleType }) + export default Markdown as typeof Markdown & { compiler: typeof compiler RuleType: typeof RuleType diff --git a/tsconfig.json b/tsconfig.json index 92941a3..49df31a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "allowImportingTsExtensions": true, "declaration": true, // Disable because enabling this option can also force consuming libraries to enable it "esModuleInterop": false, @@ -7,6 +8,7 @@ "jsx": "react", "module": "ESNext", "moduleResolution": "node", + "noEmit": true, "outDir": "./dist", "preserveConstEnums": true, "target": "ESNext"