@powerlines/plugin-nodejs 0.1.84 → 0.1.86

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.
@@ -91,13 +91,11 @@ function NodeJsEnvBuiltin(props) {
91
91
  (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
92
92
  heading: "The resolved application directories based on the current operating system and environment variables.",
93
93
  get children() {
94
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `These paths are determined based on the conventions for each operating system, with overrides available through specific environment variables:
95
- - On macOS, directories are generally created in \`~/Library/Application Support/<name>\`.
96
- - On Windows, directories are generally created in \`%AppData%/<name>\`.
97
- - On Linux, directories are generally created in \`~/.config/<name>\` - this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/).
98
-
99
- If the \`DATA_DIR\`, \`CONFIG_DIR\`, \`CACHE_DIR\`, \`LOG_DIR\`, or \`TEMP_DIR\` environment variables are set, they will be used instead of the default paths.
100
- ` });
94
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: __alloy_js_core.code`If the \`DATA_DIR\`, \`CONFIG_DIR\`, \`CACHE_DIR\`, \`LOG_DIR\`, or \`TEMP_DIR\` environment variables are set, they will be treated as overrides and used by default. If the environment variables are not set, the paths are determined based on the specific conventions for each operating system (with additional overrides available through operating system specific environment variables):
95
+ - **Linux**: directories are generally created in \`~/.config/<name>\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))
96
+ - **Windows**: directories are generally created in \`%AppData%/<name>\`
97
+ - **MacOS**: directories are generally created in \`~/Library/Application Support/<name>\`
98
+ ` });
101
99
  }
102
100
  }),
103
101
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
@@ -89,13 +89,11 @@ function NodeJsEnvBuiltin(props) {
89
89
  createComponent(TSDoc, {
90
90
  heading: "The resolved application directories based on the current operating system and environment variables.",
91
91
  get children() {
92
- return createComponent(TSDocRemarks, { children: `These paths are determined based on the conventions for each operating system, with overrides available through specific environment variables:
93
- - On macOS, directories are generally created in \`~/Library/Application Support/<name>\`.
94
- - On Windows, directories are generally created in \`%AppData%/<name>\`.
95
- - On Linux, directories are generally created in \`~/.config/<name>\` - this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/).
96
-
97
- If the \`DATA_DIR\`, \`CONFIG_DIR\`, \`CACHE_DIR\`, \`LOG_DIR\`, or \`TEMP_DIR\` environment variables are set, they will be used instead of the default paths.
98
- ` });
92
+ return createComponent(TSDocRemarks, { children: code`If the \`DATA_DIR\`, \`CONFIG_DIR\`, \`CACHE_DIR\`, \`LOG_DIR\`, or \`TEMP_DIR\` environment variables are set, they will be treated as overrides and used by default. If the environment variables are not set, the paths are determined based on the specific conventions for each operating system (with additional overrides available through operating system specific environment variables):
93
+ - **Linux**: directories are generally created in \`~/.config/<name>\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))
94
+ - **Windows**: directories are generally created in \`%AppData%/<name>\`
95
+ - **MacOS**: directories are generally created in \`~/Library/Application Support/<name>\`
96
+ ` });
99
97
  }
100
98
  }),
101
99
  createComponent(VarDeclaration, {
@@ -102,15 +102,6 @@ interface OutputConfig {
102
102
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
103
103
  */
104
104
  dts?: string | false;
105
- /**
106
- * A prefix to use for identifying builtin modules
107
- *
108
- * @remarks
109
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
110
- *
111
- * @defaultValue "powerlines"
112
- */
113
- builtinPrefix?: string;
114
105
  /**
115
106
  * The module format of the output files
116
107
  *
@@ -346,7 +337,7 @@ interface CommonUserConfig extends BaseConfig {
346
337
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
347
338
  *
348
339
  * @remarks
349
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
340
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
350
341
  *
351
342
  * @defaultValue "powerlines"
352
343
  */
@@ -102,15 +102,6 @@ interface OutputConfig {
102
102
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
103
103
  */
104
104
  dts?: string | false;
105
- /**
106
- * A prefix to use for identifying builtin modules
107
- *
108
- * @remarks
109
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
110
- *
111
- * @defaultValue "powerlines"
112
- */
113
- builtinPrefix?: string;
114
105
  /**
115
106
  * The module format of the output files
116
107
  *
@@ -346,7 +337,7 @@ interface CommonUserConfig extends BaseConfig {
346
337
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
347
338
  *
348
339
  * @remarks
349
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
340
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
350
341
  *
351
342
  * @defaultValue "powerlines"
352
343
  */
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-nodejs",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a Node.js application.",
6
6
  "repository": {
@@ -133,19 +133,19 @@
133
133
  "dependencies": {
134
134
  "@alloy-js/core": "^0.22.0",
135
135
  "@alloy-js/typescript": "^0.22.0",
136
- "@powerlines/plugin-alloy": "^0.18.85",
137
- "@powerlines/plugin-babel": "^0.12.205",
138
- "@powerlines/plugin-env": "^0.15.89",
136
+ "@powerlines/plugin-alloy": "^0.18.87",
137
+ "@powerlines/plugin-babel": "^0.12.207",
138
+ "@powerlines/plugin-env": "^0.15.91",
139
139
  "@storm-software/config-tools": "^1.188.80",
140
140
  "@stryke/string-format": "^0.13.4",
141
141
  "defu": "^6.1.4",
142
- "powerlines": "^0.37.70"
142
+ "powerlines": "^0.37.72"
143
143
  },
144
144
  "devDependencies": {
145
145
  "@babel/core": "^7.28.6",
146
- "@powerlines/plugin-plugin": "^0.12.148",
146
+ "@powerlines/plugin-plugin": "^0.12.150",
147
147
  "@types/node": "^24.10.9"
148
148
  },
149
149
  "publishConfig": { "access": "public" },
150
- "gitHead": "49824cd670e66c1adee0b6da4008c3d8aed5a8a4"
150
+ "gitHead": "458556ca7def9536d1c1fbd770e005a004d0a513"
151
151
  }