Skip to content

Commit

Permalink
Merge branch 'master' into guillaume/chore/downgrade-axios
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDecMeetsMore committed Oct 16, 2024
2 parents 66e5fe1 + f6e9ee2 commit 52eace9
Show file tree
Hide file tree
Showing 4 changed files with 895 additions and 5 deletions.
11 changes: 10 additions & 1 deletion charts/nittei/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
{{- $envMap = merge $envMap (dict .name .) }}
{{- end }}

# Merge defaultEnv and extraEnv, accounting for both value and valueFrom
{{- range $extraEnv }}
{{- $envMap = merge $envMap (dict .name .) }}
{{- if hasKey . "valueFrom" }}
{{- $envMap = merge $envMap (dict .name (dict "valueFrom" .valueFrom)) }}
{{- else }}
{{- $envMap = merge $envMap (dict .name (dict "value" .value)) }}
{{- end }}
{{- end }}
# End of the environment variable merge

Expand Down Expand Up @@ -77,7 +82,11 @@ spec:
env:
{{- range $key, $value := $envMap }}
- name: {{ $key }}
{{- if hasKey $value "value" }}
value: {{ $value.value }}
{{- else if hasKey $value "valueFrom" }}
valueFrom: {{ $value.valueFrom }}
{{- end }}
{{- end }}
{{- with .Values.volumes }}
volumes:
Expand Down
14 changes: 12 additions & 2 deletions clients/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
"name": "@meetsmore/nittei-client",
"version": "0.0.1",
"description": "The Nittei Javascript library provides convenient access to the Nittei API from server-side JavaScript applications or web applications",
"main": "dist/index.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"packageManager": "[email protected]",
"scripts": {
"build": "tsc --p ./tsconfig.release.json",
"build": "tsup",
"deploy": "pnpm run build && pnpm publish --no-git-checks",
"format": "biome format --write ./lib ./tests",
"lint": "biome lint --write ./lib ./tests",
Expand Down Expand Up @@ -41,6 +50,7 @@
"jest": "29.7.0",
"jsonwebtoken": "9.0.2",
"ts-jest": "29.2.5",
"tsup": "8.3.0",
"typescript": "5.6.3",
"uuid": "10.0.0"
}
Expand Down
17 changes: 17 additions & 0 deletions clients/javascript/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { Options } from 'tsup'

export const tsup: Options = {
splitting: true,
clean: true, // clean up the dist folder
dts: true, // generate dts files
format: ['cjs', 'esm'], // generate cjs and esm files
minify: true,
bundle: true,
sourcemap: true,
skipNodeModulesBundle: true,
entryPoints: ['lib/index.ts'],
target: 'es2020',
outDir: 'dist',
entry: ['lib/**/*.ts'], //include all files under lib
tsconfig: 'tsconfig.release.json',
}
Loading

0 comments on commit 52eace9

Please sign in to comment.