@ps-generator-bridge/generator 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/dist/contract-C4vydf6-.d.ts +1270 -0
- package/dist/contract.d.ts +3 -0
- package/dist/contract.js +19 -0
- package/dist/contract.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2482 -0
- package/dist/index.js.map +1 -0
- package/jsx/Action/autoCutout.jsx +12 -0
- package/jsx/Action/redo.jsx +5 -0
- package/jsx/Action/removeBackground.jsx +10 -0
- package/jsx/Common/alert.jsx +4 -0
- package/jsx/Common/debug.jsx +43 -0
- package/jsx/Common/event-dispatch.jsx +4 -0
- package/jsx/Document/exportDocument.jsx +128 -0
- package/jsx/Document/getDocumentInfo.jsx +222 -0
- package/jsx/Document/openPsd.jsx +6 -0
- package/jsx/Document/openPsdFile.jsx +7 -0
- package/jsx/Document/saveDocument.jsx +37 -0
- package/jsx/Layer/addImageLayer.jsx +182 -0
- package/jsx/Layer/createSelectionStroke.jsx +44 -0
- package/jsx/Layer/getActiveLayerID.jsx +1 -0
- package/jsx/Layer/getLayerBounds.jsx +114 -0
- package/jsx/Layer/getLayerInfo.jsx +323 -0
- package/jsx/Layer/getLayerPixmap.jsx +337 -0
- package/jsx/Layer/getSelection.jsx +6 -0
- package/jsx/Layer/layer.jsx +284 -0
- package/jsx/Layer/saveEngineDataToLayer.jsx +26 -0
- package/jsx/Layer/setLayerWorkpathMask.jsx +126 -0
- package/jsx/Layer/transformLayer.jsx +121 -0
- package/jsx/Selection/getSelectionPath.jsx +389 -0
- package/jsx/Selection/pathtosvg.jsx +257 -0
- package/jsx/Selection/registerEvent.jsx +10 -0
- package/jsx/Selection/selectiontopath.jsx +9 -0
- package/jsx/polyfills/Array.js +159 -0
- package/jsx/polyfills/Function.js +29 -0
- package/jsx/polyfills/JSON.js +182 -0
- package/jsx/polyfills/Number.js +24 -0
- package/jsx/polyfills/Object.js +80 -0
- package/jsx/polyfills/String.js +87 -0
- package/jsx/types/extendscript/README.md +34 -0
- package/jsx/types/extendscript/actions.d.ts +148 -0
- package/jsx/types/extendscript/application.d.ts +74 -0
- package/jsx/types/extendscript/channel.d.ts +70 -0
- package/jsx/types/extendscript/color.d.ts +92 -0
- package/jsx/types/extendscript/document.d.ts +110 -0
- package/jsx/types/extendscript/enums.d.ts +796 -0
- package/jsx/types/extendscript/index.d.ts +504 -0
- package/jsx/types/extendscript/layer.d.ts +530 -0
- package/jsx/types/extendscript/misc.d.ts +274 -0
- package/jsx/types/extendscript/open-options.d.ts +86 -0
- package/jsx/types/extendscript/path.d.ts +196 -0
- package/jsx/types/extendscript/save-options.d.ts +144 -0
- package/jsx/types/extendscript/selection.d.ts +191 -0
- package/jsx/types/extendscript/text.d.ts +169 -0
- package/main.js +16 -0
- package/package.json +75 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Photoshop 选区类型声明
|
|
3
|
+
* 来源: https://theiviaxx.github.io/photoshop-docs/Photoshop/
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 文档或图层中的选定区域。
|
|
8
|
+
* 通过 Document.selection 属性访问。
|
|
9
|
+
*/
|
|
10
|
+
declare class Selection {
|
|
11
|
+
/** 整个选区的边界矩形(只读)*/
|
|
12
|
+
readonly bounds: [number, number, number, number];
|
|
13
|
+
/** 对象的容器(只读)*/
|
|
14
|
+
readonly parent: Document;
|
|
15
|
+
/** 如果为 true,则边界矩形为实心矩形(只读)*/
|
|
16
|
+
readonly solid: boolean;
|
|
17
|
+
/** 对象的类名(只读)*/
|
|
18
|
+
readonly typename: string;
|
|
19
|
+
|
|
20
|
+
/** 清除选区(不复制到剪贴板)*/
|
|
21
|
+
clear(): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 收缩选区。
|
|
25
|
+
* @param by 收缩量(像素)
|
|
26
|
+
*/
|
|
27
|
+
contract(by: number): void;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 将选区复制到剪贴板。
|
|
31
|
+
* @param merged 是否复制所有可见图层(可选)
|
|
32
|
+
*/
|
|
33
|
+
copy(merged?: boolean): void;
|
|
34
|
+
|
|
35
|
+
/** 将当前选区剪切到剪贴板 */
|
|
36
|
+
cut(): void;
|
|
37
|
+
|
|
38
|
+
/** 取消选择当前选区 */
|
|
39
|
+
deselect(): void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 扩大选区。
|
|
43
|
+
* @param by 扩大量(像素)
|
|
44
|
+
*/
|
|
45
|
+
expand(by: number): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 羽化选区的边缘。
|
|
49
|
+
* @param by 羽化量(像素)
|
|
50
|
+
*/
|
|
51
|
+
feather(by: number): void;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 填充选区。
|
|
55
|
+
* @param fillType 填充类型(颜色、内容识别等)
|
|
56
|
+
* @param mode 混合模式(可选)
|
|
57
|
+
* @param opacity 不透明度(可选)
|
|
58
|
+
* @param preserveTransparency 是否保留透明度(可选)
|
|
59
|
+
*/
|
|
60
|
+
fill(
|
|
61
|
+
fillType: SolidColor | DocumentFill,
|
|
62
|
+
mode?: BlendMode,
|
|
63
|
+
opacity?: number,
|
|
64
|
+
preserveTransparency?: boolean
|
|
65
|
+
): void;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 增大选区以包含所有落在指定容差范围内的相邻像素。
|
|
69
|
+
* @param tolerance 容差值(0-255)
|
|
70
|
+
* @param antiAlias 是否使用消除锯齿(可选)
|
|
71
|
+
*/
|
|
72
|
+
grow(tolerance: number, antiAlias?: boolean): void;
|
|
73
|
+
|
|
74
|
+
/** 反转选区 */
|
|
75
|
+
invert(): void;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 从指定通道加载选区。
|
|
79
|
+
* @param from 包含选区的文档
|
|
80
|
+
* @param channel 要从中加载选区的通道
|
|
81
|
+
* @param inverting 是否反转通道的选区(可选)
|
|
82
|
+
*/
|
|
83
|
+
load(from: Document, channel: Channel, inverting?: boolean): void;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 将此选区项作为此文档的工作路径。
|
|
87
|
+
* @param tolerance 容差值(可选)
|
|
88
|
+
*/
|
|
89
|
+
makeWorkPath(tolerance?: number): void;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* 将选定区域调整大小到指定的尺寸和锚点位置。
|
|
93
|
+
* @param horizontal 水平缩放(百分比)
|
|
94
|
+
* @param vertical 垂直缩放(百分比)
|
|
95
|
+
* @param anchor 锚点位置(可选)
|
|
96
|
+
*/
|
|
97
|
+
resize(horizontal?: number, vertical?: number, anchor?: AnchorPosition): void;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 缩放选区的边界(不缩放内容)。
|
|
101
|
+
* @param horizontal 水平缩放(百分比)
|
|
102
|
+
* @param vertical 垂直缩放(百分比)
|
|
103
|
+
* @param anchor 锚点位置(可选)
|
|
104
|
+
*/
|
|
105
|
+
resizeBoundary(horizontal?: number, vertical?: number, anchor?: AnchorPosition): void;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 旋转对象。
|
|
109
|
+
* @param angle 旋转角度(度)
|
|
110
|
+
* @param anchor 锚点位置(可选)
|
|
111
|
+
*/
|
|
112
|
+
rotate(angle: number, anchor?: AnchorPosition): void;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 旋转选区的边界(不旋转内容)。
|
|
116
|
+
* @param angle 旋转角度(度)
|
|
117
|
+
* @param anchor 锚点位置(可选)
|
|
118
|
+
*/
|
|
119
|
+
rotateBoundary(angle: number, anchor?: AnchorPosition): void;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* 选择指定的区域。
|
|
123
|
+
* @param region 定义选区的坐标数组([左, 上, 右, 下] 或多边形点数组)
|
|
124
|
+
* @param type 选区操作类型(可选)
|
|
125
|
+
* @param feather 羽化量(可选)
|
|
126
|
+
* @param antiAlias 是否消除锯齿(可选)
|
|
127
|
+
*/
|
|
128
|
+
select(region: number[][], type?: SelectionType, feather?: number, antiAlias?: boolean): void;
|
|
129
|
+
|
|
130
|
+
/** 选择整个图层 */
|
|
131
|
+
selectAll(): void;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 仅选择选区边框(在指定宽度内)。
|
|
135
|
+
* @param width 边框宽度(像素)
|
|
136
|
+
*/
|
|
137
|
+
selectBorder(width: number): void;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* 增大选区以包含图像中所有落在容差范围内的像素。
|
|
141
|
+
* @param tolerance 容差值(0-255)
|
|
142
|
+
* @param antiAlias 是否使用消除锯齿(可选)
|
|
143
|
+
*/
|
|
144
|
+
similar(tolerance: number, antiAlias?: boolean): void;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 清理基于颜色的选区内部或外部残留的像素。
|
|
148
|
+
* @param radius 半径(像素)
|
|
149
|
+
*/
|
|
150
|
+
smooth(radius: number): void;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* 将选区保存为通道。
|
|
154
|
+
* @param into 目标文档
|
|
155
|
+
* @param channel 目标通道(可选,若不提供则创建新通道)
|
|
156
|
+
* @param replacing 是否替换已有通道(可选)
|
|
157
|
+
*/
|
|
158
|
+
store(into: Document, channel?: Channel, replacing?: SelectionType): void;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* 描边选区。
|
|
162
|
+
* @param strokeColor 描边颜色
|
|
163
|
+
* @param width 描边宽度(像素)
|
|
164
|
+
* @param location 描边位置(可选)
|
|
165
|
+
* @param mode 混合模式(可选)
|
|
166
|
+
* @param opacity 不透明度(可选)
|
|
167
|
+
* @param preserveTransparency 是否保留透明度(可选)
|
|
168
|
+
*/
|
|
169
|
+
stroke(
|
|
170
|
+
strokeColor: SolidColor,
|
|
171
|
+
width: number,
|
|
172
|
+
location?: StrokeLocation,
|
|
173
|
+
mode?: BlendMode,
|
|
174
|
+
opacity?: number,
|
|
175
|
+
preserveTransparency?: boolean
|
|
176
|
+
): void;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* 相对于当前位置移动对象。
|
|
180
|
+
* @param deltaX 水平移动量
|
|
181
|
+
* @param deltaY 垂直移动量
|
|
182
|
+
*/
|
|
183
|
+
translate(deltaX?: number, deltaY?: number): void;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* 相对于当前位置移动选区边界(不移动内容)。
|
|
187
|
+
* @param deltaX 水平移动量
|
|
188
|
+
* @param deltaY 垂直移动量
|
|
189
|
+
*/
|
|
190
|
+
translateBoundary(deltaX?: number, deltaY?: number): void;
|
|
191
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Photoshop 文字类型声明
|
|
3
|
+
* 来源: https://theiviaxx.github.io/photoshop-docs/Photoshop/
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/** 字体对象 */
|
|
7
|
+
declare class TextFont {
|
|
8
|
+
/** 字体系列名称(只读)*/
|
|
9
|
+
readonly family: string;
|
|
10
|
+
/** 字体名称(只读)*/
|
|
11
|
+
readonly name: string;
|
|
12
|
+
/** 对象的容器(只读)*/
|
|
13
|
+
readonly parent: Application;
|
|
14
|
+
/** 是否为固定宽度字体(只读)*/
|
|
15
|
+
readonly postScriptName: string;
|
|
16
|
+
/** 字体样式(只读)*/
|
|
17
|
+
readonly style: string;
|
|
18
|
+
/** 对象的类名(只读)*/
|
|
19
|
+
readonly typename: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** 字体集合 */
|
|
23
|
+
declare class TextFonts {
|
|
24
|
+
/** 字体数量(只读)*/
|
|
25
|
+
readonly length: number;
|
|
26
|
+
/** 对象的容器(只读)*/
|
|
27
|
+
readonly parent: Application;
|
|
28
|
+
/** 对象的类名(只读)*/
|
|
29
|
+
readonly typename: string;
|
|
30
|
+
/** 通过索引访问字体 */
|
|
31
|
+
[index: number]: TextFont;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 通过名称获取字体。
|
|
35
|
+
* @param name 字体名称
|
|
36
|
+
*/
|
|
37
|
+
getByName(name: string): TextFont;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 包含在 ArtLayer 中的文本对象。
|
|
42
|
+
* 仅当图层的 kind 为文字图层时有效。
|
|
43
|
+
*/
|
|
44
|
+
declare class TextItem {
|
|
45
|
+
/** 如果为 true,使用替代连字 */
|
|
46
|
+
alternateLigatures: boolean;
|
|
47
|
+
/** 使用的抗锯齿方法 */
|
|
48
|
+
antiAliasMethod: AntiAlias;
|
|
49
|
+
/** 自动字距调整选项 */
|
|
50
|
+
autoKerning: AutoKernType;
|
|
51
|
+
/** 用于自动行距的百分比。范围:0.01 到 5000.00 */
|
|
52
|
+
autoLeadingAmount: number;
|
|
53
|
+
/** 文本的基线偏移量 */
|
|
54
|
+
baselineShift: number;
|
|
55
|
+
/** 文本的大小写格式 */
|
|
56
|
+
capitalization: Case;
|
|
57
|
+
/** 文本颜色 */
|
|
58
|
+
color: SolidColor;
|
|
59
|
+
/** 图层中的实际文本内容 */
|
|
60
|
+
contents: string;
|
|
61
|
+
/** 期望字形缩放百分比。范围:50 - 200(仅两端对齐有效)*/
|
|
62
|
+
desiredGlyphScaling: number;
|
|
63
|
+
/** 期望字母间距百分比。范围:100 - 500(仅两端对齐有效)*/
|
|
64
|
+
desiredLetterScaling: number;
|
|
65
|
+
/** 期望单词间距百分比。范围:0 - 1000(仅两端对齐有效)*/
|
|
66
|
+
desiredWordScaling: number;
|
|
67
|
+
/** 文本方向 */
|
|
68
|
+
direction: Direction;
|
|
69
|
+
/** 如果为 true,使用伪粗体 */
|
|
70
|
+
fauxBold: boolean;
|
|
71
|
+
/** 如果为 true,使用伪斜体 */
|
|
72
|
+
fauxItalic: boolean;
|
|
73
|
+
/** 段落首行缩进量。范围:-1296 到 1296 */
|
|
74
|
+
firstLineIndent: number;
|
|
75
|
+
/** 字符的字体名称 */
|
|
76
|
+
font: string;
|
|
77
|
+
/** 如果为 true,使用罗马式悬挂标点 */
|
|
78
|
+
hangingPuntuation: boolean;
|
|
79
|
+
/** 段落文本边界框的高度 */
|
|
80
|
+
height: number;
|
|
81
|
+
/** 字符水平缩放。范围:0 - 1000(百分比)*/
|
|
82
|
+
horizontalScale: number;
|
|
83
|
+
/** 允许换行断字的最少字母数。范围:1 到 15 */
|
|
84
|
+
hyphenateAfterFirst: number;
|
|
85
|
+
/** 允许换行断字前的最多字母数。范围:1 到 15 */
|
|
86
|
+
hyphenateBeforeLast: number;
|
|
87
|
+
/** 如果为 true,大写单词可以断字 */
|
|
88
|
+
hyphenateCapitalWords: boolean;
|
|
89
|
+
/** 允许换行断字的最少字母数。范围:2 到 25 */
|
|
90
|
+
hyphenateWordsLongerThan: number;
|
|
91
|
+
/** 如果为 true,使用断字 */
|
|
92
|
+
hyphenation: boolean;
|
|
93
|
+
/** 行末导致断字的距离。范围:0 - 720 派卡 */
|
|
94
|
+
hyphenationZone: number;
|
|
95
|
+
/** 连续以连字符结尾的最大行数 */
|
|
96
|
+
hyphenLimit: number;
|
|
97
|
+
/** 段落对齐方式 */
|
|
98
|
+
justification: Justification;
|
|
99
|
+
/** 文本类型(点文字/区域文字)*/
|
|
100
|
+
kind: TextType;
|
|
101
|
+
/** 语言 */
|
|
102
|
+
language: Language;
|
|
103
|
+
/** 行距量 */
|
|
104
|
+
leading: number;
|
|
105
|
+
/** 文本左侧缩进量。范围:-1296 到 1296 */
|
|
106
|
+
leftIndent: number;
|
|
107
|
+
/** 如果为 true,使用连字 */
|
|
108
|
+
ligatures: boolean;
|
|
109
|
+
/** 最大字形缩放百分比。范围:50 - 200 */
|
|
110
|
+
maximumGlyphScaling: number;
|
|
111
|
+
/** 最大字母间距百分比。范围:100 - 500 */
|
|
112
|
+
maximumLetterScaling: number;
|
|
113
|
+
/** 最大单词间距百分比。范围:0 - 1000 */
|
|
114
|
+
maximumWordScaling: number;
|
|
115
|
+
/** 最小字形缩放百分比。范围:50 - 200 */
|
|
116
|
+
minimumGlyphScaling: number;
|
|
117
|
+
/** 最小字母间距百分比。范围:100 - 500 */
|
|
118
|
+
minimumLetterScaling: number;
|
|
119
|
+
/** 最小单词间距百分比。范围:0 - 1000 */
|
|
120
|
+
minimumWordScaling: number;
|
|
121
|
+
/** 如果为 true,禁止在行尾断词 */
|
|
122
|
+
noBreak: boolean;
|
|
123
|
+
/** 如果为 true,使用旧式风格 */
|
|
124
|
+
oldStyle: boolean;
|
|
125
|
+
/** 对象的容器(只读)*/
|
|
126
|
+
readonly parent: ArtLayer;
|
|
127
|
+
/** 文本原点的位置 [x, y] */
|
|
128
|
+
position: [number, number];
|
|
129
|
+
/** 文本右侧缩进量。范围:-1296 到 1296 */
|
|
130
|
+
rightIndent: number;
|
|
131
|
+
/** 字体大小(点)*/
|
|
132
|
+
size: number;
|
|
133
|
+
/** 每个段落后的间距量。范围:-1296 到 1296 */
|
|
134
|
+
spaceAfter: number;
|
|
135
|
+
/** 每个段落前的间距量。范围:-1296 到 1296 */
|
|
136
|
+
spaceBefore: number;
|
|
137
|
+
/** 删除线选项 */
|
|
138
|
+
strikeThru: StrikeThruType;
|
|
139
|
+
/** 使用的文本排版引擎 */
|
|
140
|
+
textComposer: TextComposer;
|
|
141
|
+
/** 多个字符之间的均匀间距量。范围:-1000 到 10000 */
|
|
142
|
+
tracking: number;
|
|
143
|
+
/** 对象的类名(只读)*/
|
|
144
|
+
readonly typename: string;
|
|
145
|
+
/** 下划线选项 */
|
|
146
|
+
underline: UnderlineType;
|
|
147
|
+
/** 如果为 true,使用字体内置的行距信息 */
|
|
148
|
+
useAutoLeading: boolean;
|
|
149
|
+
/** 字符垂直缩放。范围:0 - 1000(百分比)*/
|
|
150
|
+
verticalScale: number;
|
|
151
|
+
/** 变形弯曲百分比。范围:-100 到 100 */
|
|
152
|
+
warpBend: number;
|
|
153
|
+
/** 变形方向 */
|
|
154
|
+
warpDirection: Direction;
|
|
155
|
+
/** 变形水平扭曲百分比。范围:-100 到 100 */
|
|
156
|
+
warpHorizontalDistortion: number;
|
|
157
|
+
/** 变形样式 */
|
|
158
|
+
warpStyle: WarpStyle;
|
|
159
|
+
/** 变形垂直扭曲百分比。范围:-100 到 100 */
|
|
160
|
+
warpVerticalDistortion: number;
|
|
161
|
+
/** 段落文本边界框的宽度 */
|
|
162
|
+
width: number;
|
|
163
|
+
|
|
164
|
+
/** 将文本对象及其包含的图层转换为填充图层,文本更改为剪切路径 */
|
|
165
|
+
convertToShape(): void;
|
|
166
|
+
|
|
167
|
+
/** 从实际文本项的轮廓创建剪切路径 */
|
|
168
|
+
createPath(): void;
|
|
169
|
+
}
|
package/main.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CJS plugin entry — the file generator-core `require`s (package.json "main").
|
|
3
|
+
* This is the only boundary between the CommonJS world and the bundled plugin
|
|
4
|
+
* code. Its jobs, in order:
|
|
5
|
+
* 1. set PS_BRIDGE_LOG_DIR before the bundle is required (in case a file sink reads it),
|
|
6
|
+
* 2. require the tsup bundle and re-export its `init` for generator-core.
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
var path = require("path");
|
|
11
|
+
|
|
12
|
+
if (!process.env.PS_BRIDGE_LOG_DIR) {
|
|
13
|
+
process.env.PS_BRIDGE_LOG_DIR = path.join(__dirname, "logs");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
module.exports = require("./dist/index.js");
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ps-generator-bridge/generator",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "PS Generator Bridge — Photoshop Generator plugin + WebSocket service (runs in PS's bundled Node)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "wojzj57",
|
|
7
|
+
"homepage": "https://github.com/wojzj57/ps-generator-bridge-service#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/wojzj57/ps-generator-bridge-service.git",
|
|
11
|
+
"directory": "packages/generator"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/wojzj57/ps-generator-bridge-service/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"photoshop",
|
|
18
|
+
"generator",
|
|
19
|
+
"websocket",
|
|
20
|
+
"plugin"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"main": "main.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"require": "./main.js",
|
|
31
|
+
"default": "./main.js"
|
|
32
|
+
},
|
|
33
|
+
"./contract": {
|
|
34
|
+
"types": "./dist/contract.d.ts",
|
|
35
|
+
"require": "./dist/contract.js",
|
|
36
|
+
"default": "./dist/contract.js"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"main.js",
|
|
42
|
+
"dist",
|
|
43
|
+
"jsx",
|
|
44
|
+
"plugins",
|
|
45
|
+
"README.md"
|
|
46
|
+
],
|
|
47
|
+
"generator-core-version": ">=1.0.0",
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@fastify/websocket": "^10.0.1",
|
|
50
|
+
"cos-nodejs-sdk-v5": "^2.15.4",
|
|
51
|
+
"fastify": "^4.29.1",
|
|
52
|
+
"sharp": "^0.35.2",
|
|
53
|
+
"ws": "^8.18.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/node": "^22.13.5",
|
|
57
|
+
"@types/ws": "^8.5.12",
|
|
58
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
59
|
+
"rimraf": "^6.0.1",
|
|
60
|
+
"tsup": "^8.3.5",
|
|
61
|
+
"tsx": "^4.19.2",
|
|
62
|
+
"typescript": "^5.9.3",
|
|
63
|
+
"vitest": "^2.1.9",
|
|
64
|
+
"@ps-generator-bridge/sdk": "0.1.0"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "tsup",
|
|
68
|
+
"build:watch": "tsup --watch",
|
|
69
|
+
"typecheck": "tsc --noEmit",
|
|
70
|
+
"test": "vitest run --coverage",
|
|
71
|
+
"test:watch": "vitest",
|
|
72
|
+
"dev": "tsx test/devServer.ts",
|
|
73
|
+
"clean": "rimraf dist logs coverage *.tsbuildinfo"
|
|
74
|
+
}
|
|
75
|
+
}
|