@powerhousedao/config 6.2.3-dev.9 → 6.2.3
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 +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_CONFIG, DEFAULT_REGISTRY_URL } from "@powerhousedao/shared/clis";
|
|
2
2
|
import { DocumentModelModule, Manifest, PHPackageProvider, PowerhouseConfig, PowerhouseModule, PowerhousePackage, Publisher } from "@powerhousedao/shared";
|
|
3
|
-
|
|
4
3
|
//#region src/powerhouse.d.ts
|
|
5
|
-
declare const LogLevels: {
|
|
4
|
+
export declare const LogLevels: {
|
|
6
5
|
readonly verbose: 1;
|
|
7
6
|
readonly debug: 2;
|
|
8
7
|
readonly info: 3;
|
|
@@ -10,21 +9,22 @@ declare const LogLevels: {
|
|
|
10
9
|
readonly error: 5;
|
|
11
10
|
readonly silent: 6;
|
|
12
11
|
};
|
|
13
|
-
type LogLevel = keyof typeof LogLevels;
|
|
14
|
-
declare function isLogLevel(value: unknown): value is LogLevel;
|
|
15
|
-
type VetraProcessorConfigType = {
|
|
12
|
+
export type LogLevel = keyof typeof LogLevels;
|
|
13
|
+
export declare function isLogLevel(value: unknown): value is LogLevel;
|
|
14
|
+
export type VetraProcessorConfigType = {
|
|
16
15
|
interactive?: boolean;
|
|
17
16
|
driveUrl: string;
|
|
18
17
|
driveId: string;
|
|
19
18
|
};
|
|
20
|
-
declare function resolveRegistryConfig(config: PowerhouseConfig, env?: Record<string, string | undefined>): {
|
|
19
|
+
export declare function resolveRegistryConfig(config: PowerhouseConfig, env?: Record<string, string | undefined>): {
|
|
21
20
|
registryUrl: string | undefined;
|
|
22
21
|
packageNames: string[];
|
|
23
22
|
};
|
|
24
|
-
declare const VETRA_PROCESSOR_CONFIG_KEY = "VetraConfig";
|
|
23
|
+
export declare const VETRA_PROCESSOR_CONFIG_KEY = "VetraConfig";
|
|
25
24
|
//#endregion
|
|
26
25
|
//#region src/packages.d.ts
|
|
27
|
-
declare const PH_PACKAGES: PowerhousePackage[];
|
|
26
|
+
export declare const PH_PACKAGES: PowerhousePackage[];
|
|
28
27
|
//#endregion
|
|
29
|
-
export { DEFAULT_CONFIG, DEFAULT_REGISTRY_URL, type DocumentModelModule,
|
|
28
|
+
export { DEFAULT_CONFIG, DEFAULT_REGISTRY_URL, type DocumentModelModule, type Manifest, type PHPackageProvider, type PowerhouseConfig, type PowerhouseModule, type PowerhousePackage, type Publisher };
|
|
29
|
+
export {};
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/powerhouse.ts","../src/packages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/powerhouse.ts","../src/packages.ts"],"mappings":";;;qBAAa;WACX;WACA;WACA;WACA;WACA;WACA;;YAGU,wBAAwB;wBAEpB,WAAW,iBAAiB,SAAS;YAsBzC;EACV;EACA;EACA;;wBAGc,sBACd,QAAQ,kBACR,MAAK;EAEL;EACA;;qBAmBW;;;qBC7DA,aAAa"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/packages.ts","../src/powerhouse.ts"],"sourcesContent":["import type { PowerhousePackage } from \"./powerhouse.js\";\n\nexport const PH_PACKAGES: PowerhousePackage[] = [\n {\n packageName: \"@sky-ph/atlas\",\n version: \"latest\",\n provider: \"npm\",\n url: \"https://www.npmjs.com/package/@sky-ph/atlas\",\n },\n];\n","export const LogLevels = {\n verbose: 1,\n debug: 2,\n info: 3,\n warn: 4,\n error: 5,\n silent: 6,\n} as const;\n\nexport type LogLevel = keyof typeof LogLevels;\n\nexport function isLogLevel(value: unknown): value is LogLevel {\n return typeof value === \"string\" && value in LogLevels;\n}\nimport type { PowerhouseConfig } from \"@powerhousedao/shared\";\nexport type {\n PHPackageProvider,\n PowerhousePackage,\n} from \"@powerhousedao/shared\";\nexport type { PowerhouseConfig };\n\nexport {\n DEFAULT_CONFIG,\n DEFAULT_REGISTRY_URL,\n} from \"@powerhousedao/shared/clis\";\n\nexport type {\n DocumentModelModule,\n Manifest,\n PowerhouseModule,\n Publisher,\n} from \"@powerhousedao/shared\";\n\nexport type VetraProcessorConfigType = {\n interactive?: boolean;\n driveUrl: string;\n driveId: string;\n};\n\nexport function resolveRegistryConfig(\n config: PowerhouseConfig,\n env: Record<string, string | undefined> = {},\n): {\n registryUrl: string | undefined;\n packageNames: string[];\n} {\n let registryUrl = config.packageRegistryUrl;\n let packageNames =\n config.packages\n ?.filter((p) => p.provider === \"registry\")\n .map((p) => p.packageName) ?? [];\n\n // Env vars override config\n if (env.PH_REGISTRY_URL) {\n registryUrl = env.PH_REGISTRY_URL;\n }\n if (env.PH_REGISTRY_PACKAGES) {\n packageNames = env.PH_REGISTRY_PACKAGES.split(\",\").map((p) => p.trim());\n }\n\n return { registryUrl, packageNames };\n}\n\nexport const VETRA_PROCESSOR_CONFIG_KEY = \"VetraConfig\";\n"],"mappings":";;AAEA,MAAa,cAAmC,CAC9C;CACE,aAAa;CACb,SAAS;CACT,UAAU;CACV,KAAK;
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/packages.ts","../src/powerhouse.ts"],"sourcesContent":["import type { PowerhousePackage } from \"./powerhouse.js\";\n\nexport const PH_PACKAGES: PowerhousePackage[] = [\n {\n packageName: \"@sky-ph/atlas\",\n version: \"latest\",\n provider: \"npm\",\n url: \"https://www.npmjs.com/package/@sky-ph/atlas\",\n },\n];\n","export const LogLevels = {\n verbose: 1,\n debug: 2,\n info: 3,\n warn: 4,\n error: 5,\n silent: 6,\n} as const;\n\nexport type LogLevel = keyof typeof LogLevels;\n\nexport function isLogLevel(value: unknown): value is LogLevel {\n return typeof value === \"string\" && value in LogLevels;\n}\nimport type { PowerhouseConfig } from \"@powerhousedao/shared\";\nexport type {\n PHPackageProvider,\n PowerhousePackage,\n} from \"@powerhousedao/shared\";\nexport type { PowerhouseConfig };\n\nexport {\n DEFAULT_CONFIG,\n DEFAULT_REGISTRY_URL,\n} from \"@powerhousedao/shared/clis\";\n\nexport type {\n DocumentModelModule,\n Manifest,\n PowerhouseModule,\n Publisher,\n} from \"@powerhousedao/shared\";\n\nexport type VetraProcessorConfigType = {\n interactive?: boolean;\n driveUrl: string;\n driveId: string;\n};\n\nexport function resolveRegistryConfig(\n config: PowerhouseConfig,\n env: Record<string, string | undefined> = {},\n): {\n registryUrl: string | undefined;\n packageNames: string[];\n} {\n let registryUrl = config.packageRegistryUrl;\n let packageNames =\n config.packages\n ?.filter((p) => p.provider === \"registry\")\n .map((p) => p.packageName) ?? [];\n\n // Env vars override config\n if (env.PH_REGISTRY_URL) {\n registryUrl = env.PH_REGISTRY_URL;\n }\n if (env.PH_REGISTRY_PACKAGES) {\n packageNames = env.PH_REGISTRY_PACKAGES.split(\",\").map((p) => p.trim());\n }\n\n return { registryUrl, packageNames };\n}\n\nexport const VETRA_PROCESSOR_CONFIG_KEY = \"VetraConfig\";\n"],"mappings":";;AAEA,MAAa,cAAmC,CAC9C;CACE,aAAa;CACb,SAAS;CACT,UAAU;CACV,KAAK;AACP,CACF;;;ACTA,MAAa,YAAY;CACvB,SAAS;CACT,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,QAAQ;AACV;AAIA,SAAgB,WAAW,OAAmC;CAC5D,OAAO,OAAO,UAAU,YAAY,SAAS;AAC/C;AA0BA,SAAgB,sBACd,QACA,MAA0C,CAAC,GAI3C;CACA,IAAI,cAAc,OAAO;CACzB,IAAI,eACF,OAAO,UACH,QAAQ,MAAM,EAAE,aAAa,UAAU,CAAC,CACzC,KAAK,MAAM,EAAE,WAAW,KAAK,CAAC;CAGnC,IAAI,IAAI,iBACN,cAAc,IAAI;CAEpB,IAAI,IAAI,sBACN,eAAe,IAAI,qBAAqB,MAAM,GAAG,CAAC,CAAC,KAAK,MAAM,EAAE,KAAK,CAAC;CAGxE,OAAO;EAAE;EAAa;CAAa;AACrC;AAEA,MAAa,6BAA6B"}
|
package/dist/node.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PowerhouseConfig, getConfig } from "@powerhousedao/shared/clis";
|
|
2
|
-
|
|
3
2
|
//#region src/node.d.ts
|
|
4
|
-
declare function writeConfig(config: PowerhouseConfig, path?: string): void;
|
|
3
|
+
export declare function writeConfig(config: PowerhouseConfig, path?: string): void;
|
|
5
4
|
//#endregion
|
|
6
|
-
export { getConfig
|
|
5
|
+
export { getConfig };
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","names":[],"sources":["../src/node.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","names":[],"sources":["../src/node.ts"],"mappings":";;wBAIgB,YACd,QAAQ,kBACR"}
|
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","names":[],"sources":["../src/node.ts"],"sourcesContent":["import { type PowerhouseConfig } from \"@powerhousedao/shared/clis\";\nimport { writeFileSync } from \"node:fs\";\nexport { getConfig } from \"@powerhousedao/shared/clis\";\n\nexport function writeConfig(\n config: PowerhouseConfig,\n path = \"./powerhouse.config.json\",\n) {\n writeFileSync(path, JSON.stringify(config, null, 4));\n}\n"],"mappings":";;;AAIA,SAAgB,YACd,QACA,OAAO,4BACP;
|
|
1
|
+
{"version":3,"file":"node.js","names":[],"sources":["../src/node.ts"],"sourcesContent":["import { type PowerhouseConfig } from \"@powerhousedao/shared/clis\";\nimport { writeFileSync } from \"node:fs\";\nexport { getConfig } from \"@powerhousedao/shared/clis\";\n\nexport function writeConfig(\n config: PowerhouseConfig,\n path = \"./powerhouse.config.json\",\n) {\n writeFileSync(path, JSON.stringify(config, null, 4));\n}\n"],"mappings":";;;AAIA,SAAgB,YACd,QACA,OAAO,4BACP;CACA,cAAc,MAAM,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC;AACrD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/config",
|
|
3
|
-
"version": "6.2.3
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"private": false,
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@powerhousedao/shared": "6.2.3
|
|
33
|
+
"@powerhousedao/shared": "6.2.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"tsdown": "0.
|
|
36
|
+
"tsdown": "0.23.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsdown",
|
|
40
40
|
"tsc": "tsc",
|
|
41
|
-
"lint": "
|
|
41
|
+
"lint": "cd ../.. && oxlint packages/config"
|
|
42
42
|
}
|
|
43
43
|
}
|