File tree Expand file tree Collapse file tree 6 files changed +26
-29
lines changed
Expand file tree Collapse file tree 6 files changed +26
-29
lines changed Original file line number Diff line number Diff line change 66Dockerfile
77node_modules
88test
9+ tsconfig.json
910
1011botfather-settings
1112init-debug-environment.sh
Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 timeout-minutes : 15
1313 steps :
14- - uses : actions/setup-node@v5
14+ - uses : actions/setup-node@v6
1515 with :
16- node-version : 22
17- - uses : actions/checkout@v5
16+ node-version : 24
17+ - uses : actions/checkout@v6
1818 - run : npm ci
1919 - run : npm test
Original file line number Diff line number Diff line change 1- FROM docker.io/library/alpine:3.22 AS builder
2- RUN apk upgrade --no-cache \
3- && apk add --no-cache npm
4- WORKDIR /build
5- COPY package.json package-lock.json ./
6- RUN npm ci --no-audit --no-fund --no-update-notifier
7- COPY . ./
8- RUN node_modules/.bin/tsc
9-
10-
11- FROM docker.io/library/alpine:3.22 AS packages
1+ FROM docker.io/library/alpine:3.23 AS packages
122RUN apk upgrade --no-cache \
133 && apk add --no-cache npm
144WORKDIR /build
155COPY package.json package-lock.json ./
166RUN npm ci --no-audit --no-fund --no-update-notifier --omit=dev
177
188
19- FROM docker.io/library/alpine:3.22 AS final
9+ FROM docker.io/library/alpine:3.23 AS final
2010RUN apk upgrade --no-cache \
2111 && apk add --no-cache nodejs git
2212
@@ -30,7 +20,7 @@ VOLUME /app/userconfig
3020COPY package.json ./
3121COPY --from=packages /build/node_modules ./node_modules
3222COPY locales locales
33- COPY --from=builder /build/dist ./
23+ COPY source ./
3424
3525ENTRYPOINT ["node" , "--enable-source-maps" ]
36- CMD ["hawhh-calendarbot-telegrambot.js " ]
26+ CMD ["hawhh-calendarbot-telegrambot.ts " ]
Original file line number Diff line number Diff line change 88 "url" : " https://github.com/HAWHHCalendarBot/telegrambot.git"
99 },
1010 "scripts" : {
11- "start" : " tsc && node --env-file-if-exists=.env --enable-source-maps dist /hawhh-calendarbot-telegrambot.js " ,
11+ "start" : " node --env-file-if-exists=.env --enable-source-maps source /hawhh-calendarbot-telegrambot.ts " ,
1212 "test" : " tsc && xo && node --enable-source-maps --test"
1313 },
1414 "type" : " module" ,
1515 "engines" : {
16- "node" : " >=22"
16+ "node" : " >=24"
17+ },
18+ "devEngines" : {
19+ "packageManager" : {
20+ "name" : " npm"
21+ }
1722 },
1823 "dependencies" : {
1924 "@grammyjs/i18n" : " ^1.1.2" ,
2631 "telegram-format" : " ^3.1.0"
2732 },
2833 "devDependencies" : {
29- "@types/node" : " ^22.17 .1" ,
34+ "@types/node" : " ^24.10 .1" ,
3035 "typescript" : " ^5.9.2" ,
3136 "xo" : " ^1.2.1"
3237 },
Original file line number Diff line number Diff line change 66 "libReplacement" : false ,
77 "module" : " node20" ,
88 "moduleDetection" : " force" ,
9+ "noEmit" : true ,
910 "noEmitOnError" : true ,
1011 "noFallthroughCasesInSwitch" : true ,
1112 "noImplicitOverride" : true ,
You can’t perform that action at this time.
0 commit comments