@coreframe/dev 0.1.19 → 0.1.21
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/supervisor.d.ts +4 -1
- package/dist/supervisor.js +1 -1
- package/package.json +5 -5
package/dist/supervisor.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { DevSupervisorResource } from "@coreframe/dev-supervisor";
|
|
1
2
|
export * from "@coreframe/dev-supervisor";
|
|
2
3
|
|
|
3
4
|
//#region src/supervisor.d.ts
|
|
4
5
|
/** Starts or connects to the managed development supervisor for a Coreframe project directory. */
|
|
5
6
|
declare function connectDevSupervisor({
|
|
6
7
|
cwd,
|
|
7
|
-
env
|
|
8
|
+
env,
|
|
9
|
+
requiredResources
|
|
8
10
|
}?: {
|
|
9
11
|
cwd?: string;
|
|
10
12
|
env?: NodeJS.ProcessEnv;
|
|
13
|
+
requiredResources?: DevSupervisorResource[];
|
|
11
14
|
}): Promise<import("@coreframe/dev-supervisor").DevSupervisorClient>;
|
|
12
15
|
/** Runs the detached supervisor with database and managed-development services enabled. */
|
|
13
16
|
declare function runDevSupervisorProcess({
|
package/dist/supervisor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{startManagedDevSession as e}from"./managed-dev.js";import{access as t}from"node:fs/promises";import{fileURLToPath as n}from"node:url";import{readProjectConfig as r}from"@coreframe/config";import{startProjectPostgres as i,startProjectTurso as a}from"@coreframe/db";import{connectDevSupervisor as o,runDevSupervisorProcess as s}from"@coreframe/dev-supervisor";export*from"@coreframe/dev-supervisor";async function c({cwd:e=process.cwd(),env:t=process.env}={}){return o({cwd:e,env:t,supervisorEntry:await u()})}function l({cwd:t=process.cwd()}={}){return s({cwd:t,startManagedDev:async({cwd:t,env:n,onFlutterRestart:i,onRestart:a,onStatusChange:o})=>e({config:await r({cwd:t}),cwd:t,env:{...n,COREFRAME_MANAGED_DEV:`1`,COREFRAME_PLATFORM:`web`},onFlutterRestart:i,onRestart:a,onStatusChange:o}),startPostgres:i,startSqlite:a})}async function u(){let e=n(new URL(`./dev-supervisor-process.js`,import.meta.url));try{return await t(e),e}catch{return n(new URL(`./dev-supervisor-process.ts`,import.meta.url))}}export{c as connectDevSupervisor,l as runDevSupervisorProcess};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{startManagedDevSession as e}from"./managed-dev.js";import{access as t}from"node:fs/promises";import{fileURLToPath as n}from"node:url";import{readProjectConfig as r}from"@coreframe/config";import{startProjectPostgres as i,startProjectTurso as a}from"@coreframe/db";import{connectDevSupervisor as o,runDevSupervisorProcess as s}from"@coreframe/dev-supervisor";export*from"@coreframe/dev-supervisor";async function c({cwd:e=process.cwd(),env:t=process.env,requiredResources:n=[]}={}){return o({cwd:e,env:t,requiredResources:n,supervisorEntry:await u()})}function l({cwd:t=process.cwd()}={}){return s({cwd:t,startManagedDev:async({cwd:t,env:n,onFlutterRestart:i,onRestart:a,onStatusChange:o})=>e({config:await r({cwd:t}),cwd:t,env:{...n,COREFRAME_MANAGED_DEV:`1`,COREFRAME_PLATFORM:`web`},onFlutterRestart:i,onRestart:a,onStatusChange:o}),startPostgres:i,startSqlite:a})}async function u(){let e=n(new URL(`./dev-supervisor-process.js`,import.meta.url));try{return await t(e),e}catch{return n(new URL(`./dev-supervisor-process.ts`,import.meta.url))}}export{c as connectDevSupervisor,l as runDevSupervisorProcess};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreframe/dev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Development workflow utilities for Coreframe apps",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"import-meta-resolve": "^4.2.0",
|
|
38
38
|
"nano-spawn": "^2.1.0",
|
|
39
|
-
"@coreframe/db": "^0.1.
|
|
40
|
-
"@coreframe/
|
|
41
|
-
"@coreframe/dev-
|
|
42
|
-
"@coreframe/
|
|
39
|
+
"@coreframe/db": "^0.1.18",
|
|
40
|
+
"@coreframe/config": "^0.1.13",
|
|
41
|
+
"@coreframe/dev-contracts": "^0.1.9",
|
|
42
|
+
"@coreframe/dev-supervisor": "^0.1.16"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^26.1.0",
|