-
Notifications
You must be signed in to change notification settings - Fork 8
Add support for MDX3 and Prettier v3 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2b7da58
Upgrade to Yarn 4
aryaemami59 bccddb6
Update `package.json` and dependencies
aryaemami59 3319ac3
Update CI
aryaemami59 6dfbf8b
Add `tsup.config.ts`
aryaemami59 2cf8645
Fix `tsconfig.json`
aryaemami59 9bf99ed
Fix all imports
aryaemami59 785e647
Add support for MDX3 and Prettier v3 and copy changes from #14
aryaemami59 e1041be
Format files
aryaemami59 8a709c1
Fix issues related to renaming imports and exports
aryaemami59 36291d7
Update `@types/node` to version 22.2.0
aryaemami59 a023d9f
Update lockfile
aryaemami59 6d947f9
Bump `@types/node` to version 22.5.0
aryaemami59 2637f03
Bump `@types/react` to version 18.3.4
aryaemami59 a6968c5
Bump `@types/unist` to version 3.0.3
aryaemami59 27d3d3e
Bump `husky` to version 9.1.5
aryaemami59 308b17a
Bump `tslib` to version 2.7.0
aryaemami59 a4970ed
Upgrade Yarn to version 4.4.1
aryaemami59 c873e8e
Update dependencies
aryaemami59 ab09e0e
Merge branch 'main' into mdx3-compat
phryneas 7a0577b
add node:test for linkDocblocks
phryneas 610a5aa
Merge branch 'mdx3-compat' of github.com:aryaemami59/remark-typescrip…
phryneas fca3ebd
CI
phryneas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| compressionLevel: mixed | ||
|
|
||
| enableGlobalCache: false | ||
|
|
||
| enableTransparentWorkspaces: false | ||
|
|
||
| nodeLinker: node-modules | ||
|
|
||
| yarnPath: .yarn/releases/yarn-4.4.1.cjs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,22 @@ | ||
| { | ||
| "version": "1.1.0", | ||
| "license": "MIT", | ||
| "type": "module", | ||
| "types": "dist/index.d.ts", | ||
| "main": "dist/index.js", | ||
| "typings": "dist/index.d.ts", | ||
| "exports": { | ||
| "./package.json": "./package.json", | ||
| ".": { | ||
| "import": { | ||
| "types": "./dist/index.d.ts", | ||
| "default": "./dist/index.js" | ||
| }, | ||
| "require": { | ||
| "types": "./dist/index.d.cts", | ||
| "default": "./dist/index.cjs" | ||
| } | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist", | ||
| "src" | ||
|
|
@@ -11,16 +25,13 @@ | |
| "node": ">=10" | ||
| }, | ||
| "scripts": { | ||
| "start": "tsdx watch", | ||
| "build": "tsdx build", | ||
| "test": "tsdx test", | ||
| "lint": "tsdx lint", | ||
| "prepare": "tsdx build" | ||
| "start": "tsup --watch", | ||
| "build": "tsup", | ||
| "test": "true", | ||
| "lint": "true", | ||
| "prepare": "yarn build" | ||
| }, | ||
| "peerDependencies": { | ||
| "typescript": ">=4.0" | ||
| }, | ||
| "husky": { | ||
| "_husky": { | ||
| "hooks": { | ||
| "pre-commit": "tsdx lint" | ||
| } | ||
|
|
@@ -33,24 +44,39 @@ | |
| }, | ||
| "name": "remark-typescript-tools", | ||
| "author": "Lenz Weber", | ||
| "module": "dist/remark-typescript-tools.esm.js", | ||
| "module": "dist/index.js", | ||
| "devDependencies": { | ||
| "@types/prettier": "^2.1.0", | ||
| "@types/react": "^17.0.11", | ||
| "eslint-plugin-prettier": "3.1.4", | ||
| "husky": "^4.2.5", | ||
| "release-it": "^15.1.1", | ||
| "remark-mdx": "^1.6.16", | ||
| "remark-parse": "^8.0.3", | ||
| "remark-stringify": "^8.1.1", | ||
| "tsdx": "^0.13.3", | ||
| "tslib": "^2.0.1", | ||
| "unified": "^9.2.0" | ||
| "@types/node": "^22.5.4", | ||
| "@types/react": "^18.3.5", | ||
| "husky": "^9.1.5", | ||
| "release-it": "^17.6.0", | ||
| "remark-mdx": "^3.0.1", | ||
| "remark-parse": "^11.0.0", | ||
| "remark-stringify": "^11.0.0", | ||
| "tslib": "^2.7.0", | ||
| "tsup": "^8.2.4", | ||
| "typescript": "^5.5.4", | ||
| "unified": "^11.0.5" | ||
| }, | ||
| "dependencies": { | ||
| "@microsoft/tsdoc": "^0.12.21", | ||
| "prettier": "^2.1.1", | ||
| "@microsoft/tsdoc": "^0.15.0", | ||
| "@types/estree": "^1.0.5", | ||
| "@types/unist": "^3.0.3", | ||
| "mdast-util-mdx-jsx": "^3.1.3", | ||
| "mdast-util-mdxjs-esm": "^2.0.1", | ||
| "prettier": "^3.3.3", | ||
| "unist-util-flatmap": "^1.0.0", | ||
| "unist-util-visit": "^2.0.3" | ||
| } | ||
| "unist-util-visit": "^5.0.0", | ||
| "vfile": "^6.0.3" | ||
| }, | ||
| "packageManager": "[email protected]", | ||
| "peerDependencies": { | ||
| "typescript": "*" | ||
| }, | ||
| "peerDependenciesMeta": { | ||
| "typescript": { | ||
| "optional": true | ||
| } | ||
| }, | ||
| "sideEffects": false | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,14 @@ | ||
| export { | ||
| attacher as linkDocblocks, | ||
| Settings as LinkDocblocksSettings, | ||
| } from './linkDocblocks/plugin'; | ||
| export { linkDocblocks } from './linkDocblocks/plugin.js'; | ||
| export type { LinkDocblocksSettings } from './linkDocblocks/plugin.js'; | ||
|
|
||
| export { | ||
| attacher as transpileCodeblocks, | ||
| Settings as TranspileCodeblocksSettings, | ||
| defaultAssembleReplacementNodes, | ||
| } from './transpileCodeblocks/plugin'; | ||
| transpileCodeblocks, | ||
| } from './transpileCodeblocks/plugin.js'; | ||
|
|
||
| export type { TranspileCodeblocksSettings } from './transpileCodeblocks/plugin.js'; | ||
|
|
||
| export { | ||
| postProcessTranspiledJs as defaultPostProcessTranspiledJs, | ||
| postProcessTs as defaultPostProcessTs, | ||
| } from './transpileCodeblocks/postProcessing'; | ||
| defaultPostProcessTranspiledJs, | ||
| defaultPostProcessTs, | ||
| } from './transpileCodeblocks/postProcessing.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.