-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for MDX3 and Prettier v3 (#15)
* Upgrade to Yarn 4 * Update `package.json` and dependencies * Update CI * Add `tsup.config.ts` * Fix `tsconfig.json` * Fix all imports * Add support for MDX3 and Prettier v3 and copy changes from #14 * Format files * Fix issues related to renaming imports and exports * Update `@types/node` to version 22.2.0 * Update lockfile * Bump `@types/node` to version 22.5.0 * Bump `@types/react` to version 18.3.4 * Bump `@types/unist` to version 3.0.3 * Bump `husky` to version 9.1.5 * Bump `tslib` to version 2.7.0 * Upgrade Yarn to version 4.4.1 * Update dependencies * add node:test for linkDocblocks * CI --------- Co-authored-by: Lenz Weber-Tronic <[email protected]>
- Loading branch information
1 parent
99f56e2
commit aa3d36d
Showing
16 changed files
with
6,685 additions
and
8,734 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
|
@@ -3,8 +3,22 @@ | |
"author": "Lenz Weber-Tronic", | ||
"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" | ||
|
@@ -17,16 +31,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": "yarn tsx --test test/linkDocblocks.test.ts", | ||
"lint": "true", | ||
"prepare": "yarn build" | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=4.0" | ||
}, | ||
"husky": { | ||
"_husky": { | ||
"hooks": { | ||
"pre-commit": "tsdx lint" | ||
} | ||
|
@@ -37,24 +48,40 @@ | |
"singleQuote": true, | ||
"trailingComma": "es5" | ||
}, | ||
"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", | ||
"tsx": "^4.19.0", | ||
"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 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 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 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 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 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.