Skip to content

Commit

Permalink
chore: 升级依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Sep 19, 2024
1 parent 205bdd7 commit 4e59a3b
Show file tree
Hide file tree
Showing 3 changed files with 781 additions and 460 deletions.
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,27 @@
"start:local": "CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml tsx src/adapter/local/index.ts",
"start:debug": "wrangler dev --local",
"prepare:vercel": "tsx ./scripts/plugins/vercel/setenv.ts",
"wrangler": "wrangler"
"wrangler": "wrangler",
"test": "tsx ./src/config/env.test.ts"
},
"dependencies": {
"cloudflare-worker-adapter": "^1.3.3"
},
"devDependencies": {
"@antfu/eslint-config": "^3.0.0",
"@antfu/eslint-config": "^3.6.2",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/node": "^22.5.3",
"@vercel/node": "^3.2.11",
"eslint": "^9.8.0",
"@types/node": "^22.5.5",
"@vercel/node": "^3.2.14",
"eslint": "^9.10.0",
"eslint-plugin-format": "^0.1.2",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-node-externals": "^7.1.3",
"telegram-bot-api-types": "^7.9.12",
"tsx": "^4.19.0",
"typescript": "^5.5.4",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vite-plugin-checker": "^0.7.2",
"vite-plugin-dts": "^4.1.0",
"wrangler": "^3.74.0"
"vite-plugin-checker": "^0.8.0",
"vite-plugin-dts": "^4.2.1",
"wrangler": "^3.78.5"
}
}
4 changes: 2 additions & 2 deletions src/config/env.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { parse } from 'toml';
import { ENV } from './env';

{
const toml = readFileSync('../../wrangler.toml', 'utf8');
const toml = readFileSync('./wrangler.toml', 'utf8');
const config = parse(toml);
ENV.merge({
...config.vars,
DATABASE: {},
});
// console.log(JSON.stringify(ENV, null, 2));
console.log(JSON.stringify(ENV, null, 2));
}
Loading

0 comments on commit 4e59a3b

Please sign in to comment.