Add deno.json, rename script

This commit is contained in:
Râu Cao 2025-05-02 16:22:34 +04:00
parent 7ca4a33a48
commit e14131c3ca
Signed by: raucao
GPG Key ID: 37036C356E56CC51
3 changed files with 59 additions and 3 deletions

7
deno.json Normal file
View File

@ -0,0 +1,7 @@
{
"imports": {
"@db/postgres": "jsr:@db/postgres@^0.19.5",
"@std/crypto": "jsr:@std/crypto@^1.0.4",
"@std/dotenv": "jsr:@std/dotenv@^0.225.3"
}
}

49
deno.lock generated Normal file
View File

@ -0,0 +1,49 @@
{
"version": "5",
"specifiers": {
"jsr:@db/postgres@~0.19.5": "0.19.5",
"jsr:@std/bytes@^1.0.5": "1.0.5",
"jsr:@std/crypto@^1.0.4": "1.0.4",
"jsr:@std/dotenv@~0.225.3": "0.225.3",
"jsr:@std/encoding@^1.0.9": "1.0.10",
"jsr:@std/fmt@^1.0.6": "1.0.7",
"jsr:@std/path@^1.0.8": "1.0.9"
},
"jsr": {
"@db/postgres@0.19.5": {
"integrity": "afdbe608bd066cda2ee5dba37c416d332098b9238c51aec223331108e281954c",
"dependencies": [
"jsr:@std/bytes",
"jsr:@std/crypto",
"jsr:@std/encoding",
"jsr:@std/fmt",
"jsr:@std/path"
]
},
"@std/bytes@1.0.5": {
"integrity": "4465dd739d7963d964c809202ebea6d5c6b8e3829ef25c6a224290fbb8a1021e"
},
"@std/crypto@1.0.4": {
"integrity": "cee245c453bd5366207f4d8aa25ea3e9c86cecad2be3fefcaa6cb17203d79340"
},
"@std/dotenv@0.225.3": {
"integrity": "a95e5b812c27b0854c52acbae215856d9cce9d4bbf774d938c51d212711e8d4a"
},
"@std/encoding@1.0.10": {
"integrity": "8783c6384a2d13abd5e9e87a7ae0520a30e9f56aeeaa3bdf910a3eaaf5c811a1"
},
"@std/fmt@1.0.7": {
"integrity": "2a727c043d8df62cd0b819b3fb709b64dd622e42c3b1bb817ea7e6cc606360fb"
},
"@std/path@1.0.9": {
"integrity": "260a49f11edd3db93dd38350bf9cd1b4d1366afa98e81b86167b4e3dd750129e"
}
},
"workspace": {
"dependencies": [
"jsr:@db/postgres@~0.19.5",
"jsr:@std/crypto@^1.0.4",
"jsr:@std/dotenv@~0.225.3"
]
}
}

View File

@ -1,7 +1,7 @@
// Import required modules // Import required modules
import { Client } from "jsr:@db/postgres"; import { Client } from "@db/postgres";
import { load } from "jsr:@std/dotenv"; import { load } from "@std/dotenv";
import { crypto } from "jsr:@std/crypto"; import { crypto } from "@std/crypto";
// Load environment variables from .env file or system environment // Load environment variables from .env file or system environment
const env = await load(); const env = await load();