@powerlines/plugin-nodejs 0.1.6 → 0.1.8
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.
|
@@ -19,7 +19,9 @@ let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty
|
|
|
19
19
|
* @returns The runtime type definition file for the environment variables.
|
|
20
20
|
*/
|
|
21
21
|
async function resolveRuntimeTypeFile(context) {
|
|
22
|
-
|
|
22
|
+
const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
|
|
23
|
+
if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
|
|
24
|
+
return resolved;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Gets the default type definition for the environment variables.
|
|
@@ -17,7 +17,9 @@ import { isEmptyObject } from "@stryke/type-checks/is-empty-object";
|
|
|
17
17
|
* @returns The runtime type definition file for the environment variables.
|
|
18
18
|
*/
|
|
19
19
|
async function resolveRuntimeTypeFile(context) {
|
|
20
|
-
|
|
20
|
+
const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
|
|
21
|
+
if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
|
|
22
|
+
return resolved;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Gets the default type definition for the environment variables.
|
|
@@ -78,7 +78,7 @@ async function reflectEnv(context, file, name) {
|
|
|
78
78
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
79
79
|
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
80
80
|
name
|
|
81
|
-
}
|
|
81
|
+
}));
|
|
82
82
|
const defaultConfigType = await require_reflect_type.reflectType(context, await require_persistence.getEnvDefaultTypeDefinition(context));
|
|
83
83
|
return mergeEnvReflections(context, [
|
|
84
84
|
await require_persistence.readEnvTypeReflection(context, "env"),
|
|
@@ -91,7 +91,7 @@ async function reflectSecrets(context, file, name) {
|
|
|
91
91
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
92
92
|
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
93
93
|
name
|
|
94
|
-
}
|
|
94
|
+
}));
|
|
95
95
|
const defaultSecretsType = await require_reflect_type.reflectType(context, await require_persistence.getSecretsDefaultTypeDefinition(context));
|
|
96
96
|
return mergeSecretsReflections(context, [
|
|
97
97
|
await require_persistence.readSecretsReflection(context),
|
|
@@ -77,7 +77,7 @@ async function reflectEnv(context, file, name) {
|
|
|
77
77
|
if (file) config = resolveClassType(await reflectType(context, {
|
|
78
78
|
file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
|
|
79
79
|
name
|
|
80
|
-
}
|
|
80
|
+
}));
|
|
81
81
|
const defaultConfigType = await reflectType(context, await getEnvDefaultTypeDefinition(context));
|
|
82
82
|
return mergeEnvReflections(context, [
|
|
83
83
|
await readEnvTypeReflection(context, "env"),
|
|
@@ -90,7 +90,7 @@ async function reflectSecrets(context, file, name) {
|
|
|
90
90
|
if (file) config = resolveClassType(await reflectType(context, {
|
|
91
91
|
file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
|
|
92
92
|
name
|
|
93
|
-
}
|
|
93
|
+
}));
|
|
94
94
|
const defaultSecretsType = await reflectType(context, await getSecretsDefaultTypeDefinition(context));
|
|
95
95
|
return mergeSecretsReflections(context, [
|
|
96
96
|
await readSecretsReflection(context),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nodejs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a Node.js application.",
|
|
6
6
|
"repository": {
|
|
@@ -135,15 +135,15 @@
|
|
|
135
135
|
"@alloy-js/json": "^0.22.0",
|
|
136
136
|
"@alloy-js/markdown": "^0.22.0",
|
|
137
137
|
"@alloy-js/typescript": "^0.22.0",
|
|
138
|
-
"@powerlines/plugin-alloy": "^0.18.
|
|
139
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
140
|
-
"@powerlines/plugin-env": "^0.15.
|
|
138
|
+
"@powerlines/plugin-alloy": "^0.18.10",
|
|
139
|
+
"@powerlines/plugin-babel": "^0.12.137",
|
|
140
|
+
"@powerlines/plugin-env": "^0.15.13",
|
|
141
141
|
"@storm-software/config-tools": "^1.188.75",
|
|
142
142
|
"@stryke/string-format": "^0.12.30",
|
|
143
143
|
"defu": "^6.1.4",
|
|
144
|
-
"powerlines": "^0.37.
|
|
144
|
+
"powerlines": "^0.37.2"
|
|
145
145
|
},
|
|
146
146
|
"devDependencies": { "@babel/core": "^7.28.5", "@types/node": "^24.10.4" },
|
|
147
147
|
"publishConfig": { "access": "public" },
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "5a9bfc9333eca98a453682f39a04a0d642930a50"
|
|
149
149
|
}
|