From 975bbdd44be4348d406eae4b926758d715ca7ebb Mon Sep 17 00:00:00 2001 From: Mukesh Kumar Chaudhary Date: Sat, 5 Oct 2024 17:44:57 +0545 Subject: [PATCH] feat: add devDependencies for js-yaml and node types This commit adds the devDependencies for "@types/js-yaml" and "@types/node" to the package.json file. These dependencies are required for the project to work correctly. --- package.json | 6 +++- src/components/shared/TopNavigation.astro | 26 ++++++++--------- src/pages/profiles/index.astro | 2 +- src/utils/loadconfig.js | 9 ------ src/utils/loadconfig.ts | 34 +++++++++++++++++++++++ tsconfig.json | 3 +- yarn.lock | 17 ++++++++++++ 7 files changed, 72 insertions(+), 25 deletions(-) delete mode 100644 src/utils/loadconfig.js create mode 100644 src/utils/loadconfig.ts diff --git a/package.json b/package.json index 45dd62f..de83d37 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,9 @@ "tailwindcss": "^3.4.13", "typescript": "^5.5.4" }, - "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72" + "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72", + "devDependencies": { + "@types/js-yaml": "^4.0.9", + "@types/node": "^22.7.4" + } } diff --git a/src/components/shared/TopNavigation.astro b/src/components/shared/TopNavigation.astro index 561bc68..8e12383 100644 --- a/src/components/shared/TopNavigation.astro +++ b/src/components/shared/TopNavigation.astro @@ -1,5 +1,5 @@ --- -import { loadConfig } from '../../utils/loadconfig.js'; +import { loadConfig } from '../../utils/loadconfig'; const config = loadConfig(); const menu = config.menu; @@ -15,7 +15,7 @@ const menu = config.menu; -