picgo-plugin-tinify 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License +21 -0
- package/README.md +87 -2
- package/README_CN.md +73 -0
- package/dist/beforeUpload.d.ts +9 -0
- package/dist/beforeUpload.js +157 -0
- package/dist/cli.d.ts +14 -0
- package/dist/cli.js +161 -0
- package/dist/compress.d.ts +22 -0
- package/dist/compress.js +43 -0
- package/dist/config.d.ts +43 -0
- package/dist/config.js +171 -0
- package/dist/engines/index.d.ts +12 -0
- package/dist/engines/index.js +20 -0
- package/dist/engines/tinypng.d.ts +33 -0
- package/dist/engines/tinypng.js +116 -0
- package/dist/engines/types.d.ts +41 -0
- package/dist/engines/types.js +15 -0
- package/dist/format.d.ts +15 -0
- package/dist/format.js +104 -0
- package/dist/http.d.ts +23 -0
- package/dist/http.js +72 -0
- package/dist/i18n/en.d.ts +45 -0
- package/dist/i18n/en.js +48 -0
- package/dist/i18n/index.d.ts +7 -0
- package/dist/i18n/index.js +24 -0
- package/dist/i18n/zh-CN.d.ts +2 -0
- package/dist/i18n/zh-CN.js +47 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +15 -0
- package/dist/spinner.d.ts +22 -0
- package/dist/spinner.js +89 -0
- package/package.json +76 -4
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.en = void 0;
|
|
4
|
+
/* eslint-disable no-template-curly-in-string */
|
|
5
|
+
exports.en = {
|
|
6
|
+
TINIFY_CONFIG_ENGINE: 'Compression engine',
|
|
7
|
+
TINIFY_CONFIG_ENGINE_TIP: 'Service that compresses the images',
|
|
8
|
+
TINIFY_CONFIG_TINYPNG_API_KEY: 'TinyPNG API key',
|
|
9
|
+
TINIFY_CONFIG_TINYPNG_API_KEY_TIP: 'Get a free key at https://tinypng.com/developers (500 compressions a month)',
|
|
10
|
+
TINIFY_CONFIG_CONVERT: 'Convert to',
|
|
11
|
+
TINIFY_CONFIG_CONVERT_TIP: 'Converting counts as one extra compression',
|
|
12
|
+
TINIFY_CONFIG_CONVERT_NONE: 'Keep format',
|
|
13
|
+
TINIFY_CONFIG_BACKGROUND: 'JPEG background',
|
|
14
|
+
TINIFY_CONFIG_BACKGROUND_TIP: 'Fills transparent areas when converting to JPEG: white, black or #RRGGBB',
|
|
15
|
+
TINIFY_CONFIG_PRESERVE: 'Keep metadata',
|
|
16
|
+
TINIFY_CONFIG_PRESERVE_TIP: 'Location is not kept in PNG',
|
|
17
|
+
TINIFY_CONFIG_PRESERVE_COPYRIGHT: 'Copyright',
|
|
18
|
+
TINIFY_CONFIG_PRESERVE_CREATION: 'Creation time',
|
|
19
|
+
TINIFY_CONFIG_PRESERVE_LOCATION: 'Location',
|
|
20
|
+
TINIFY_CONFIG_MIN_SIZE: 'Minimum size (KB)',
|
|
21
|
+
TINIFY_CONFIG_MIN_SIZE_TIP: 'In KB, e.g. 50 means 50 KB. Images smaller than this are uploaded as is; 0 compresses every image',
|
|
22
|
+
TINIFY_NO_API_KEY: 'Set a TinyPNG API key first: picgo set plugin tinify, the PicGo plugin settings, or the TINYPNG_API_KEY environment variable',
|
|
23
|
+
TINIFY_INVALID_CONVERT: 'Unknown target format "${value}", use one of: ${formats}',
|
|
24
|
+
TINIFY_INVALID_BACKGROUND: 'Invalid JPEG background "${value}", use white, black or #RRGGBB',
|
|
25
|
+
TINIFY_INVALID_MIN_SIZE: 'Invalid minimum size "${value}", use a number of KB',
|
|
26
|
+
TINIFY_INVALID_PRESERVE: 'Unknown metadata "${value}", use: ${keys}',
|
|
27
|
+
TINIFY_UNKNOWN_ENGINE: 'Unknown compression engine "${value}"',
|
|
28
|
+
TINIFY_ERROR_UNAUTHORIZED: 'TinyPNG rejected the API key',
|
|
29
|
+
TINIFY_ERROR_LIMIT: 'TinyPNG limit reached: ${message}',
|
|
30
|
+
TINIFY_ERROR_UNSUPPORTED: 'TinyPNG cannot read this image',
|
|
31
|
+
TINIFY_ERROR_SERVER: 'TinyPNG server error (HTTP ${status}), try again in a few minutes',
|
|
32
|
+
TINIFY_ERROR_REQUEST: 'TinyPNG error (HTTP ${status}): ${message}',
|
|
33
|
+
TINIFY_ERROR_NETWORK: 'Cannot reach TinyPNG: ${message}',
|
|
34
|
+
TINIFY_COMPRESSED: '${name}: ${before} → ${after} (${ratio})',
|
|
35
|
+
TINIFY_SKIP_SMALL: '${name}: smaller than ${size}, not compressed',
|
|
36
|
+
TINIFY_SKIP_UNSUPPORTED: '${name}: not an image the engine can compress, skipped',
|
|
37
|
+
TINIFY_SKIP_NOT_SMALLER: '${name}: already optimized, kept as is',
|
|
38
|
+
TINIFY_FAILED_ITEM: '${name}: ${message}',
|
|
39
|
+
TINIFY_UPLOAD_ORIGINAL: 'Compression failed, uploading the original images',
|
|
40
|
+
TINIFY_NOTIFY_FAILED_TITLE: 'Image compression failed',
|
|
41
|
+
TINIFY_NOTIFY_FAILED_BODY: '${count} images were uploaded uncompressed. ${message}',
|
|
42
|
+
TINIFY_PROGRESS: 'Compressing with ${engine}, ${done}/${total} done',
|
|
43
|
+
TINIFY_COMPRESSION_COUNT: 'TinyPNG compressions this month: ${count}',
|
|
44
|
+
TINIFY_CLI_WROTE: '${name}: ${before} → ${after} (${ratio}) → ${path}',
|
|
45
|
+
TINIFY_CLI_NOT_FILE: '${path}: not a file',
|
|
46
|
+
TINIFY_CLI_SUMMARY: '${done} compressed, ${skipped} skipped, ${failed} failed, ${before} → ${after}',
|
|
47
|
+
TINIFY_CLI_STOPPED: 'Stopped: ${message}'
|
|
48
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IPicGo } from 'picgo';
|
|
2
|
+
import { type ILocalesKey } from './en';
|
|
3
|
+
export type { ILocalesKey };
|
|
4
|
+
export type Translate = (key: ILocalesKey, args?: Record<string, string>) => string;
|
|
5
|
+
export declare const initI18n: (ctx: IPicGo) => void;
|
|
6
|
+
/** Translates through PicGo's i18n, falling back to English when PicGo has no i18n or no entry. */
|
|
7
|
+
export declare const T: (ctx: IPicGo) => Translate;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.T = exports.initI18n = void 0;
|
|
4
|
+
const en_1 = require("./en");
|
|
5
|
+
const zh_CN_1 = require("./zh-CN");
|
|
6
|
+
const interpolate = (text, args) => text.replace(/\$\{(\w+)\}/g, (match, name) => args[name] ?? match);
|
|
7
|
+
const initI18n = (ctx) => {
|
|
8
|
+
if (ctx?.i18n?.addLocale) {
|
|
9
|
+
ctx.i18n.addLocale('zh-CN', zh_CN_1.zh);
|
|
10
|
+
ctx.i18n.addLocale('en', en_1.en);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.initI18n = initI18n;
|
|
14
|
+
/** Translates through PicGo's i18n, falling back to English when PicGo has no i18n or no entry. */
|
|
15
|
+
const T = (ctx) => (key, args = {}) => {
|
|
16
|
+
if (ctx?.i18n?.translate) {
|
|
17
|
+
const text = ctx.i18n.translate(key, args);
|
|
18
|
+
if (text && text !== key) {
|
|
19
|
+
return text;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return interpolate(en_1.en[key], args);
|
|
23
|
+
};
|
|
24
|
+
exports.T = T;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zh = void 0;
|
|
4
|
+
exports.zh = {
|
|
5
|
+
TINIFY_CONFIG_ENGINE: '压缩引擎',
|
|
6
|
+
TINIFY_CONFIG_ENGINE_TIP: '用哪个服务压缩图片',
|
|
7
|
+
TINIFY_CONFIG_TINYPNG_API_KEY: 'TinyPNG API Key',
|
|
8
|
+
TINIFY_CONFIG_TINYPNG_API_KEY_TIP: '在 https://tinypng.com/developers 免费申请,每月 500 次',
|
|
9
|
+
TINIFY_CONFIG_CONVERT: '转换格式',
|
|
10
|
+
TINIFY_CONFIG_CONVERT_TIP: '转换会额外多算一次压缩次数',
|
|
11
|
+
TINIFY_CONFIG_CONVERT_NONE: '不转换',
|
|
12
|
+
TINIFY_CONFIG_BACKGROUND: 'JPEG 背景色',
|
|
13
|
+
TINIFY_CONFIG_BACKGROUND_TIP: '转成 JPEG 时填充透明区域:white、black 或 #RRGGBB',
|
|
14
|
+
TINIFY_CONFIG_PRESERVE: '保留元数据',
|
|
15
|
+
TINIFY_CONFIG_PRESERVE_TIP: 'PNG 不保留位置信息',
|
|
16
|
+
TINIFY_CONFIG_PRESERVE_COPYRIGHT: '版权',
|
|
17
|
+
TINIFY_CONFIG_PRESERVE_CREATION: '创建时间',
|
|
18
|
+
TINIFY_CONFIG_PRESERVE_LOCATION: '位置',
|
|
19
|
+
TINIFY_CONFIG_MIN_SIZE: '最小体积(KB)',
|
|
20
|
+
TINIFY_CONFIG_MIN_SIZE_TIP: '单位 KB,比如 50 表示 50 KB。小于这个大小的图片直接上传不压缩,0 表示全部压缩',
|
|
21
|
+
TINIFY_NO_API_KEY: '请先设置 TinyPNG API Key:picgo set plugin tinify、PicGo 插件设置,或环境变量 TINYPNG_API_KEY',
|
|
22
|
+
TINIFY_INVALID_CONVERT: '不支持的目标格式「${value}」,可选:${formats}',
|
|
23
|
+
TINIFY_INVALID_BACKGROUND: 'JPEG 背景色「${value}」无效,请用 white、black 或 #RRGGBB',
|
|
24
|
+
TINIFY_INVALID_MIN_SIZE: '最小体积「${value}」无效,请填 KB 数',
|
|
25
|
+
TINIFY_INVALID_PRESERVE: '不支持的元数据「${value}」,可选:${keys}',
|
|
26
|
+
TINIFY_UNKNOWN_ENGINE: '未知的压缩引擎「${value}」',
|
|
27
|
+
TINIFY_ERROR_UNAUTHORIZED: 'TinyPNG API Key 无效',
|
|
28
|
+
TINIFY_ERROR_LIMIT: 'TinyPNG 额度已用完:${message}',
|
|
29
|
+
TINIFY_ERROR_UNSUPPORTED: 'TinyPNG 无法读取这张图片',
|
|
30
|
+
TINIFY_ERROR_SERVER: 'TinyPNG 服务出错(HTTP ${status}),请过几分钟再试',
|
|
31
|
+
TINIFY_ERROR_REQUEST: 'TinyPNG 出错(HTTP ${status}):${message}',
|
|
32
|
+
TINIFY_ERROR_NETWORK: '连不上 TinyPNG:${message}',
|
|
33
|
+
TINIFY_COMPRESSED: '${name}:${before} → ${after}(${ratio})',
|
|
34
|
+
TINIFY_SKIP_SMALL: '${name}:小于 ${size},不压缩',
|
|
35
|
+
TINIFY_SKIP_UNSUPPORTED: '${name}:不是可压缩的图片,跳过',
|
|
36
|
+
TINIFY_SKIP_NOT_SMALLER: '${name}:已经是最优,保持原样',
|
|
37
|
+
TINIFY_FAILED_ITEM: '${name}:${message}',
|
|
38
|
+
TINIFY_UPLOAD_ORIGINAL: '压缩失败,改为上传原图',
|
|
39
|
+
TINIFY_NOTIFY_FAILED_TITLE: '图片压缩失败',
|
|
40
|
+
TINIFY_NOTIFY_FAILED_BODY: '${count} 张图片未压缩,已按原图上传。${message}',
|
|
41
|
+
TINIFY_PROGRESS: '正在用 ${engine} 压缩,已完成 ${done}/${total}',
|
|
42
|
+
TINIFY_COMPRESSION_COUNT: '本月 TinyPNG 已用 ${count} 次压缩',
|
|
43
|
+
TINIFY_CLI_WROTE: '${name}:${before} → ${after}(${ratio})→ ${path}',
|
|
44
|
+
TINIFY_CLI_NOT_FILE: '${path}:不是文件',
|
|
45
|
+
TINIFY_CLI_SUMMARY: '压缩 ${done} 张,跳过 ${skipped} 张,失败 ${failed} 张,${before} → ${after}',
|
|
46
|
+
TINIFY_CLI_STOPPED: '已停止:${message}'
|
|
47
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const beforeUpload_1 = require("./beforeUpload");
|
|
3
|
+
const cli_1 = require("./cli");
|
|
4
|
+
const config_1 = require("./config");
|
|
5
|
+
const i18n_1 = require("./i18n");
|
|
6
|
+
module.exports = (ctx) => {
|
|
7
|
+
(0, i18n_1.initI18n)(ctx);
|
|
8
|
+
return {
|
|
9
|
+
register: () => {
|
|
10
|
+
ctx.helper.beforeUploadPlugins.register(config_1.PLUGIN_NAME, beforeUpload_1.beforeUploadPlugin);
|
|
11
|
+
(0, cli_1.registerCli)(ctx);
|
|
12
|
+
},
|
|
13
|
+
config: (ctx) => (0, config_1.pluginConfig)(ctx, (0, i18n_1.T)(ctx))
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IPicGo } from 'picgo';
|
|
2
|
+
export interface Spinner {
|
|
3
|
+
/** Changes the text next to the spinner. */
|
|
4
|
+
update: (text: string) => void;
|
|
5
|
+
/** Clears the spinner line, runs `fn` (which prints a log line), then draws the spinner again. */
|
|
6
|
+
log: (fn: () => void) => void;
|
|
7
|
+
stop: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A one-line spinner on stderr for the CLI, like the progress line `picgo upload` shows for PicGo
|
|
11
|
+
* Cloud. It stays off in the GUI, in silent mode, and when stderr is not a terminal (pipes, CI),
|
|
12
|
+
* so logs and `--format json` output stay clean.
|
|
13
|
+
*/
|
|
14
|
+
export declare const createSpinner: (ctx: IPicGo, stream?: NodeJS.WriteStream) => Spinner;
|
|
15
|
+
export interface SpinnerLogger {
|
|
16
|
+
info: (message: string) => void;
|
|
17
|
+
success: (message: string) => void;
|
|
18
|
+
warn: (message: string) => void;
|
|
19
|
+
error: (message: unknown) => void;
|
|
20
|
+
}
|
|
21
|
+
/** `ctx.log` that moves the spinner out of the way for each line. */
|
|
22
|
+
export declare const spinnerLogger: (ctx: IPicGo, spinner: Spinner) => SpinnerLogger;
|
package/dist/spinner.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.spinnerLogger = exports.createSpinner = void 0;
|
|
4
|
+
const FRAMES = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
5
|
+
const INTERVAL_MS = 80;
|
|
6
|
+
const CLEAR_LINE = '\r\x1b[2K';
|
|
7
|
+
const noopSpinner = {
|
|
8
|
+
update: () => undefined,
|
|
9
|
+
log: fn => { fn(); },
|
|
10
|
+
stop: () => undefined
|
|
11
|
+
};
|
|
12
|
+
const isEnabled = (ctx, stream) => {
|
|
13
|
+
if (ctx.GUI_VERSION !== undefined) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
// `picgo -s` sets it; any truthy value means silent, like PicGo's logger.
|
|
17
|
+
if (ctx.getConfig('silent')) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return stream.isTTY && !process.env.CI;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* A one-line spinner on stderr for the CLI, like the progress line `picgo upload` shows for PicGo
|
|
24
|
+
* Cloud. It stays off in the GUI, in silent mode, and when stderr is not a terminal (pipes, CI),
|
|
25
|
+
* so logs and `--format json` output stay clean.
|
|
26
|
+
*/
|
|
27
|
+
const createSpinner = (ctx, stream = process.stderr) => {
|
|
28
|
+
if (!isEnabled(ctx, stream)) {
|
|
29
|
+
return noopSpinner;
|
|
30
|
+
}
|
|
31
|
+
let text = '';
|
|
32
|
+
let frame = 0;
|
|
33
|
+
let timer;
|
|
34
|
+
const render = () => {
|
|
35
|
+
const line = `${FRAMES[frame]} ${text}`;
|
|
36
|
+
// Keep it on one line so `\r` can redraw it.
|
|
37
|
+
const width = stream.columns > 1 ? stream.columns - 1 : line.length;
|
|
38
|
+
stream.write(`${CLEAR_LINE}${line.slice(0, width)}`);
|
|
39
|
+
};
|
|
40
|
+
const start = () => {
|
|
41
|
+
if (timer) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
render();
|
|
45
|
+
timer = setInterval(() => {
|
|
46
|
+
frame = (frame + 1) % FRAMES.length;
|
|
47
|
+
render();
|
|
48
|
+
}, INTERVAL_MS);
|
|
49
|
+
// Never keep the process alive just for the spinner.
|
|
50
|
+
timer.unref();
|
|
51
|
+
};
|
|
52
|
+
const clear = () => { stream.write(CLEAR_LINE); };
|
|
53
|
+
return {
|
|
54
|
+
update: value => {
|
|
55
|
+
text = value;
|
|
56
|
+
if (timer) {
|
|
57
|
+
render();
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
start();
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
log: fn => {
|
|
64
|
+
if (!timer) {
|
|
65
|
+
fn();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
clear();
|
|
69
|
+
fn();
|
|
70
|
+
render();
|
|
71
|
+
},
|
|
72
|
+
stop: () => {
|
|
73
|
+
if (timer) {
|
|
74
|
+
clearInterval(timer);
|
|
75
|
+
timer = undefined;
|
|
76
|
+
clear();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
exports.createSpinner = createSpinner;
|
|
82
|
+
/** `ctx.log` that moves the spinner out of the way for each line. */
|
|
83
|
+
const spinnerLogger = (ctx, spinner) => ({
|
|
84
|
+
info: message => { spinner.log(() => { ctx.log.info(message); }); },
|
|
85
|
+
success: message => { spinner.log(() => { ctx.log.success(message); }); },
|
|
86
|
+
warn: message => { spinner.log(() => { ctx.log.warn(message); }); },
|
|
87
|
+
error: message => { spinner.log(() => { ctx.log.error(message instanceof Error ? message : String(message)); }); }
|
|
88
|
+
});
|
|
89
|
+
exports.spinnerLogger = spinnerLogger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picgo-plugin-tinify",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"packageManager": "pnpm@12.14.0",
|
|
5
|
+
"description": "Compress and convert images before PicGo uploads them, starting with the TinyPNG API",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"README_CN.md",
|
|
12
|
+
"License"
|
|
13
|
+
],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/PicGo/picgo-plugin-tinify",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/PicGo/picgo-plugin-tinify.git"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
24
|
+
"dev": "tsc -w -p tsconfig.build.json",
|
|
25
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
26
|
+
"lint": "eslint src test && tsc -p tsconfig.json --noEmit",
|
|
27
|
+
"test": "pnpm build && vitest run",
|
|
28
|
+
"test:watch": "vitest",
|
|
29
|
+
"cz": "git-cz",
|
|
30
|
+
"release": "bump-version",
|
|
31
|
+
"commitlint": "commitlint --edit",
|
|
32
|
+
"prepare": "husky"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"picgo",
|
|
36
|
+
"picgo-gui-plugin",
|
|
37
|
+
"picgo-plugin",
|
|
38
|
+
"tinypng",
|
|
39
|
+
"tinify",
|
|
40
|
+
"compress",
|
|
41
|
+
"image"
|
|
42
|
+
],
|
|
43
|
+
"author": "Molunerfinn",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=20.19.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@commitlint/cli": "^21.2.4",
|
|
50
|
+
"@eslint/js": "^9.39.2",
|
|
51
|
+
"@picgo/bump-version": "^3.0.0",
|
|
52
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
53
|
+
"@types/node": "22.19.3",
|
|
54
|
+
"commitizen": "^4.3.2",
|
|
55
|
+
"cz-customizable": "^7.5.4",
|
|
56
|
+
"eslint": "^9.39.2",
|
|
57
|
+
"eslint-config-love": "^144.0.0",
|
|
58
|
+
"globals": "^17.0.0",
|
|
59
|
+
"husky": "^9.1.7",
|
|
60
|
+
"jiti": "^2.6.1",
|
|
61
|
+
"picgo": "^3.2.0",
|
|
62
|
+
"typescript": "5.9.3",
|
|
63
|
+
"vitest": "^3.2.4"
|
|
64
|
+
},
|
|
65
|
+
"config": {
|
|
66
|
+
"commitizen": {
|
|
67
|
+
"path": "./node_modules/cz-customizable"
|
|
68
|
+
},
|
|
69
|
+
"cz-customizable": {
|
|
70
|
+
"config": "./node_modules/@picgo/bump-version/.cz-config.cjs"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"commitlint": {
|
|
74
|
+
"extends": [
|
|
75
|
+
"./node_modules/@picgo/bump-version/commitlint-picgo/index.cjs"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|