* Updated tsconfig options to nodenext module resolution to resolve module not found error

* Created .npmrc and .nvmrc files. Set .nvmrc file to Node 22, currently the latest LTS ver
* Created envConfig util for importing API key from local env file.
This commit is contained in:
2024-11-29 12:07:34 -06:00
parent 70cff1627b
commit bde4d5bafc
9 changed files with 34 additions and 96 deletions
+7 -3
View File
@@ -7,12 +7,16 @@
"packageManager": "pnpm@9.2.0+sha1.886364ebd6dae009284bebc56ed4296bb6dd557a",
"dependencies": {
"@google/generative-ai": "^0.21.0",
"dotenv": "^16.4.5",
"inquirer": "^12.1.0"
"@inquirer/prompts": "^7.1.0",
"dotenv": "^16.4.5"
},
"type": "module",
"scripts": {
"start": "tsc",
"transpile": "tsc",
"build": "tsc --build && node dist/index.js"
},
"engines": {
"pnpm": "^9.2.0",
"node": "22"
}
}