@zusehq/serve 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/dist/bin.d.mts +1 -0
- package/dist/bin.mjs +11 -0
- package/dist/bin.mjs.map +1 -0
- package/dist/cli-CCiJBEaa.mjs +10 -0
- package/dist/cli-CCiJBEaa.mjs.map +1 -0
- package/dist/cli.d.mts +8 -0
- package/dist/cli.d.mts.map +1 -0
- package/dist/cli.mjs +2 -0
- package/package.json +40 -0
- package/src/cli-types.ts +6 -0
package/dist/bin.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/bin.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { t as runServeCli } from "./cli-CCiJBEaa.mjs";
|
|
3
|
+
//#region src/bin.ts
|
|
4
|
+
runServeCli(process.argv.slice(2), process.env).catch((cause) => {
|
|
5
|
+
console.error(cause instanceof Error ? cause.message : String(cause));
|
|
6
|
+
process.exitCode = 1;
|
|
7
|
+
});
|
|
8
|
+
//#endregion
|
|
9
|
+
export {};
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=bin.mjs.map
|
package/dist/bin.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.mjs","names":[],"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { runServeCli } from \"./cli.ts\";\n\nrunServeCli(process.argv.slice(2), process.env).catch((cause) => {\n\tconsole.error(cause instanceof Error ? cause.message : String(cause));\n\tprocess.exitCode = 1;\n});\n"],"mappings":";;;AAIA,YAAY,QAAQ,KAAK,MAAM,CAAC,GAAG,QAAQ,GAAG,CAAC,CAAC,OAAO,UAAU;CAChE,QAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;CACpE,QAAQ,WAAW;AACpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { runServePackageCli } from "@zusehq/server/serve-cli";
|
|
2
|
+
//#region package.json
|
|
3
|
+
var version = "0.1.0";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/cli.ts
|
|
6
|
+
const runServeCli = (argv, env = process.env) => runServePackageCli(argv, env, { packageVersion: version });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { runServeCli as t };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=cli-CCiJBEaa.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-CCiJBEaa.mjs","names":["packageMetadata.version"],"sources":["../package.json","../src/cli.ts"],"sourcesContent":["","import { runServePackageCli } from \"@zusehq/server/serve-cli\";\nimport packageMetadata from \"../package.json\" with { type: \"json\" };\nimport type { ServeCli } from \"./cli-types.ts\";\n\nexport const runServeCli: ServeCli = (argv, env = process.env): Promise<void> =>\n\trunServePackageCli(argv, env, {\n\t\tpackageVersion: packageMetadata.version,\n\t});\n"],"mappings":";;;;;ACIA,MAAa,eAAyB,MAAM,MAAM,QAAQ,QACzD,mBAAmB,MAAM,KAAK,EAC7B,gBAAgBA,QACjB,CAAC"}
|
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/cli-types.d.ts
|
|
2
|
+
type ServeCli = (argv: ReadonlyArray<string>, env?: NodeJS.ProcessEnv) => Promise<void>;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/cli.d.ts
|
|
5
|
+
declare const runServeCli: ServeCli;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { runServeCli };
|
|
8
|
+
//# sourceMappingURL=cli.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.mts","names":[],"sources":["../src/cli-types.ts","../src/cli.ts"],"mappings":";KAAY,YACX,MAAM,uBACN,MAAM,OAAO,eACT;;;cCCQ,aAAa"}
|
package/dist/cli.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zusehq/serve",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "One-command remote access for Zuse workspaces",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"zuse": "dist/bin.mjs"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=22.5.0"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
"./cli": {
|
|
18
|
+
"types": "./src/cli-types.ts",
|
|
19
|
+
"import": "./dist/cli.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"src/cli-types.ts"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "vp pack src/bin.ts src/cli.ts",
|
|
28
|
+
"check-types": "tsc --noEmit"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@zusehq/server": "0.1.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@repo/typescript-config": "*",
|
|
35
|
+
"@types/node": "catalog:",
|
|
36
|
+
"tsdown": "0.21.10",
|
|
37
|
+
"typescript": "catalog:",
|
|
38
|
+
"vite-plus": "0.2.5"
|
|
39
|
+
}
|
|
40
|
+
}
|