@powerlines/plugin-nodejs 0.1.232 → 0.1.238

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.
@@ -5,20 +5,20 @@ let __alloy_js_typescript = require("@alloy-js/typescript");
5
5
  let __powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
6
6
  let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
7
7
  let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
8
- let __powerlines_plugin_env_components_env = require("@powerlines/plugin-env/components/env");
8
+ let __powerlines_plugin_env_components_env_builtin = require("@powerlines/plugin-env/components/env-builtin");
9
9
  let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
10
10
  let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
11
11
  let defu = require("defu");
12
12
  defu = require_rolldown_runtime.__toESM(defu);
13
13
 
14
- //#region src/components/env.tsx
14
+ //#region src/components/env-builtin.tsx
15
15
  /**
16
16
  * Generates the NodeJs environment configuration module for the Powerlines project.
17
17
  */
18
18
  function NodeJsEnvBuiltin(props) {
19
19
  const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
20
20
  const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
21
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_env_components_env.EnvBuiltin, (0, __alloy_js_core_jsx_runtime.mergeProps)({ defaultConfig: __alloy_js_core.code`process.env` }, rest, {
21
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_env_components_env_builtin.EnvBuiltin, (0, __alloy_js_core_jsx_runtime.mergeProps)({ defaultConfig: __alloy_js_core.code`process.env` }, rest, {
22
22
  get imports() {
23
23
  return (0, defu.default)({
24
24
  "node:os": "os",
@@ -1,11 +1,11 @@
1
1
  import * as _alloy_js_core0 from "@alloy-js/core";
2
- import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env";
2
+ import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env-builtin";
3
3
 
4
- //#region src/components/env.d.ts
4
+ //#region src/components/env-builtin.d.ts
5
5
  /**
6
6
  * Generates the NodeJs environment configuration module for the Powerlines project.
7
7
  */
8
8
  declare function NodeJsEnvBuiltin(props: EnvBuiltinProps): _alloy_js_core0.Children;
9
9
  //#endregion
10
10
  export { NodeJsEnvBuiltin };
11
- //# sourceMappingURL=env.d.cts.map
11
+ //# sourceMappingURL=env-builtin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAsCgB,iBAAA,gBAAA,CAAwB,KAAA,EAAA,eAAe,CAAA,EAAA,eAAA,CAAA,QAAA"}
@@ -1,11 +1,11 @@
1
1
  import * as _alloy_js_core0 from "@alloy-js/core";
2
- import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env";
2
+ import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env-builtin";
3
3
 
4
- //#region src/components/env.d.ts
4
+ //#region src/components/env-builtin.d.ts
5
5
  /**
6
6
  * Generates the NodeJs environment configuration module for the Powerlines project.
7
7
  */
8
8
  declare function NodeJsEnvBuiltin(props: EnvBuiltinProps): _alloy_js_core0.Children;
9
9
  //#endregion
10
10
  export { NodeJsEnvBuiltin };
11
- //# sourceMappingURL=env.d.mts.map
11
+ //# sourceMappingURL=env-builtin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAsCgB,iBAAA,gBAAA,CAAwB,KAAA,EAAA,eAAe,CAAA,EAAA,eAAA,CAAA,QAAA"}
@@ -4,12 +4,12 @@ import { TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
4
4
  import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
5
5
  import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
6
6
  import { TSDoc, TSDocRemarks } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
7
- import { EnvBuiltin } from "@powerlines/plugin-env/components/env";
7
+ import { EnvBuiltin } from "@powerlines/plugin-env/components/env-builtin";
8
8
  import { kebabCase } from "@stryke/string-format/kebab-case";
9
9
  import { titleCase } from "@stryke/string-format/title-case";
10
10
  import defu from "defu";
11
11
 
12
- //#region src/components/env.tsx
12
+ //#region src/components/env-builtin.tsx
13
13
  /**
14
14
  * Generates the NodeJs environment configuration module for the Powerlines project.
15
15
  */
@@ -175,4 +175,4 @@ function NodeJsEnvBuiltin(props) {
175
175
 
176
176
  //#endregion
177
177
  export { NodeJsEnvBuiltin };
178
- //# sourceMappingURL=env.mjs.map
178
+ //# sourceMappingURL=env-builtin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-builtin.mjs","names":["code","Show","splitProps","TypeDeclaration","VarDeclaration","Spacing","usePowerlines","TSDoc","TSDocRemarks","EnvBuiltin","kebabCase","titleCase","defu","NodeJsEnvBuiltin","props","children","rest","context","_$createComponent","_$mergeProps","defaultConfig","imports","name","doc","initializer","heading","config","organization","when","Boolean"],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { TypeDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n TSDoc,\n TSDocRemarks\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport {\n EnvBuiltin,\n EnvBuiltinProps\n} from \"@powerlines/plugin-env/components/env-builtin\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { NodeJsPluginContext } from \"../types\";\n\n/**\n * Generates the NodeJs environment configuration module for the Powerlines project.\n */\nexport function NodeJsEnvBuiltin(props: EnvBuiltinProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = usePowerlines<NodeJsPluginContext>();\n\n return (\n <EnvBuiltin\n defaultConfig={code`process.env`}\n {...rest}\n imports={defu(\n {\n \"node:os\": \"os\",\n \"node:path\": [\"basename\", \"join\"]\n },\n rest.imports ?? {}\n )}>\n <VarDeclaration\n export\n const\n name=\"isWindows\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^win/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration\n export\n const\n name=\"isLinux\"\n doc=\"An indicator specifying whether the current operating system is Linux.\"\n initializer={code`/^linux/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration\n export\n const\n name=\"isMacOS\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^darwin/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration const name=\"homedir\" initializer={code`os.homedir(); `} />\n <Spacing />\n <VarDeclaration const name=\"tmpdir\" initializer={code`os.tmpdir(); `} />\n <Spacing />\n <TSDoc heading=\"The environment path types for storing things like data, config, logs, and cache in the current runtime environment.\">\n <TSDocRemarks>\n {`These environment path types are accessed in the {@link EnvPaths} type. `}\n </TSDocRemarks>\n </TSDoc>\n <TypeDeclaration export name=\"EnvPathType\">\n {code`\"data\" | \"config\" | \"cache\" | \"log\" | \"temp\"; `}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"The environment paths for storing things like data, config, logs, and cache in the current runtime environment.\" />\n <TypeDeclaration export name=\"EnvPaths\">\n {code`Record<EnvPathType, string>; `}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"The resolved application directories based on the current operating system and environment variables.\">\n <TSDocRemarks>\n {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):\n - **Linux**: directories are generally created in \\`~/.config/<name>\\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))\n - **Windows**: directories are generally created in \\`%AppData%/<name>\\`\n - **MacOS**: directories are generally created in \\`~/Library/Application Support/<name>\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"paths\"\n initializer={code`isMacOS\n ? {\n data: env.DATA_DIR\n ? join(String(env.DATA_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Application Support\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n config: env.CONFIG_DIR\n ? join(String(env.CONFIG_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Preferences\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n cache: env.CACHE_DIR\n ? join(String(env.CACHE_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Caches\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n log: env.LOG_DIR\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(homedir, \"Library\", \"Logs\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n temp: env.TEMP_DIR\n ? join(String(env.TEMP_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(tmpdir, \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\")\n }\n : isWindows\n ? {\n data: env.DATA_DIR\n ? join(String(env.DATA_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Data\"),\n config: env.CONFIG_DIR\n ? join(env.CONFIG_DIR!, \"${titleCase(context.config.name)}\")\n : join(env.APPDATA || join(homedir, \"AppData\", \"Roaming\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Config\"),\n cache: env.CACHE_DIR\n ? join(String(env.CACHE_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"Cache\", \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\"),\n log: env.LOG_DIR\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Log\"),\n temp: env.TEMP_DIR\n ? join(String(env.TEMP_DIR), \"${titleCase(context.config.name)}\")\n : join(tmpdir, \"${titleCase(context.config.organization)}\", \"${titleCase(context.config.name)}\")\n }\n :\n {\n data: env.DATA_DIR\n ? join(String(env.DATA_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_DATA_HOME || join(homedir, \".local\", \"share\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n config: env.CONFIG_DIR\n ? join(String(env.CONFIG_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_CONFIG_HOME || join(homedir, \".config\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n cache: env.CACHE_DIR\n ? join(String(env.CACHE_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_CACHE_HOME || join(homedir, \".cache\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n log: env.LOG_DIR\n ? join(String(env.LOG_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_STATE_HOME || join(homedir, \".local\", \"state\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n temp: env.TEMP_DIR\n ? join(String(env.TEMP_DIR), \"${kebabCase(context.config.name)}\")\n : (env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR\n ? join((env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR)!, \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\")\n : join(tmpdir, basename(homedir), \"${kebabCase(context.config.organization)}\", \"${kebabCase(context.config.name)}\"))\n } as EnvPaths; `}\n />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </EnvBuiltin>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAsCA,SAAgBa,iBAAiBC,OAAwB;CACvD,MAAM,CAAC,EAAEC,YAAYC,QAAQd,WAAWY,OAAO,CAAC,WAAW,CAAC;CAE5D,MAAMG,UAAUX,eAAoC;AAEpD,QAAAY,gBACGT,YAAUU,WAAA,EACTC,eAAepB,IAAI,eAAa,EAC5BgB,MAAI;EAAA,IACRK,UAAO;AAAA,UAAET,KACP;IACE,WAAW;IACX,aAAa,CAAC,YAAY,OAAM;IACjC,EACDI,KAAKK,WAAW,EAClB,CAAC;;EAAA,IAAAN,WAAA;AAAA,UAAA;IAAAG,gBACAd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC,KAAG;KACHC,aAAaxB,IAAI;KAAkC,CAAA;IAAAkB,gBAEpDb,SAAO,EAAA,CAAA;IAAAa,gBACPd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC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AAUO,QAAQS,OAAOC,aAAa,CAAA;uBACtCjB,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;;;kDAGHZ,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;;;uBAGzDZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA;uBACtCjB,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;;;iDAGJZ,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;yEACNZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UACpGO,QAAQS,OAAOJ,KAChB,CAAA;;+CAE8BZ,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;kFACKZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UAC7GO,QAAQS,OAAOJ,KAChB,CAAA;;gDAE+BZ,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;;4EAEFZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UACnGO,QAAQS,OAAOJ,KAChB,CAAA;yDACoCZ,UAAUO,QAAQS,OAAOC,aAAa,CAAA,MAAOjB,UAAUO,QAAQS,OAAOJ,KAAK,CAAA;;;KAC1G,CAAA;IAAAJ,gBAEnBb,SAAO,EAAA,CAAA;IAAAa,gBACPjB,MAAI;KAAA,IAAC2B,OAAI;AAAA,aAAEC,QAAQd,SAAS;;KAAGA;KAAQ,CAAA;IAAA;;EAAA,CAAA,CAAA"}
@@ -1,3 +1,3 @@
1
- const require_components_env = require('./env.cjs');
1
+ const require_components_env_builtin = require('./env-builtin.cjs');
2
2
 
3
- exports.NodeJsEnvBuiltin = require_components_env.NodeJsEnvBuiltin;
3
+ exports.NodeJsEnvBuiltin = require_components_env_builtin.NodeJsEnvBuiltin;
@@ -1,2 +1,2 @@
1
- import { NodeJsEnvBuiltin } from "./env.cjs";
1
+ import { NodeJsEnvBuiltin } from "./env-builtin.cjs";
2
2
  export { NodeJsEnvBuiltin };
@@ -1,2 +1,2 @@
1
- import { NodeJsEnvBuiltin } from "./env.mjs";
1
+ import { NodeJsEnvBuiltin } from "./env-builtin.mjs";
2
2
  export { NodeJsEnvBuiltin };
@@ -1,3 +1,3 @@
1
- import { NodeJsEnvBuiltin } from "./env.mjs";
1
+ import { NodeJsEnvBuiltin } from "./env-builtin.mjs";
2
2
 
3
3
  export { NodeJsEnvBuiltin };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_components_env = require('./components/env.cjs');
3
+ const require_components_env_builtin = require('./components/env-builtin.cjs');
4
4
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
5
  let __powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
6
6
  let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
@@ -29,7 +29,7 @@ const plugin = (options = {}) => {
29
29
  async prepare() {
30
30
  const _self$ = this;
31
31
  const result = await (0, __powerlines_plugin_env_helpers_persistence.readEnvTypeReflection)(this, "env");
32
- return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_env.NodeJsEnvBuiltin, {
32
+ return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_env_builtin.NodeJsEnvBuiltin, {
33
33
  get defaultConfig() {
34
34
  return _self$.config.env.defaultConfig;
35
35
  },
package/dist/index.d.cts CHANGED
@@ -2,8 +2,8 @@ import { NodeJsPluginContext, NodeJsPluginOptions } from "./types/plugin.cjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "@powerlines/core" {
6
- interface BaseConfig {
5
+ declare module "powerlines" {
6
+ interface Config {
7
7
  nodejs?: NodeJsPluginOptions;
8
8
  }
9
9
  }
package/dist/index.d.mts CHANGED
@@ -2,8 +2,8 @@ import { NodeJsPluginContext, NodeJsPluginOptions } from "./types/plugin.mjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "@powerlines/core" {
6
- interface BaseConfig {
5
+ declare module "powerlines" {
6
+ interface Config {
7
7
  nodejs?: NodeJsPluginOptions;
8
8
  }
9
9
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { NodeJsEnvBuiltin } from "./components/env.mjs";
1
+ import { NodeJsEnvBuiltin } from "./components/env-builtin.mjs";
2
2
  import { createComponent } from "@alloy-js/core/jsx-runtime";
3
3
  import { render } from "@powerlines/plugin-alloy/render";
4
4
  import babel from "@powerlines/plugin-babel";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["render","babel","env","readEnvTypeReflection","isMatchFound","NodeJsEnvBuiltin","plugin","options","name","configResolved","devDependencies","tsconfig","tsconfigJson","compilerOptions","types","push","prepare","_self$","result","_$createComponent","defaultConfig","config","reflection"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport babel from \"@powerlines/plugin-babel\";\nimport env from \"@powerlines/plugin-env\";\nimport { readEnvTypeReflection } from \"@powerlines/plugin-env/helpers/persistence\";\nimport { Plugin } from \"powerlines\";\nimport { isMatchFound } from \"powerlines/typescript\";\nimport { NodeJsEnvBuiltin } from \"./components/env\";\nimport { NodeJsPluginContext, NodeJsPluginOptions } from \"./types/plugin\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n nodejs?: NodeJsPluginOptions;\n }\n}\n\n/**\n * A package containing a Powerlines plugin for building a NodeJs application.\n */\nexport const plugin = <\n TContext extends NodeJsPluginContext = NodeJsPluginContext\n>(\n options: NodeJsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n babel(options.babel),\n env(options.env),\n {\n name: \"nodejs\",\n configResolved() {\n this.devDependencies[\"@types/node\"] = \"^22.14.6\";\n\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.types ??= [];\n if (\n !isMatchFound(\n \"node\",\n this.tsconfig.tsconfigJson.compilerOptions.types\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.types.push(\"node\");\n }\n },\n async prepare() {\n const result = await readEnvTypeReflection(this, \"env\");\n\n return render(\n this,\n <NodeJsEnvBuiltin\n defaultConfig={this.config.env.defaultConfig}\n reflection={result}\n />\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAaM,UAGXC,UAA+B,EAAE,KACV;AACvB,QAAO;EACLN,MAAMM,QAAQN,MAAM;EACpBC,IAAIK,QAAQL,IAAI;EAChB;GACEM,MAAM;GACNC,iBAAiB;AACf,SAAKC,gBAAgB,iBAAiB;AAEtC,SAAKC,SAASC,aAAaC,oBAAoB,EAAE;AACjD,SAAKF,SAASC,aAAaC,gBAAgBC,UAAU,EAAE;AACvD,QACE,CAACV,aACC,QACA,KAAKO,SAASC,aAAaC,gBAAgBC,MAC5C,CAED,MAAKH,SAASC,aAAaC,gBAAgBC,MAAMC,KAAK,OAAO;;GAGjE,MAAMC,UAAU;IAAA,MAAAC,SAAA;IACd,MAAMC,SAAS,MAAMf,sBAAsB,MAAM,MAAM;AAEvD,WAAOH,OACL,MAAImB,gBACHd,kBAAgB;KAAA,IACfe,gBAAa;AAAA,aAAEH,OAAKI,OAAOnB,IAAIkB;;KAC/BE,YAAYJ;KAAM,CAEtB,CAAC;;GAEJ;EACF;;AAGH,kBAAeZ"}
1
+ {"version":3,"file":"index.mjs","names":["render","babel","env","readEnvTypeReflection","isMatchFound","NodeJsEnvBuiltin","plugin","options","name","configResolved","devDependencies","tsconfig","tsconfigJson","compilerOptions","types","push","prepare","_self$","result","_$createComponent","defaultConfig","config","reflection"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport babel from \"@powerlines/plugin-babel\";\nimport env from \"@powerlines/plugin-env\";\nimport { readEnvTypeReflection } from \"@powerlines/plugin-env/helpers/persistence\";\nimport { Plugin } from \"powerlines\";\nimport { isMatchFound } from \"powerlines/typescript\";\nimport { NodeJsEnvBuiltin } from \"./components/env-builtin\";\nimport { NodeJsPluginContext, NodeJsPluginOptions } from \"./types/plugin\";\n\ndeclare module \"powerlines\" {\n interface Config {\n nodejs?: NodeJsPluginOptions;\n }\n}\n\n/**\n * A package containing a Powerlines plugin for building a NodeJs application.\n */\nexport const plugin = <\n TContext extends NodeJsPluginContext = NodeJsPluginContext\n>(\n options: NodeJsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n babel(options.babel),\n env(options.env),\n {\n name: \"nodejs\",\n configResolved() {\n this.devDependencies[\"@types/node\"] = \"^22.14.6\";\n\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.types ??= [];\n if (\n !isMatchFound(\n \"node\",\n this.tsconfig.tsconfigJson.compilerOptions.types\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.types.push(\"node\");\n }\n },\n async prepare() {\n const result = await readEnvTypeReflection(this, \"env\");\n\n return render(\n this,\n <NodeJsEnvBuiltin\n defaultConfig={this.config.env.defaultConfig}\n reflection={result}\n />\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAoCA,MAAaM,UAGXC,UAA+B,EAAE,KACV;AACvB,QAAO;EACLN,MAAMM,QAAQN,MAAM;EACpBC,IAAIK,QAAQL,IAAI;EAChB;GACEM,MAAM;GACNC,iBAAiB;AACf,SAAKC,gBAAgB,iBAAiB;AAEtC,SAAKC,SAASC,aAAaC,oBAAoB,EAAE;AACjD,SAAKF,SAASC,aAAaC,gBAAgBC,UAAU,EAAE;AACvD,QACE,CAACV,aACC,QACA,KAAKO,SAASC,aAAaC,gBAAgBC,MAC5C,CAED,MAAKH,SAASC,aAAaC,gBAAgBC,MAAMC,KAAK,OAAO;;GAGjE,MAAMC,UAAU;IAAA,MAAAC,SAAA;IACd,MAAMC,SAAS,MAAMf,sBAAsB,MAAM,MAAM;AAEvD,WAAOH,OACL,MAAImB,gBACHd,kBAAgB;KAAA,IACfe,gBAAa;AAAA,aAAEH,OAAKI,OAAOnB,IAAIkB;;KAC/BE,YAAYJ;KAAM,CAEtB,CAAC;;GAEJ;EACF;;AAGH,kBAAeZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-nodejs",
3
- "version": "0.1.232",
3
+ "version": "0.1.238",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a Node.js application.",
6
6
  "repository": {
@@ -70,18 +70,18 @@
70
70
  "default": "./dist/components/index.mjs"
71
71
  }
72
72
  },
73
- "./components/env": {
73
+ "./components/env-builtin": {
74
74
  "require": {
75
- "types": "./dist/components/env.d.cts",
76
- "default": "./dist/components/env.cjs"
75
+ "types": "./dist/components/env-builtin.d.cts",
76
+ "default": "./dist/components/env-builtin.cjs"
77
77
  },
78
78
  "import": {
79
- "types": "./dist/components/env.d.mts",
80
- "default": "./dist/components/env.mjs"
79
+ "types": "./dist/components/env-builtin.d.mts",
80
+ "default": "./dist/components/env-builtin.mjs"
81
81
  },
82
82
  "default": {
83
- "types": "./dist/components/env.d.mts",
84
- "default": "./dist/components/env.mjs"
83
+ "types": "./dist/components/env-builtin.d.mts",
84
+ "default": "./dist/components/env-builtin.mjs"
85
85
  }
86
86
  },
87
87
  "./types": {
@@ -119,17 +119,17 @@
119
119
  "dependencies": {
120
120
  "@alloy-js/core": "0.23.0-dev.8",
121
121
  "@alloy-js/typescript": "0.23.0-dev.4",
122
- "@powerlines/plugin-alloy": "^0.24.3",
123
- "@powerlines/plugin-babel": "^0.12.318",
124
- "@powerlines/plugin-env": "^0.16.31",
125
- "@powerlines/plugin-plugin": "^0.12.263",
126
- "@storm-software/config-tools": "^1.189.12",
127
- "@stryke/string-format": "^0.14.8",
122
+ "@powerlines/plugin-alloy": "^0.25.2",
123
+ "@powerlines/plugin-babel": "^0.12.324",
124
+ "@powerlines/plugin-env": "^0.16.37",
125
+ "@powerlines/plugin-plugin": "^0.12.269",
126
+ "@storm-software/config-tools": "^1.189.17",
127
+ "@stryke/string-format": "^0.16.0",
128
128
  "defu": "^6.1.4",
129
- "powerlines": "^0.39.20"
129
+ "powerlines": "^0.40.5"
130
130
  },
131
- "devDependencies": { "@types/node": "^25.3.3" },
131
+ "devDependencies": { "@types/node": "^25.3.5" },
132
132
  "publishConfig": { "access": "public" },
133
133
  "types": "./dist/index.d.cts",
134
- "gitHead": "e060aa89b66f96ebeaff3f0762947cb7b5dece34"
134
+ "gitHead": "842d89a4d59dd40606518bc727bfc31e3219b941"
135
135
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.cts","names":[],"sources":["../../src/components/env.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAsCgB,iBAAA,gBAAA,CAAwB,KAAA,EAAA,eAAe,CAAA,EAAA,eAAA,CAAA,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.mts","names":[],"sources":["../../src/components/env.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAsCgB,iBAAA,gBAAA,CAAwB,KAAA,EAAA,eAAe,CAAA,EAAA,eAAA,CAAA,QAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.mjs","names":["code","Show","splitProps","TypeDeclaration","VarDeclaration","Spacing","usePowerlines","TSDoc","TSDocRemarks","EnvBuiltin","kebabCase","titleCase","defu","NodeJsEnvBuiltin","props","children","rest","context","_$createComponent","_$mergeProps","defaultConfig","imports","name","doc","initializer","heading","config","organization","when","Boolean"],"sources":["../../src/components/env.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { TypeDeclaration, VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport {\n TSDoc,\n TSDocRemarks\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport {\n EnvBuiltin,\n EnvBuiltinProps\n} from \"@powerlines/plugin-env/components/env\";\nimport { kebabCase } from \"@stryke/string-format/kebab-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { NodeJsPluginContext } from \"../types\";\n\n/**\n * Generates the NodeJs environment configuration module for the Powerlines project.\n */\nexport function NodeJsEnvBuiltin(props: EnvBuiltinProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n const context = usePowerlines<NodeJsPluginContext>();\n\n return (\n <EnvBuiltin\n defaultConfig={code`process.env`}\n {...rest}\n imports={defu(\n {\n \"node:os\": \"os\",\n \"node:path\": [\"basename\", \"join\"]\n },\n rest.imports ?? {}\n )}>\n <VarDeclaration\n export\n const\n name=\"isWindows\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^win/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration\n export\n const\n name=\"isLinux\"\n doc=\"An indicator specifying whether the current operating system is Linux.\"\n initializer={code`/^linux/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration\n export\n const\n name=\"isMacOS\"\n doc=\"An indicator specifying whether the current operating system is MacOS (darwin kernel).\"\n initializer={code`/^darwin/i.test(process.platform); `}\n />\n <Spacing />\n <VarDeclaration const name=\"homedir\" initializer={code`os.homedir(); `} />\n <Spacing />\n <VarDeclaration const name=\"tmpdir\" initializer={code`os.tmpdir(); `} />\n <Spacing />\n <TSDoc heading=\"The environment path types for storing things like data, config, logs, and cache in the current runtime environment.\">\n <TSDocRemarks>\n {`These environment path types are accessed in the {@link EnvPaths} type. `}\n </TSDocRemarks>\n </TSDoc>\n <TypeDeclaration export name=\"EnvPathType\">\n {code`\"data\" | \"config\" | \"cache\" | \"log\" | \"temp\"; `}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"The environment paths for storing things like data, config, logs, and cache in the current runtime environment.\" />\n <TypeDeclaration export name=\"EnvPaths\">\n {code`Record<EnvPathType, string>; `}\n </TypeDeclaration>\n <Spacing />\n <TSDoc heading=\"The resolved application directories based on the current operating system and environment variables.\">\n <TSDocRemarks>\n {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):\n - **Linux**: directories are generally created in \\`~/.config/<name>\\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))\n - **Windows**: directories are generally created in \\`%AppData%/<name>\\`\n - **MacOS**: directories are generally created in \\`~/Library/Application Support/<name>\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"paths\"\n initializer={code`isMacOS\n ? {\n data: env.DATA_DIR\n ? join(String(env.DATA_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Application Support\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n config: env.CONFIG_DIR\n ? join(String(env.CONFIG_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Preferences\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n cache: env.CACHE_DIR\n ? join(String(env.CACHE_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(homedir, \"Library\", \"Caches\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n log: env.LOG_DIR\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(homedir, \"Library\", \"Logs\", \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\"),\n temp: env.TEMP_DIR\n ? join(String(env.TEMP_DIR), \"${titleCase(\n context.config.name\n )}\")\n : join(tmpdir, \"${titleCase(\n context.config.organization\n )}\", \"${titleCase(context.config.name)}\")\n }\n : isWindows\n ? {\n data: env.DATA_DIR\n ? join(String(env.DATA_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Data\"),\n config: env.CONFIG_DIR\n ? join(env.CONFIG_DIR!, \"${titleCase(context.config.name)}\")\n : join(env.APPDATA || join(homedir, \"AppData\", \"Roaming\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Config\"),\n cache: env.CACHE_DIR\n ? join(String(env.CACHE_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"Cache\", \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\"),\n log: env.LOG_DIR\n ? join(String(env.LOG_DIR), \"${titleCase(context.config.name)}\")\n : join(env.LOCALAPPDATA || join(homedir, \"AppData\", \"Local\"), \"${titleCase(context.config.organization)}\", \"${titleCase(\n context.config.name\n )}\", \"Log\"),\n temp: env.TEMP_DIR\n ? join(String(env.TEMP_DIR), \"${titleCase(context.config.name)}\")\n : join(tmpdir, \"${titleCase(context.config.organization)}\", \"${titleCase(context.config.name)}\")\n }\n :\n {\n data: env.DATA_DIR\n ? join(String(env.DATA_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_DATA_HOME || join(homedir, \".local\", \"share\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n config: env.CONFIG_DIR\n ? join(String(env.CONFIG_DIR), \"${kebabCase(context.config.name)}\")\n : join(\n env.XDG_CONFIG_HOME || join(homedir, \".config\"),\n \"${kebabCase(context.config.organization)}\",\n \"${kebabCase(context.config.name)}\"\n ),\n cache: env.CACHE_DIR\n ? join(String(env.CACHE_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_CACHE_HOME || join(homedir, \".cache\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n log: env.LOG_DIR\n ? join(String(env.LOG_DIR), \"${kebabCase(context.config.name)}\")\n : join(env.XDG_STATE_HOME || join(homedir, \".local\", \"state\"), \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\"),\n temp: env.TEMP_DIR\n ? join(String(env.TEMP_DIR), \"${kebabCase(context.config.name)}\")\n : (env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR\n ? join((env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR)!, \"${kebabCase(context.config.organization)}\", \"${kebabCase(\n context.config.name\n )}\")\n : join(tmpdir, basename(homedir), \"${kebabCase(context.config.organization)}\", \"${kebabCase(context.config.name)}\"))\n } as EnvPaths; `}\n />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </EnvBuiltin>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAsCA,SAAgBa,iBAAiBC,OAAwB;CACvD,MAAM,CAAC,EAAEC,YAAYC,QAAQd,WAAWY,OAAO,CAAC,WAAW,CAAC;CAE5D,MAAMG,UAAUX,eAAoC;AAEpD,QAAAY,gBACGT,YAAUU,WAAA,EACTC,eAAepB,IAAI,eAAa,EAC5BgB,MAAI;EAAA,IACRK,UAAO;AAAA,UAAET,KACP;IACE,WAAW;IACX,aAAa,CAAC,YAAY,OAAM;IACjC,EACDI,KAAKK,WAAW,EAClB,CAAC;;EAAA,IAAAN,WAAA;AAAA,UAAA;IAAAG,gBACAd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC,KAAG;KACHC,aAAaxB,IAAI;KAAkC,CAAA;IAAAkB,gBAEpDb,SAAO,EAAA,CAAA;IAAAa,gBACPd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC,KAAG;KACHC,aAAaxB,IAAI;KAAoC,CAAA;IAAAkB,gBAEtDb,SAAO,EAAA,CAAA;IAAAa,gBACPd,gBAAc;KAAA,UAAA;KAAA,SAAA;KAGbkB,MAAI;KACJC,KAAG;KACHC,aAAaxB,IAAI;KAAqC,CAAA;IAAAkB,gBAEvDb,SAAO,EAAA,CAAA;IAAAa,gBACPd,gBAAc;KAAA,SAAA;KAAOkB,MAAI;KAAWE,aAAaxB,IAAI;KAAgB,CAAA;IAAAkB,gBACrEb,SAAO,EAAA,CAAA;IAAAa,gBACPd,gBAAc;KAAA,SAAA;KAAOkB,MAAI;KAAUE,a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