@classytic/primitives 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/package.json ADDED
@@ -0,0 +1,142 @@
1
+ {
2
+ "name": "@classytic/primitives",
3
+ "version": "0.1.0",
4
+ "description": "Framework-agnostic TypeScript primitives shared across Classytic packages — Money, events, pagination, tenant config, and other building blocks.",
5
+ "author": "Classytic",
6
+ "license": "MIT",
7
+ "homepage": "https://www.npmjs.com/package/@classytic/primitives",
8
+ "bugs": {
9
+ "url": "https://github.com/classytic/primitives/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/classytic/primitives.git"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "type": "module",
19
+ "sideEffects": false,
20
+ "engines": {
21
+ "node": ">=22"
22
+ },
23
+ "exports": {
24
+ "./money": {
25
+ "types": "./dist/money.d.mts",
26
+ "default": "./dist/money.mjs"
27
+ },
28
+ "./currency": {
29
+ "types": "./dist/currency.d.mts",
30
+ "default": "./dist/currency.mjs"
31
+ },
32
+ "./address": {
33
+ "types": "./dist/address.d.mts",
34
+ "default": "./dist/address.mjs"
35
+ },
36
+ "./period": {
37
+ "types": "./dist/period.d.mts",
38
+ "default": "./dist/period.mjs"
39
+ },
40
+ "./pagination": {
41
+ "types": "./dist/pagination.d.mts",
42
+ "default": "./dist/pagination.mjs"
43
+ },
44
+ "./reference": {
45
+ "types": "./dist/reference.d.mts",
46
+ "default": "./dist/reference.mjs"
47
+ },
48
+ "./context": {
49
+ "types": "./dist/context.d.mts",
50
+ "default": "./dist/context.mjs"
51
+ },
52
+ "./events": {
53
+ "types": "./dist/events.d.mts",
54
+ "default": "./dist/events.mjs"
55
+ },
56
+ "./outbox": {
57
+ "types": "./dist/outbox.d.mts",
58
+ "default": "./dist/outbox.mjs"
59
+ },
60
+ "./tenant": {
61
+ "types": "./dist/tenant.d.mts",
62
+ "default": "./dist/tenant.mjs"
63
+ },
64
+ "./result": {
65
+ "types": "./dist/result.d.mts",
66
+ "default": "./dist/result.mjs"
67
+ },
68
+ "./brand": {
69
+ "types": "./dist/brand.d.mts",
70
+ "default": "./dist/brand.mjs"
71
+ },
72
+ "./errors": {
73
+ "types": "./dist/errors.d.mts",
74
+ "default": "./dist/errors.mjs"
75
+ },
76
+ "./split-allocation": {
77
+ "types": "./dist/split-allocation.d.mts",
78
+ "default": "./dist/split-allocation.mjs"
79
+ },
80
+ "./approval": {
81
+ "types": "./dist/approval.d.mts",
82
+ "default": "./dist/approval.mjs"
83
+ },
84
+ "./cadence": {
85
+ "types": "./dist/cadence.d.mts",
86
+ "default": "./dist/cadence.mjs"
87
+ },
88
+ "./hold": {
89
+ "types": "./dist/hold.d.mts",
90
+ "default": "./dist/hold.mjs"
91
+ },
92
+ "./sla": {
93
+ "types": "./dist/sla.d.mts",
94
+ "default": "./dist/sla.mjs"
95
+ },
96
+ "./person": {
97
+ "types": "./dist/person.d.mts",
98
+ "default": "./dist/person.mjs"
99
+ },
100
+ "./package.json": "./package.json"
101
+ },
102
+ "files": [
103
+ "dist",
104
+ "README.md",
105
+ "CHANGELOG.md",
106
+ "LICENSE"
107
+ ],
108
+ "scripts": {
109
+ "build": "tsdown",
110
+ "dev": "tsdown --watch",
111
+ "typecheck": "tsc --noEmit",
112
+ "lint": "biome check src/ tests/",
113
+ "lint:fix": "biome check --write src/ tests/",
114
+ "test": "vitest run --project unit --project integration",
115
+ "test:unit": "vitest run --project unit",
116
+ "test:integration": "vitest run --project integration",
117
+ "test:all": "vitest run",
118
+ "test:watch": "vitest --project unit --project integration",
119
+ "test:smoke": "node tests/smoke/smoke.mjs",
120
+ "prepublishOnly": "npm run typecheck && npm run test && npm run build && npm run test:smoke",
121
+ "release": "npm run build && npm run typecheck && npm publish --access public"
122
+ },
123
+ "devDependencies": {
124
+ "@biomejs/biome": "^2.4.9",
125
+ "@types/node": "^25.5.0",
126
+ "tsdown": "^0.21.7",
127
+ "typescript": "^5.7.0",
128
+ "vitest": "^3.0.0"
129
+ },
130
+ "keywords": [
131
+ "typescript",
132
+ "types",
133
+ "primitives",
134
+ "money",
135
+ "currency",
136
+ "pagination",
137
+ "domain-event",
138
+ "tenant",
139
+ "classytic",
140
+ "commerce"
141
+ ]
142
+ }