Skip to content

Commit 9f19a5f

Browse files
committed
Refactor project structure: move files to src/, update paths in code and Dockerfile, and adjust package.json files and main entries.
1 parent 574b1b9 commit 9f19a5f

File tree

12 files changed

+7
-13
lines changed

12 files changed

+7
-13
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ARG BUILD_REVISION
1515

1616
#RUN sed -i -e "s#__DEV_DIRTY__#${BUILD_VERSION}-${BUILD_REVISION}#g" src/main.js
1717

18-
CMD ["/nodejs/bin/node", "--enable-source-maps", "/app/tuya-mqtt.js"]
18+
CMD ["/nodejs/bin/node", "--enable-source-maps", "/app/src/tuya-mqtt.js"]
1919

2020

2121
#FROM gcr.io/distroless/nodejs22-debian12

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@
33
"version": "3.1.0",
44
"description": "Control Tuya devices locally via MQTT",
55
"homepage": "https://github.com/Ilia-SB/tuya-mqtt",
6-
"main": "tuya-mqtt.js",
6+
"main": "src/tuya-mqtt.js",
77
"files": [
8-
"devices/*",
9-
"lib/*",
10-
"config.json.sample",
11-
"license",
12-
"merge-devices.js",
13-
"readme.md",
14-
"tuya-mqtt.js"
8+
"src/*"
159
],
1610
"scripts": {
1711
"test": "echo \"Error: no test specified\" && exit 1"
File renamed without changes.

0 commit comments

Comments
 (0)