Skip to content

Commit

Permalink
Remove remark-typescript-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Nov 17, 2023
1 parent 8b61c40 commit 2b48021
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remark-typescript-tools": "^1.0.10"
"react-dom": "^18.2.0"
},
"devDependencies": {
"prettier": "^3.0.0",
Expand Down
34 changes: 0 additions & 34 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
const { readFileSync } = require("fs");
const { resolve } = require("path");
const {
linkDocblocks,
transpileCodeblocks,
} = require("remark-typescript-tools");

module.exports = {
createConfig,
Expand Down Expand Up @@ -153,36 +149,6 @@ function createConfig(options) {
routeBasePath: "/",
sidebarPath: "./sidebars.js",
editUrl: `${githubUrl}/edit/main/website/`,
remarkPlugins: [
[
linkDocblocks,
{
extractorSettings: {
tsconfig: resolve(__dirname, "tsconfig.json"),
basedir: resolve(rootPath, ".."),
rootFiles: ["index.ts"],
},
},
],
[
transpileCodeblocks,
{
compilerSettings: {
tsconfig: resolve(__dirname, "tsconfig.json"),
externalResolutions: {
[name]: {
resolvedPath: resolve(rootPath, "../src"),
packageId: {
name,
subModuleName: "index.ts",
version: "0.0.0",
},
},
},
},
},
],
],
},
},
],
Expand Down

0 comments on commit 2b48021

Please sign in to comment.