-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,3 +152,4 @@ out | |
/wrangler-test.toml | ||
/dist/index.cjs | ||
/dist/index.d.ts | ||
/dist/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
FROM node:alpine | ||
|
||
FROM node:alpine AS build | ||
WORKDIR /app | ||
COPY package.json tsconfig.json ./ | ||
COPY src src | ||
COPY package.json tsconfig.json vite.config.ts ./ | ||
RUN npm install | ||
COPY src src | ||
RUN npm run build:local | ||
|
||
|
||
FROM node:alpine AS production | ||
WORKDIR /app | ||
COPY package.json ./ | ||
RUN npm install --omit=dev | ||
COPY --from=build /app/dist ./dist | ||
EXPOSE 8787 | ||
CMD ["npm", "run", "start:local"] | ||
CMD ["npm", "run", "start:dist"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "chatgpt-telegram-workers", | ||
"type": "module", | ||
"version": "1.9.4", | ||
"version": "1.10.0", | ||
"description": "The easiest and quickest way to deploy your own ChatGPT Telegram bot is to use a single file and simply copy and paste it. There is no need for any dependencies, local development environment configuration, domain names, or servers.", | ||
"author": "tbxark <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -21,20 +21,21 @@ | |
], | ||
"scripts": { | ||
"lint": "eslint --fix *.js *.ts src plugins scripts", | ||
"version": "tsx ./scripts/plugins/version/main.ts", | ||
"version": "tsx src/vite/version/main.ts", | ||
"build": "vite build", | ||
"build:local": "vite build", | ||
"build:local": "ENTRY=src/entry/local/index.ts vite build", | ||
"build:docker": "docker build -t chatgpt-telegram-workers:latest .", | ||
"build:dockerx": "docker build --platform linux/amd64,linux/arm64 -t tbxark/chatgpt-telegram-workers:latest --push .", | ||
"build:vercel": "ENTRY=src/entry/vercel/index.ts vite build", | ||
"build:pack": "TYPES=true FORMATS=es,cjs vite build", | ||
"deploy:dist": "wrangler deploy", | ||
"deploy:build": "npm run build && wrangler deploy", | ||
"deploy:vercel": "vercel deploy --prod", | ||
"deploy:plugin": "vite build -c plugins/vite.config.ts && wrangler pages deploy plugins --project-name=interpolate-test --branch=main", | ||
"start:dist": "node dist/index.js", | ||
"start:dist": "CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml node dist/index.js", | ||
"start:local": "CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml tsx src/entry/local/index.ts", | ||
"start:debug": "wrangler dev --local", | ||
"prepare:vercel": "tsx ./scripts/plugins/vercel/setenv.ts", | ||
"prepare:vercel": "tsx src/vite/vercel/setenv.ts", | ||
"wrangler": "wrangler", | ||
"test": "tsx ./src/agent/index.test.ts" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export const BUILD_TIMESTAMP = 1731464647; | ||
export const BUILD_VERSION = 'fe9ef45'; | ||
export const BUILD_TIMESTAMP = 1731468421; | ||
export const BUILD_VERSION = '9e1cda2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters