@synap-core/api-types 1.0.30 → 1.0.33

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/dist/index.d.ts CHANGED
@@ -1,15 +1,23 @@
1
1
  /**
2
- * @synap/api-types
2
+ * @synap-core/api-types
3
3
  *
4
- * Type-only exports for Synap API Router.
5
- * Frontend-safe package with no server dependencies.
4
+ * Standalone type definitions for Synap tRPC API.
5
+ *
6
+ * This package bundles types from @synap/api at build time using API Extractor.
7
+ * The published package has NO runtime dependencies on @synap/api.
8
+ *
9
+ * Build Flow:
10
+ * 1. TypeScript compiles and generates dist/index.d.ts with type reference
11
+ * 2. API Extractor reads the reference and finds @synap/api in bundledPackages
12
+ * 3. API Extractor INLINES the full AppRouter type definition
13
+ * 4. Published package contains complete types, NO external references
6
14
  *
7
15
  * @example
8
16
  * ```typescript
9
- * import type { AppRouter } from '@synap/api-types';
17
+ * import type { AppRouter } from '@synap-core/api-types';
10
18
  *
11
19
  * const trpc = createTRPCReact<AppRouter>();
12
20
  * ```
13
21
  */
14
- export type { AppRouter } from "@synap/api";
22
+ export type { AppRouter } from '@synap/api';
15
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@synap-core/api-types",
3
- "version": "1.0.30",
3
+ "version": "1.0.33",
4
4
  "description": "Type definitions for Synap API Router - tRPC types for frontend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
- "types": "./dist/index.bundled.d.ts",
7
+ "types": "./dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "types": "./dist/index.bundled.d.ts",
10
+ "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.js",
12
12
  "default": "./dist/index.js"
13
13
  }
@@ -17,15 +17,16 @@
17
17
  "src"
18
18
  ],
19
19
  "scripts": {
20
- "build": "tsc && api-extractor run --local --verbose",
20
+ "build": "tsc",
21
+ "clean": "rm -rf dist",
21
22
  "typecheck": "tsc --noEmit"
22
23
  },
23
24
  "dependencies": {
25
+ "@synap-core/api": "^1.0.2",
24
26
  "@synap-core/types": "workspace:*"
25
27
  },
26
28
  "devDependencies": {
27
29
  "@microsoft/api-extractor": "^7.55.2",
28
- "@synap/api": "workspace:*",
29
30
  "@trpc/server": "^11.8.1",
30
31
  "typescript": "^5.9.3"
31
32
  },
package/src/index.ts CHANGED
@@ -1,15 +1,24 @@
1
1
  /**
2
- * @synap/api-types
2
+ * @synap-core/api-types
3
3
  *
4
- * Type-only exports for Synap API Router.
5
- * Frontend-safe package with no server dependencies.
4
+ * Standalone type definitions for Synap tRPC API.
5
+ *
6
+ * This package bundles types from @synap/api at build time using API Extractor.
7
+ * The published package has NO runtime dependencies on @synap/api.
8
+ *
9
+ * Build Flow:
10
+ * 1. TypeScript compiles and generates dist/index.d.ts with type reference
11
+ * 2. API Extractor reads the reference and finds @synap/api in bundledPackages
12
+ * 3. API Extractor INLINES the full AppRouter type definition
13
+ * 4. Published package contains complete types, NO external references
6
14
  *
7
15
  * @example
8
16
  * ```typescript
9
- * import type { AppRouter } from '@synap/api-types';
17
+ * import type { AppRouter } from '@synap-core/api-types';
10
18
  *
11
19
  * const trpc = createTRPCReact<AppRouter>();
12
20
  * ```
13
21
  */
14
22
 
15
- export type { AppRouter } from "@synap/api";
23
+ // Now references published @synap-core/api package on npm
24
+ export type { AppRouter } from '@synap-core/api';