@jhb.software/payload-alt-text-plugin 0.4.0 → 0.4.1
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/package.json +26 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhb.software/payload-alt-text-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A Payload CMS plugin that adds AI-powered alt text generation for images.",
|
|
5
5
|
"bugs": "https://github.com/jhb-software/payload-plugins/issues",
|
|
6
6
|
"repository": "https://github.com/jhb-software/payload-plugins",
|
|
@@ -14,21 +14,8 @@
|
|
|
14
14
|
"author": "JHB Software",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"type": "module",
|
|
17
|
-
"main": "./
|
|
18
|
-
"types": "./
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
|
|
21
|
-
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
22
|
-
"build:types": "tsc --outDir dist --rootDir ./src",
|
|
23
|
-
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
24
|
-
"clean": "rimraf --glob {dist,*.tsbuildinfo}",
|
|
25
|
-
"dev": "tsc -w",
|
|
26
|
-
"format": "prettier --write src",
|
|
27
|
-
"lint": "eslint src",
|
|
28
|
-
"lint:fix": "eslint src --fix",
|
|
29
|
-
"test:health": "node --experimental-strip-types --test test/altTextHealth.test.ts",
|
|
30
|
-
"prepublishOnly": "pnpm clean && pnpm build"
|
|
31
|
-
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
32
19
|
"dependencies": {
|
|
33
20
|
"openai": "^6.33.0",
|
|
34
21
|
"p-map": "^7.0.4",
|
|
@@ -57,46 +44,39 @@
|
|
|
57
44
|
"dist"
|
|
58
45
|
],
|
|
59
46
|
"publishConfig": {
|
|
60
|
-
"main": "./dist/index.js",
|
|
61
|
-
"types": "./dist/index.d.ts",
|
|
62
47
|
"registry": "https://registry.npmjs.org/",
|
|
63
|
-
"access": "public"
|
|
64
|
-
"exports": {
|
|
65
|
-
".": {
|
|
66
|
-
"import": "./dist/index.js",
|
|
67
|
-
"types": "./dist/index.d.ts",
|
|
68
|
-
"default": "./dist/index.js"
|
|
69
|
-
},
|
|
70
|
-
"./client": {
|
|
71
|
-
"import": "./dist/exports/client.js",
|
|
72
|
-
"types": "./dist/exports/client.d.ts",
|
|
73
|
-
"default": "./dist/exports/client.js"
|
|
74
|
-
},
|
|
75
|
-
"./server": {
|
|
76
|
-
"import": "./dist/exports/server.js",
|
|
77
|
-
"types": "./dist/exports/server.d.ts",
|
|
78
|
-
"default": "./dist/exports/server.js"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
48
|
+
"access": "public"
|
|
81
49
|
},
|
|
82
50
|
"exports": {
|
|
83
51
|
".": {
|
|
84
|
-
"import": "./
|
|
85
|
-
"types": "./
|
|
86
|
-
"default": "./
|
|
52
|
+
"import": "./dist/index.js",
|
|
53
|
+
"types": "./dist/index.d.ts",
|
|
54
|
+
"default": "./dist/index.js"
|
|
87
55
|
},
|
|
88
56
|
"./client": {
|
|
89
|
-
"import": "./
|
|
90
|
-
"types": "./
|
|
91
|
-
"default": "./
|
|
57
|
+
"import": "./dist/exports/client.js",
|
|
58
|
+
"types": "./dist/exports/client.d.ts",
|
|
59
|
+
"default": "./dist/exports/client.js"
|
|
92
60
|
},
|
|
93
61
|
"./server": {
|
|
94
|
-
"import": "./
|
|
95
|
-
"types": "./
|
|
96
|
-
"default": "./
|
|
62
|
+
"import": "./dist/exports/server.js",
|
|
63
|
+
"types": "./dist/exports/server.d.ts",
|
|
64
|
+
"default": "./dist/exports/server.js"
|
|
97
65
|
}
|
|
98
66
|
},
|
|
99
67
|
"engines": {
|
|
100
68
|
"node": "^18.20.2 || >=20.9.0"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
|
|
72
|
+
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
73
|
+
"build:types": "tsc --outDir dist --rootDir ./src",
|
|
74
|
+
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
75
|
+
"clean": "rimraf --glob {dist,*.tsbuildinfo}",
|
|
76
|
+
"dev": "tsc -w",
|
|
77
|
+
"format": "prettier --write src",
|
|
78
|
+
"lint": "eslint src",
|
|
79
|
+
"lint:fix": "eslint src --fix",
|
|
80
|
+
"test:health": "node --experimental-strip-types --test test/altTextHealth.test.ts"
|
|
101
81
|
}
|
|
102
|
-
}
|
|
82
|
+
}
|