@productcraft/mail 0.3.0 → 1.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@productcraft/mail",
3
- "version": "0.3.0",
4
- "description": "Receive-and-store mail platform — template-rendered sends, mailboxes + domains + DKIM, message timeline, suppression lists, outbound webhooks via ProductCraft Mail. Generated from the production OpenAPI spec.",
3
+ "version": "1.0.0",
4
+ "description": "Transactional email, templates, sending domains, contacts and broadcasts (ProductCraft Mail). Resources, auto-pagination, typed errors, retries with idempotency keys and webhook verification, generated from the production OpenAPI spec.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -11,13 +11,22 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.js",
13
13
  "require": "./dist/index.cjs"
14
- }
14
+ },
15
+ "./testing": {
16
+ "types": "./dist/testing.d.ts",
17
+ "import": "./dist/testing.js",
18
+ "require": "./dist/testing.cjs"
19
+ },
20
+ "./manifest.json": "./manifest.json"
15
21
  },
16
22
  "files": [
17
23
  "dist/**",
24
+ "manifest.json",
25
+ "api.md",
18
26
  "README.md",
19
27
  "LICENSE"
20
28
  ],
29
+ "sideEffects": false,
21
30
  "engines": {
22
31
  "node": ">=20.3"
23
32
  },
@@ -46,6 +55,7 @@
46
55
  "@productcraft/core": "^0.4.0"
47
56
  },
48
57
  "scripts": {
49
- "build": "tsup"
58
+ "build": "tsup && node -e \"require('node:fs').copyFileSync('src/_generated/manifest.json','manifest.json')\"",
59
+ "test": "tsc -p tests/tsconfig.json && vitest run"
50
60
  }
51
61
  }