From 0e0ce0f65e7912f3f2bc408f097a1ae17d701dbf Mon Sep 17 00:00:00 2001 From: na2na-p Date: Fri, 5 Jul 2024 16:23:00 +0900 Subject: [PATCH] =?UTF-8?q?start=E3=81=A7=E6=AD=BB=E3=81=AC=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 1 + .swcrc | 68 +++++++++---------- infra/k8s/helm/Chart.yaml | 2 +- .../k8s/helm/templates/jetdisc/configMap.yaml | 1 + infra/k8s/helm/values.yaml | 1 + package.json | 4 +- 6 files changed, 39 insertions(+), 38 deletions(-) diff --git a/.env.example b/.env.example index f1b9934c..79e0ff37 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ DISCORD_APP_TOKEN= BOT_NAME=2na2 SET_COMMANDS_TARGET_SERVERS="" +STORE_DRIVER="local" diff --git a/.swcrc b/.swcrc index f082c733..464e9254 100644 --- a/.swcrc +++ b/.swcrc @@ -1,37 +1,35 @@ { - "$schema": "https://json.schemastore.org/swcrc", - "jsc": { - "baseUrl": ".", - "parser": { - "syntax": "typescript", - "dynamicImport": false, - "decorators": false - }, - "target": "esnext", - "loose": false, - "externalHelpers": false, - "keepClassNames": false, - "paths": { - "@/*": [ - "src/*" - ] - }, - "minify": { - "compress": { - "unused": true - }, - "mangle": true - } - }, - "module": { - "type": "es6" - }, - "exclude": [ - ".*.spec.tsx?$", - ".*.test.tsx?$", - "./src/jest-setup.ts$", - "./**/jest-setup.ts$", - ".*.js$" - ], - "minify": false + "$schema": "https://swc.rs/schema.json", + "jsc": { + "baseUrl": ".", + "parser": { + "syntax": "typescript", + "dynamicImport": false, + "decorators": false + }, + "target": "esnext", + "loose": false, + "externalHelpers": false, + "keepClassNames": false, + "paths": { + "@/*": ["src/*"] + }, + "minify": { + "compress": { + "unused": true + }, + "mangle": true + } + }, + "module": { + "type": "es6" + }, + "exclude": [ + ".*.spec.tsx?$", + ".*.test.tsx?$", + "./src/jest-setup.ts$", + "./**/jest-setup.ts$", + ".*.js$" + ], + "minify": true } diff --git a/infra/k8s/helm/Chart.yaml b/infra/k8s/helm/Chart.yaml index 23872a10..cdf4da02 100644 --- a/infra/k8s/helm/Chart.yaml +++ b/infra/k8s/helm/Chart.yaml @@ -21,4 +21,4 @@ version: 3.0.0-helm # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.17.0" +appVersion: "1.18.0" diff --git a/infra/k8s/helm/templates/jetdisc/configMap.yaml b/infra/k8s/helm/templates/jetdisc/configMap.yaml index 65c24b06..6bc3f554 100644 --- a/infra/k8s/helm/templates/jetdisc/configMap.yaml +++ b/infra/k8s/helm/templates/jetdisc/configMap.yaml @@ -4,3 +4,4 @@ metadata: name: jetdisc-configmap data: BOT_NAME: {{ .Values.configMap.botName | quote }} + STORE_DRIVER: {{ .Values.configMap.storeDriver | quote }} diff --git a/infra/k8s/helm/values.yaml b/infra/k8s/helm/values.yaml index 4e89a9b6..1c452083 100644 --- a/infra/k8s/helm/values.yaml +++ b/infra/k8s/helm/values.yaml @@ -12,6 +12,7 @@ secrets: configMap: botName: "" + storeDriver: "local" resources: limits: diff --git a/package.json b/package.json index 6fee8827..a337bc56 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "jetdisc", - "version": "3.0.4", + "version": "3.0.5", "description": "", "type": "module", "main": "built/index.js", "scripts": { - "start": "node --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"./loader.mjs\", pathToFileURL(\"./\"));' built/index.js", + "start": "node --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"./loader.mjs\", pathToFileURL(\"./\"));' built/src/index.js", "build": "swc ./src -s -d ./built", "dev": "tsx watch src/index.ts", "lint": "eslint \"src/**/*.ts\"",