@kalutskii/contract 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.
@@ -0,0 +1,16 @@
1
+ /** Strongly-typed contract config accepted by the project. */
2
+ interface Config {
3
+ app: string;
4
+ contracts: string[];
5
+ emit: string[];
6
+ package: {
7
+ name: string;
8
+ version: string;
9
+ exports?: Record<string, string>;
10
+ };
11
+ npm?: {
12
+ token: string;
13
+ };
14
+ }
15
+
16
+ export type { Config };
package/dist/index.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@kalutskii/contract",
3
+ "version": "1.0.0",
4
+ "description": "TypeScript contract library for generating, versioning, and distributing type definitions across services.",
5
+ "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/kalutskii/contract.git"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "build": "tsup",
15
+ "lint": "eslint . --ext .ts",
16
+ "typecheck": "tsc --noEmit"
17
+ },
18
+ "bin": {
19
+ "contract": "./dist/cli.entrypoint.js"
20
+ },
21
+ "exports": {
22
+ ".": "./dist/index.js"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "peerDependencies": {
28
+ "hono": "^3.12.12",
29
+ "typescript": "^5.9.3",
30
+ "jiti": "^2.6.1",
31
+ "zod": "^4.3.6"
32
+ },
33
+ "dependencies": {
34
+ "@clack/prompts": "^1.5.1",
35
+ "clipanion": "^4.0.0-rc.4",
36
+ "esbuild": "^0.25.12",
37
+ "esbuild-plugin-tsconfig-paths": "^1.0.2",
38
+ "execa": "^9.6.1",
39
+ "fs-extra": "^11.3.5",
40
+ "kleur": "^4.1.5"
41
+ },
42
+ "devDependencies": {
43
+ "@eslint/js": "^10.0.1",
44
+ "@trivago/prettier-plugin-sort-imports": "^6.0.2",
45
+ "@types/bun": "latest",
46
+ "@types/fs-extra": "^11.0.4",
47
+ "eslint": "^10.5.0",
48
+ "eslint-config-prettier": "^10.1.8",
49
+ "prettier": "^3.8.4",
50
+ "tsup": "^8.5.1",
51
+ "typescript-eslint": "^8.61.1"
52
+ }
53
+ }