-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: base pkg structure #8
Conversation
.env.example
Outdated
@@ -0,0 +1,2 @@ | |||
COINGECKO_API_URL="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be done at package level ?? I think 🤔 cc @0xkenj1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, each of the packages that has runtime should have its own env vars
ZKS-15 Implement base packages
we will use this packages as reference starting point. |
…s, and declare new example package
…config point to correct tsconfig
…ecated files and js outputs, refactor cg constructor
packages/errors/package.json
Outdated
"devDependencies": { | ||
"@hyperhub/test-config": "workspace:*", | ||
"@hyperhub/typescript-config": "workspace:*", | ||
"typescript": "5.4.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this shoould be a global dependency of the monorepo
packages/errors/package.json
Outdated
"@hyperhub/test-config": "workspace:*", | ||
"@hyperhub/typescript-config": "workspace:*", | ||
"typescript": "5.4.5", | ||
"vitest": "1.6.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should only be a dep from test-config or iam wrong ?
packages/lib/coingecko/package.json
Outdated
"typescript": "4.9.4", | ||
"vitest": "1.6.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
packages/lib/coingecko/src/index.ts
Outdated
const baseURL = process.env.COINGECKO_API_URL; | ||
const apiKey = process.env.COINGECKO_API_KEY; | ||
|
||
if (!baseURL) { | ||
throw new Error("Missing Coingecko baseUrl"); | ||
} | ||
|
||
if (!apiKey) { | ||
throw new Error("Missing coingecko api key"); | ||
} | ||
|
||
this.apiKey = apiKey; | ||
this.baseURL = baseURL; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets use the approach we have talked offline
@@ -3,7 +3,7 @@ | |||
"globalDependencies": ["**/.env.*local"], | |||
"pipeline": { | |||
"build": { | |||
"dependsOn": ["^build"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should stay
# 🤖 Linear Re implements #8 without commit issues ## Description
🤖 Linear
Closes ZKS-15
Description