From 5e00aa2dfc642d3c8a33fb2254178986bedd87a8 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Fri, 18 Jul 2025 22:32:06 -0700 Subject: [PATCH] chore: update configs, signify version bump --- .gitignore | 2 +- entrypoint.sh | 2 +- eslint.config.mjs | 2 +- src/index.ts | 2 +- tsconfig.json | 39 ++++++++++++++++++++++++++++++++------- 5 files changed, 36 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index dd2d7eb..ba1f60a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build/ +dist/ node_modules/ compose.yaml diff --git a/entrypoint.sh b/entrypoint.sh index 63b1ae5..d0972a1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ SLEEP_TIME=${SLEEP_TIME:-10800} while true; do DATE=$(date) - node build/src/index.js + node dist/src/index.js echo "Last run time: $DATE" echo "Will run in $((SLEEP_TIME / 60)) minutes" sleep "$SLEEP_TIME" diff --git a/eslint.config.mjs b/eslint.config.mjs index 1da28ec..b9c4c95 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -10,6 +10,6 @@ export default tseslint.config( tseslint.configs.stylistic, prettierConfig, { - ignores: ["build"], + ignores: ["dist/**", "node_modules/**"], }, ); diff --git a/src/index.ts b/src/index.ts index fc0c2d2..1d8e46d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import { config } from "./config.js"; function isHelp() { if (process.argv.includes("--help")) { console.log(` -Usage: node build/index.js [options] +Usage: node dist/index.js [options] Options: --help Show this help message diff --git a/tsconfig.json b/tsconfig.json index 3421744..12fb115 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,16 +1,41 @@ { "compilerOptions": { - "rootDir": ".", - "outDir": "build", - "module": "Node16", - "moduleResolution": "Node16", - "target": "ESNext", - "skipLibCheck": true + "outDir": "${configDir}/dist", + "module": "node18", + "moduleDetection": "force", + "target": "esnext", + "lib": [ + "DOM", + "DOM.Iterable", + "ES2022", // Node.js 18 + ], + "resolveJsonModule": false, // ESM doesn't yet support JSON modules. + "jsx": "react", + "declaration": true, + "newLine": "lf", + "stripInternal": true, + "strict": true, + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noImplicitReturns": true, + "noImplicitOverride": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedSideEffectImports": true, + "noEmitOnError": true, + "useDefineForClassFields": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "sourceMap": true }, "include": [ "src/**/*.ts" ], "exclude": [ - "src/**/*.test.ts" + "src/**/*.test.ts", + "node_modules/**" ] }