Closed AeonFr closed 2 years ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
chtest | ✅ Ready (Inspect) | Visit Preview | May 21, 2022 at 10:08AM (UTC) |
Thanks! I'll try to review it today
Looks good, thanks a lot!
:rocket: PR was released in v0.5.2
:rocket:
Merges all
.d.ts
files (closes #148)I had to disable
declaration
in tsconfig to preventrollup-plugin-typescript2
from creating the declarations.Note: I also give a try in using
@rollup/plugin-typescript
, but it required much more configuration changes and had warnings I could not solve. I attach a screenshot of some of them. For example thesourcemap
warning was no way to get rid of, not even addingoutput.sourcemap = true
in rollupconfig as it says..This is the result: the new dist folder looks much cleaner.
Old:
New:
This is the content of the new generated files:
Content of `index.d.ts`
```ts interface Data { [key: string]: unknown; } interface GenericNode; export { highlight, transform as remarkCodeHike }; ```
Content of `components.d.ts`
```ts import * as React$1 from 'react'; import React__default from 'react'; import { useSpring } from 'use-spring'; import { IRawTheme } from 'vscode-textmate'; import { CodeHikeConfig } from 'remark/config'; import { SandboxInfo } from '@codesandbox/sandpack-client'; declare type HighlightedToken = { content: string; props: { style?: React.CSSProperties; }; }; declare type HighlightedLine = { tokens: HighlightedToken[]; }; declare type Code$1 = { lines: HighlightedLine[]; lang: string; }; declare type FocusString = string | null | undefined; /** * A single theme setting. */ interface IRawThemeSetting { name?: string; scope?: string | string[]; settings: { fontStyle?: string; foreground?: string; background?: string; }; } /** * A TextMate theme. */ interface EditorTheme { name?: string; type?: string; colors?: RecordVersion
Published prerelease version:
v0.5.2-next.0
Changelog
#### 🐛 Bug Fix #### 🏠 Internal - `@code-hike/mdx` - Modify output of dist folder to merge all .d.ts files [#186](https://github.com/code-hike/codehike/pull/186) ([@AeonFr](https://github.com/AeonFr) [@pomber](https://github.com/pomber)) #### Authors: 2 - Francisco Cano ([@AeonFr](https://github.com/AeonFr)) - Rodrigo Pombo ([@pomber](https://github.com/pomber))