From 4db8d65b5e3fa115da6e31bd945f5c610c4a21cb Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Sun, 12 Jan 2025 15:40:21 -0500 Subject: [PATCH] use back to jsr.json, add import map --- deno-src/compress.ts | 2 -- deno-src/convert.ts | 2 -- deno-src/deno.json | 2 +- deno-src/dev.ts | 2 -- deno-src/image-time.ts | 2 -- deno-src/index.ts | 2 -- deno-src/lib.ts | 2 -- deno.json => jsr.json | 7 +++---- package.json | 2 +- 9 files changed, 5 insertions(+), 18 deletions(-) rename deno.json => jsr.json (86%) diff --git a/deno-src/compress.ts b/deno-src/compress.ts index 1691f01..1a8f4bd 100644 --- a/deno-src/compress.ts +++ b/deno-src/compress.ts @@ -1,5 +1,3 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file import sharp from 'sharp'; import * as v from 'valibot'; diff --git a/deno-src/convert.ts b/deno-src/convert.ts index 34ec352..710bedf 100644 --- a/deno-src/convert.ts +++ b/deno-src/convert.ts @@ -1,5 +1,3 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file import sharp from 'sharp'; /** diff --git a/deno-src/deno.json b/deno-src/deno.json index 06a8370..03fc227 100644 --- a/deno-src/deno.json +++ b/deno-src/deno.json @@ -1,6 +1,6 @@ { "tasks": { - "dev": "deno run --watch main.ts" + "dev": "deno run --watch dev.ts" }, "imports": { "@hk/photographer-toolbox": "jsr:@hk/photographer-toolbox@^0.1.12", diff --git a/deno-src/dev.ts b/deno-src/dev.ts index 16d5892..8172362 100644 --- a/deno-src/dev.ts +++ b/deno-src/dev.ts @@ -1,5 +1,3 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file import { ExifDateTime, ExifTool } from 'exiftool-vendored'; // import { image } from '@hk/photographer-toolbox'; diff --git a/deno-src/image-time.ts b/deno-src/image-time.ts index 2ddf8d5..e69de29 100644 --- a/deno-src/image-time.ts +++ b/deno-src/image-time.ts @@ -1,2 +0,0 @@ -// deno-lint-ignore-file -// deno-fmt-ignore-file diff --git a/deno-src/index.ts b/deno-src/index.ts index 293b379..13883b7 100644 --- a/deno-src/index.ts +++ b/deno-src/index.ts @@ -1,5 +1,3 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file import type { API } from '../src/types.ts'; import { expose } from '@kunkun/api/runtime/deno'; import { image } from '@hk/photographer-toolbox'; diff --git a/deno-src/lib.ts b/deno-src/lib.ts index 064761e..11884d9 100644 --- a/deno-src/lib.ts +++ b/deno-src/lib.ts @@ -1,5 +1,3 @@ -// deno-fmt-ignore-file -// deno-lint-ignore-file import { ExifDateTime } from 'exiftool-vendored'; import type { ImageMetadata } from '@hk/photographer-toolbox/types'; import { ImageMetadataMod } from '../src/types.ts'; diff --git a/deno.json b/jsr.json similarity index 86% rename from deno.json rename to jsr.json index 13eadbf..ef7db0d 100644 --- a/deno.json +++ b/jsr.json @@ -1,7 +1,9 @@ { + "$schema": "https://jsr.io/schema/config-file.v1.json", "name": "@kunkun/ext-image-processing", - "version": "0.0.17", + "version": "0.0.18", "license": "MIT", + "lint": false, "exports": "./mod.ts", "publish": { "include": [ @@ -16,9 +18,6 @@ ".npmrc" ] }, - "tasks": { - "dev": "deno run --watch main.ts" - }, "imports": { "@hk/photographer-toolbox": "jsr:@hk/photographer-toolbox@^0.1.12", "@kunkun/api": "jsr:@kunkun/api@^0.0.52", diff --git a/package.json b/package.json index baedc28..fb1583f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.kunkun.sh", "name": "image-processing", - "version": "0.0.17", + "version": "0.0.18", "kunkun": { "name": "Image Processing", "shortDescription": "Image Processing",