@powerlines/plugin-nodejs 0.1.83 → 0.1.85

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, {
@@ -28,9 +28,6 @@ type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
28
28
  /**
29
29
  * Should the plugin inject the env variables in the source code with their values?
30
30
  *
31
- * @remarks
32
- * This option is set to `true` when building an application project.
33
- *
34
31
  * @defaultValue false
35
32
  */
36
33
  inject?: boolean;
@@ -28,9 +28,6 @@ type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
28
28
  /**
29
29
  * Should the plugin inject the env variables in the source code with their values?
30
30
  *
31
- * @remarks
32
- * This option is set to `true` when building an application project.
33
- *
34
31
  * @defaultValue false
35
32
  */
36
33
  inject?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-nodejs",
3
- "version": "0.1.83",
3
+ "version": "0.1.85",
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.84",
137
- "@powerlines/plugin-babel": "^0.12.204",
138
- "@powerlines/plugin-env": "^0.15.88",
136
+ "@powerlines/plugin-alloy": "^0.18.86",
137
+ "@powerlines/plugin-babel": "^0.12.206",
138
+ "@powerlines/plugin-env": "^0.15.90",
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.69"
142
+ "powerlines": "^0.37.71"
143
143
  },
144
144
  "devDependencies": {
145
145
  "@babel/core": "^7.28.6",
146
- "@powerlines/plugin-plugin": "^0.12.147",
146
+ "@powerlines/plugin-plugin": "^0.12.149",
147
147
  "@types/node": "^24.10.9"
148
148
  },
149
149
  "publishConfig": { "access": "public" },
150
- "gitHead": "c6ab1b67c80e8d892d309b98867d42e434eea627"
150
+ "gitHead": "6fd6de6c956acc53f73c34d8b19827d094e604af"
151
151
  }