@jhb.software/payload-alt-text-plugin 0.1.0 → 0.1.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.
Files changed (1) hide show
  1. package/package.json +26 -46
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jhb.software/payload-alt-text-plugin",
3
- "version": "0.1.0",
4
- "description": "Payload CMS plugin that adds essential fields for hierarchical page structure to collections.",
3
+ "version": "0.1.1",
4
+ "description": "A minimal Payload CMS plugin to generate image alt texts using OpenAI's Vision API.",
5
5
  "bugs": "https://github.com/jhb-software/payload-plugins/issues",
6
6
  "repository": "https://github.com/jhb-software/payload-plugins",
7
7
  "keywords": [
@@ -14,20 +14,8 @@
14
14
  "author": "JHB Software",
15
15
  "license": "MIT",
16
16
  "type": "module",
17
- "main": "./src/index.ts",
18
- "types": "./src/index.ts",
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
- "prepublishOnly": "pnpm clean && pnpm build"
30
- },
17
+ "main": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
31
19
  "dependencies": {
32
20
  "openai": "^6.6.0",
33
21
  "p-map": "^7.0.3",
@@ -54,46 +42,38 @@
54
42
  "dist"
55
43
  ],
56
44
  "publishConfig": {
57
- "main": "./dist/index.js",
58
- "types": "./dist/index.d.ts",
59
45
  "registry": "https://registry.npmjs.org/",
60
- "access": "public",
61
- "exports": {
62
- ".": {
63
- "import": "./dist/index.js",
64
- "types": "./dist/index.d.ts",
65
- "default": "./dist/index.js"
66
- },
67
- "./client": {
68
- "import": "./dist/exports/client.js",
69
- "types": "./dist/exports/client.d.ts",
70
- "default": "./dist/exports/client.js"
71
- },
72
- "./server": {
73
- "import": "./dist/exports/server.js",
74
- "types": "./dist/exports/server.d.ts",
75
- "default": "./dist/exports/server.js"
76
- }
77
- }
46
+ "access": "public"
78
47
  },
79
48
  "exports": {
80
49
  ".": {
81
- "import": "./src/index.ts",
82
- "types": "./src/index.ts",
83
- "default": "./src/index.ts"
50
+ "import": "./dist/index.js",
51
+ "types": "./dist/index.d.ts",
52
+ "default": "./dist/index.js"
84
53
  },
85
54
  "./client": {
86
- "import": "./src/exports/client.ts",
87
- "types": "./src/exports/client.ts",
88
- "default": "./src/exports/client.ts"
55
+ "import": "./dist/exports/client.js",
56
+ "types": "./dist/exports/client.d.ts",
57
+ "default": "./dist/exports/client.js"
89
58
  },
90
59
  "./server": {
91
- "import": "./src/exports/server.ts",
92
- "types": "./src/exports/server.ts",
93
- "default": "./src/exports/server.ts"
60
+ "import": "./dist/exports/server.js",
61
+ "types": "./dist/exports/server.d.ts",
62
+ "default": "./dist/exports/server.js"
94
63
  }
95
64
  },
96
65
  "engines": {
97
66
  "node": "^18.20.2 || >=20.9.0"
67
+ },
68
+ "scripts": {
69
+ "build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
70
+ "build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
71
+ "build:types": "tsc --outDir dist --rootDir ./src",
72
+ "copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
73
+ "clean": "rimraf --glob {dist,*.tsbuildinfo}",
74
+ "dev": "tsc -w",
75
+ "format": "prettier --write src",
76
+ "lint": "eslint ./src",
77
+ "lint:fix": "eslint ./src --fix"
98
78
  }
99
- }
79
+ }