migrating to jsr img-opt.js

This commit is contained in:
niclaz 2024-09-08 22:57:31 +02:00 committed by GitHub
parent f012cb3c27
commit a8a35b1e9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import { run } from "https://deno.land/x/run_simple@2.3.0/mod.ts";
import { join } from "https://deno.land/std@0.224.0/path/mod.ts";
import { emptyDir } from "https://deno.land/std@0.224.0/fs/empty_dir.ts";
import { run } from "jsr:@std/path@0.224.0/mod.ts";
import { join } from "jsr:@std/path@0.224.0/path/mod.ts";
import { emptyDir } from "jsr:@std/path@0.224.0/fs/empty_dir.ts";
async function optimizeDir (dir, sizes) {
await emptyDir(join(dir, 'thumbs'))