From 6fa3ac419416ff2b0cdc9f3ce5ba1df50a14df90 Mon Sep 17 00:00:00 2001 From: kamal-skyflow Date: Wed, 15 Nov 2023 14:43:14 +0530 Subject: [PATCH] DEX-413 fix: added scripts in a seperate folder --- package.json | 10 +++++----- markdown-gen.js => scripts/docs-script/markdown-gen.js | 2 +- scripts/{ => docs-script}/processMarkdown.ts | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename markdown-gen.js => scripts/docs-script/markdown-gen.js (94%) rename scripts/{ => docs-script}/processMarkdown.ts (100%) diff --git a/package.json b/package.json index 8a02637..a3087cc 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "prettier": "prettier --list-different '**/*.{js,ts}'", "lint": "npm run prettier && npm run eslint", "lint-fix": "prettier --write '**/*.{js,ts}' && eslint --fix '**/*.js'", - "docs-gen": "typedoc && node markdown-gen.js && npx ts-node scripts/processMarkdown.ts" + "docs-gen": "typedoc && node scripts/docs-script/markdown-gen.js && npx ts-node scripts/docs-script/processMarkdown.ts" }, "repository": { "type": "git", @@ -42,9 +42,7 @@ "jsonwebtoken": "^9.0.0", "jwt-decode": "^2.2.0", "promise.allsettled": "^1.0.5", - "qs": "^6.10.3", - "typedoc": "^0.24.4", - "typedoc-plugin-markdown": "^3.15.1" + "qs": "^6.10.3" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -79,6 +77,8 @@ "null-loader": "^0.1.1", "nyc": "^15.1.0", "prettier": "^1.13.7", - "typescript": "^4.7.3" + "typescript": "^4.7.3", + "typedoc": "^0.24.4", + "typedoc-plugin-markdown": "^3.15.1" } } diff --git a/markdown-gen.js b/scripts/docs-script/markdown-gen.js similarity index 94% rename from markdown-gen.js rename to scripts/docs-script/markdown-gen.js index 4061d59..8449d0c 100644 --- a/markdown-gen.js +++ b/scripts/docs-script/markdown-gen.js @@ -12,7 +12,7 @@ function getModuleName(filePath) { return moduleName; } -const directoryPath = path.join(__dirname, './docs/classes'); +const directoryPath = path.join(__dirname, '../../docs/classes'); fs.readdir(directoryPath, (err, files) => { if (err) { diff --git a/scripts/processMarkdown.ts b/scripts/docs-script/processMarkdown.ts similarity index 100% rename from scripts/processMarkdown.ts rename to scripts/docs-script/processMarkdown.ts