diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index dc83466..0000000 --- a/.dockerignore +++ /dev/null @@ -1,36 +0,0 @@ -# Dependencies -node_modules -npm-debug.log -yarn-debug.log -yarn-error.log - -# Build output -dist - -# Version control -.git -.gitignore - -# Environment variables -.env -.env.local -.env.*.local - -# IDE files -.vscode -.idea - -# Test files -coverage -__tests__ -jest.config.js -jest.setup.js -*.test.ts -*.spec.ts - -# Other -*.md -.DS_Store -Dockerfile -docker-compose.yml -.dockerignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index d1b619c..0000000 --- a/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -# Use Node.js 20.10.0 as the base image -FROM node:20.10.0-slim - -# Create app directory -WORKDIR /app - -# Copy package files -COPY package*.json ./ - -# Install dependencies -RUN npm install - -# Copy source code -COPY . . - -# Build the application -RUN npm run build - -# Expose the port your app runs on (if needed) -# EXPOSE 3000 - -# Start the application -CMD ["npm", "start"] \ No newline at end of file diff --git a/src/config/hass.config.ts b/src/config/hass.config.ts index 63dbbff..66c4f63 100644 --- a/src/config/hass.config.ts +++ b/src/config/hass.config.ts @@ -7,5 +7,5 @@ export const HASS_CONFIG = { BASE_URL: process.env.HASS_HOST || 'http://homeassistant.local:8123', TOKEN: process.env.HASS_TOKEN || '', SOCKET_URL: process.env.HASS_SOCKET_URL || '', - SOCKET_TOKEN: process.env.HASS_SOCKET_TOKEN || '', + SOCKET_TOKEN: process.env.HASS_TOKEN || '', }; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index d082d92..ad0b359 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,16 +4,7 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "outDir": "./dist", - "rootDir": "./", - "baseUrl": "./", - "paths": { - "@src/*": [ - "src/*" - ], - "@tests/*": [ - "__tests__/*" - ] - }, + "rootDir": "./src", "strict": true, "esModuleInterop": true, "skipLibCheck": true, @@ -27,20 +18,21 @@ "jest" ], "typeRoots": [ - "./node_modules/@types", - "./node_modules/@types/node" + "./node_modules/@types" ], "lib": [ - "ES2022", - "DOM" + "ES2022" ] }, "include": [ - "src/**/*", - "__tests__/**/*.test.ts" + "src/**/*" ], "exclude": [ "node_modules", - "dist" + "dist", + "**/*.test.ts", + "**/*.spec.ts", + "jest.config.js", + "jest.setup.js" ] } \ No newline at end of file