@rife/orpc 0.0.1-beta.1 → 0.0.1-beta.2
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 +3 -4
- package/src/util.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rife/orpc",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@orpc/shared": "2.0.0-beta.43"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@rife/plugin-rstack": "0.0.1-beta.
|
|
23
|
+
"@rife/plugin-rstack": "0.0.1-beta.27"
|
|
24
24
|
},
|
|
25
25
|
"rife": {
|
|
26
26
|
"hostDependencies": {
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "rife dev",
|
|
38
38
|
"build": "rife build",
|
|
39
|
-
"
|
|
40
|
-
"test": "vitest --run"
|
|
39
|
+
"release": "rife release"
|
|
41
40
|
}
|
|
42
41
|
}
|
package/src/util.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { minifyRouterContract } from '@orpc/contract';
|
|
2
|
-
import { AnyRouter, unlazyRouter } from '@orpc/server';
|
|
3
1
|
import fs from 'fs-extra';
|
|
2
|
+
import { minifyRouterContract } from '@orpc/contract';
|
|
3
|
+
import { type AnyRouter, unlazyRouter } from '@orpc/server';
|
|
4
4
|
|
|
5
5
|
export async function exportContract(router: AnyRouter, file: string) {
|
|
6
6
|
const compatibleContract = await unlazyRouter(router);
|