@powerhousedao/config 1.7.0 → 1.9.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/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 1.9.0 (2025-01-21)
2
+
3
+ ### 🚀 Features
4
+
5
+ - update install command ([#881](https://github.com/powerhouse-inc/powerhouse/pull/881))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Guillermo Puente Sandoval @gpuente
10
+
11
+ ## 1.8.0 (2025-01-21)
12
+
13
+ ### 🚀 Features
14
+
15
+ - split ph-cmd ([#876](https://github.com/powerhouse-inc/powerhouse/pull/876))
16
+
17
+ ### ❤️ Thank You
18
+
19
+ - Guillermo Puente Sandoval @gpuente
20
+
1
21
  ## 1.7.0 (2025-01-17)
2
22
 
3
23
  ### 🚀 Features
@@ -225,9 +225,15 @@ export declare type PowerhouseConfig = {
225
225
  interactive?: boolean;
226
226
  skipFormat?: boolean;
227
227
  watch?: boolean;
228
- projects?: {
228
+ reactor?: {
229
+ port?: number;
230
+ };
231
+ studio?: {
232
+ port?: number;
233
+ openBrowser?: boolean;
234
+ };
235
+ packages?: {
229
236
  packageName: string;
230
- global: boolean;
231
237
  }[];
232
238
  };
233
239
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/powerhouse.ts"],"names":[],"mappings":";;AAgBA,MAAM,2BAA8B,GAAA,mBAAA;AACpC,MAAM,mBAAsB,GAAA,WAAA;AAC5B,MAAM,sBAAyB,GAAA,cAAA;AAC/B,MAAM,qBAAwB,GAAA,aAAA;AAEvB,MAAM,cAAmC,GAAA;AAAA,EAC9C,iBAAmB,EAAA,2BAAA;AAAA,EACnB,UAAY,EAAA,mBAAA;AAAA,EACZ,aAAe,EAAA,sBAAA;AAAA,EACf,YAAc,EAAA,qBAAA;AAAA,EACd,UAAY,EAAA;AACd;AAEO,SAAS,SAAY,GAAA;AAC1B,EAAI,IAAA,MAAA,GAA2B,EAAE,GAAG,cAAe,EAAA;AACnD,EAAI,IAAA;AACF,IAAM,MAAA,SAAA,GAAY,YAAa,CAAA,0BAAA,EAA4B,OAAO,CAAA;AAClE,IAAM,MAAA,UAAA,GAAa,IAAK,CAAA,KAAA,CAAM,SAAS,CAAA;AACvC,IAAA,MAAA,GAAS,EAAE,GAAG,MAAQ,EAAA,GAAG,UAAW,EAAA;AAAA,GAC9B,CAAA,MAAA;AACN,IAAA,OAAA,CAAQ,KAAK,iDAAiD,CAAA;AAAA;AAEhE,EAAO,OAAA,MAAA;AACT;AAEO,SAAS,YAAY,MAA0B,EAAA;AACpD,EAAA,aAAA,CAAc,4BAA4B,IAAK,CAAA,SAAA,CAAU,MAAQ,EAAA,IAAA,EAAM,CAAC,CAAC,CAAA;AAC3E","file":"powerhouse.js","sourcesContent":["import { readFileSync, writeFileSync } from \"node:fs\";\n\nexport type PowerhouseConfig = {\n documentModelsDir: string;\n editorsDir: string;\n processorsDir: string;\n subgraphsDir: string;\n interactive?: boolean;\n skipFormat?: boolean;\n watch?: boolean;\n projects?: {\n packageName: string;\n global: boolean;\n }[];\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n skipFormat: false,\n};\n\nexport function getConfig() {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(\"./powerhouse.config.json\", \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n return config;\n}\n\nexport function writeConfig(config: PowerhouseConfig) {\n writeFileSync(\"./powerhouse.config.json\", JSON.stringify(config, null, 4));\n}\n"]}
1
+ {"version":3,"sources":["../src/powerhouse.ts"],"names":[],"mappings":";;AAsBA,MAAM,2BAA8B,GAAA,mBAAA;AACpC,MAAM,mBAAsB,GAAA,WAAA;AAC5B,MAAM,sBAAyB,GAAA,cAAA;AAC/B,MAAM,qBAAwB,GAAA,aAAA;AAEvB,MAAM,cAAmC,GAAA;AAAA,EAC9C,iBAAmB,EAAA,2BAAA;AAAA,EACnB,UAAY,EAAA,mBAAA;AAAA,EACZ,aAAe,EAAA,sBAAA;AAAA,EACf,YAAc,EAAA,qBAAA;AAAA,EACd,UAAY,EAAA;AACd;AAEO,SAAS,SAAY,GAAA;AAC1B,EAAI,IAAA,MAAA,GAA2B,EAAE,GAAG,cAAe,EAAA;AACnD,EAAI,IAAA;AACF,IAAM,MAAA,SAAA,GAAY,YAAa,CAAA,0BAAA,EAA4B,OAAO,CAAA;AAClE,IAAM,MAAA,UAAA,GAAa,IAAK,CAAA,KAAA,CAAM,SAAS,CAAA;AACvC,IAAA,MAAA,GAAS,EAAE,GAAG,MAAQ,EAAA,GAAG,UAAW,EAAA;AAAA,GAC9B,CAAA,MAAA;AACN,IAAA,OAAA,CAAQ,KAAK,iDAAiD,CAAA;AAAA;AAEhE,EAAO,OAAA,MAAA;AACT;AAEO,SAAS,YAAY,MAA0B,EAAA;AACpD,EAAA,aAAA,CAAc,4BAA4B,IAAK,CAAA,SAAA,CAAU,MAAQ,EAAA,IAAA,EAAM,CAAC,CAAC,CAAA;AAC3E","file":"powerhouse.js","sourcesContent":["import { readFileSync, writeFileSync } from \"node:fs\";\n\nexport type PowerhouseConfig = {\n documentModelsDir: string;\n editorsDir: string;\n processorsDir: string;\n subgraphsDir: string;\n interactive?: boolean;\n skipFormat?: boolean;\n watch?: boolean;\n reactor?: {\n port?: number;\n };\n studio?: {\n port?: number;\n openBrowser?: boolean;\n };\n packages?: {\n packageName: string;\n }[];\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n skipFormat: false,\n};\n\nexport function getConfig() {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(\"./powerhouse.config.json\", \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n return config;\n}\n\nexport function writeConfig(config: PowerhouseConfig) {\n writeFileSync(\"./powerhouse.config.json\", JSON.stringify(config, null, 4));\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/config",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0-only",
6
6
  "private": false,
package/src/powerhouse.ts CHANGED
@@ -8,9 +8,15 @@ export type PowerhouseConfig = {
8
8
  interactive?: boolean;
9
9
  skipFormat?: boolean;
10
10
  watch?: boolean;
11
- projects?: {
11
+ reactor?: {
12
+ port?: number;
13
+ };
14
+ studio?: {
15
+ port?: number;
16
+ openBrowser?: boolean;
17
+ };
18
+ packages?: {
12
19
  packageName: string;
13
- global: boolean;
14
20
  }[];
15
21
  };
16
22