@powerlines/plugin-nodejs 0.1.359 → 0.1.362

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.
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
@@ -0,0 +1,68 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`);let t=require(`@alloy-js/core/jsx-runtime`),n=require(`@alloy-js/core`),r=require(`@alloy-js/typescript`),i=require(`@powerlines/plugin-alloy/core/components/spacing`),a=require(`@powerlines/plugin-alloy/core/contexts/context`),o=require(`@powerlines/plugin-alloy/typescript/components/tsdoc`),s=require(`@powerlines/plugin-env/components/env-builtin`),c=require(`@stryke/string-format/kebab-case`),l=require(`@stryke/string-format/title-case`),u=require(`defu`);u=e.__toESM(u);function d(e){let[{children:d},f]=(0,n.splitProps)(e,[`children`]),p=(0,a.usePowerlines)();return(0,t.createComponent)(s.EnvBuiltin,(0,t.mergeProps)({defaultConfig:n.code`process.env`},f,{get imports(){return(0,u.default)({"node:os":`os`,"node:path":[`basename`,`join`]},f.imports??{})},get children(){return[(0,t.createComponent)(r.VarDeclaration,{export:!0,const:!0,name:`isWindows`,doc:`An indicator specifying whether the current operating system is MacOS (darwin kernel).`,initializer:n.code`/^win/i.test(process.platform); `}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(r.VarDeclaration,{export:!0,const:!0,name:`isLinux`,doc:`An indicator specifying whether the current operating system is Linux.`,initializer:n.code`/^linux/i.test(process.platform); `}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(r.VarDeclaration,{export:!0,const:!0,name:`isMacOS`,doc:`An indicator specifying whether the current operating system is MacOS (darwin kernel).`,initializer:n.code`/^darwin/i.test(process.platform); `}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(r.VarDeclaration,{const:!0,name:`homedir`,initializer:n.code`os.homedir(); `}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(r.VarDeclaration,{const:!0,name:`tmpdir`,initializer:n.code`os.tmpdir(); `}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(o.TSDoc,{heading:`The environment path types for storing things like data, config, logs, and cache in the current runtime environment.`,get children(){return(0,t.createComponent)(o.TSDocRemarks,{children:`These environment path types are accessed in the {@link EnvPaths} type. `})}}),(0,t.createComponent)(r.TypeDeclaration,{export:!0,name:`EnvPathType`,children:n.code`"data" | "config" | "cache" | "log" | "temp"; `}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(o.TSDoc,{heading:`The environment paths for storing things like data, config, logs, and cache in the current runtime environment.`}),(0,t.createComponent)(r.TypeDeclaration,{export:!0,name:`EnvPaths`,children:n.code`Record<EnvPathType, string>; `}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(o.TSDoc,{heading:`The resolved application directories based on the current operating system and environment variables.`,get children(){return(0,t.createComponent)(o.TSDocRemarks,{children: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):
2
+ - **Linux**: directories are generally created in \`~/.config/<name>\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))
3
+ - **Windows**: directories are generally created in \`%AppData%/<name>\`
4
+ - **MacOS**: directories are generally created in \`~/Library/Application Support/<name>\`
5
+ `})}}),(0,t.createComponent)(r.VarDeclaration,{export:!0,const:!0,name:`paths`,get initializer(){return n.code`isMacOS
6
+ ? {
7
+ data: env.DATA_DIR
8
+ ? join(String(env.DATA_DIR), "${(0,l.titleCase)(p.config.name)}")
9
+ : join(homedir, "Library", "Application Support", "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}"),
10
+ config: env.CONFIG_DIR
11
+ ? join(String(env.CONFIG_DIR), "${(0,l.titleCase)(p.config.name)}")
12
+ : join(homedir, "Library", "Preferences", "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}"),
13
+ cache: env.CACHE_DIR
14
+ ? join(String(env.CACHE_DIR), "${(0,l.titleCase)(p.config.name)}")
15
+ : join(homedir, "Library", "Caches", "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}"),
16
+ log: env.LOG_DIR
17
+ ? join(String(env.LOG_DIR), "${(0,l.titleCase)(p.config.name)}")
18
+ : join(homedir, "Library", "Logs", "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}"),
19
+ temp: env.TEMP_DIR
20
+ ? join(String(env.TEMP_DIR), "${(0,l.titleCase)(p.config.name)}")
21
+ : join(tmpdir, "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}")
22
+ }
23
+ : isWindows
24
+ ? {
25
+ data: env.DATA_DIR
26
+ ? join(String(env.DATA_DIR), "${(0,l.titleCase)(p.config.name)}")
27
+ : join(env.LOCALAPPDATA || join(homedir, "AppData", "Local"), "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}", "Data"),
28
+ config: env.CONFIG_DIR
29
+ ? join(env.CONFIG_DIR!, "${(0,l.titleCase)(p.config.name)}")
30
+ : join(env.APPDATA || join(homedir, "AppData", "Roaming"), "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}", "Config"),
31
+ cache: env.CACHE_DIR
32
+ ? join(String(env.CACHE_DIR), "${(0,l.titleCase)(p.config.name)}")
33
+ : join(env.LOCALAPPDATA || join(homedir, "AppData", "Local"), "Cache", "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}"),
34
+ log: env.LOG_DIR
35
+ ? join(String(env.LOG_DIR), "${(0,l.titleCase)(p.config.name)}")
36
+ : join(env.LOCALAPPDATA || join(homedir, "AppData", "Local"), "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}", "Log"),
37
+ temp: env.TEMP_DIR
38
+ ? join(String(env.TEMP_DIR), "${(0,l.titleCase)(p.config.name)}")
39
+ : join(tmpdir, "${(0,l.titleCase)(p.config.organization)}", "${(0,l.titleCase)(p.config.name)}")
40
+ }
41
+ :
42
+ {
43
+ data: env.DATA_DIR
44
+ ? join(String(env.DATA_DIR), "${(0,c.kebabCase)(p.config.name)}")
45
+ : join(
46
+ env.XDG_DATA_HOME || join(homedir, ".local", "share"),
47
+ "${(0,c.kebabCase)(p.config.organization)}",
48
+ "${(0,c.kebabCase)(p.config.name)}"
49
+ ),
50
+ config: env.CONFIG_DIR
51
+ ? join(String(env.CONFIG_DIR), "${(0,c.kebabCase)(p.config.name)}")
52
+ : join(
53
+ env.XDG_CONFIG_HOME || join(homedir, ".config"),
54
+ "${(0,c.kebabCase)(p.config.organization)}",
55
+ "${(0,c.kebabCase)(p.config.name)}"
56
+ ),
57
+ cache: env.CACHE_DIR
58
+ ? join(String(env.CACHE_DIR), "${(0,c.kebabCase)(p.config.name)}")
59
+ : join(env.XDG_CACHE_HOME || join(homedir, ".cache"), "${(0,c.kebabCase)(p.config.organization)}", "${(0,c.kebabCase)(p.config.name)}"),
60
+ log: env.LOG_DIR
61
+ ? join(String(env.LOG_DIR), "${(0,c.kebabCase)(p.config.name)}")
62
+ : join(env.XDG_STATE_HOME || join(homedir, ".local", "state"), "${(0,c.kebabCase)(p.config.organization)}", "${(0,c.kebabCase)(p.config.name)}"),
63
+ temp: env.TEMP_DIR
64
+ ? join(String(env.TEMP_DIR), "${(0,c.kebabCase)(p.config.name)}")
65
+ : (env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR
66
+ ? join((env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR)!, "${(0,c.kebabCase)(p.config.organization)}", "${(0,c.kebabCase)(p.config.name)}")
67
+ : join(tmpdir, basename(homedir), "${(0,c.kebabCase)(p.config.organization)}", "${(0,c.kebabCase)(p.config.name)}"))
68
+ } as EnvPaths; `}}),(0,t.createComponent)(i.Spacing,{}),(0,t.createComponent)(n.Show,{get when(){return!!d},children:d})]}}))}exports.NodeJsEnvBuiltin=d;
@@ -0,0 +1,11 @@
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
+ import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env-builtin";
3
+
4
+ //#region src/components/env-builtin.d.ts
5
+ /**
6
+ * Generates the NodeJs environment configuration module for the Powerlines project.
7
+ */
8
+ declare function NodeJsEnvBuiltin(props: EnvBuiltinProps): _$_alloy_js_core0.Children;
9
+ //#endregion
10
+ export { NodeJsEnvBuiltin };
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"],"mappings":";;;;;;;iBAsCgB,gBAAA,CAAiB,KAAA,EAAO,eAAA,GAAe,iBAAA,CAAA,QAAA"}
@@ -0,0 +1,11 @@
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
+ import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env-builtin";
3
+
4
+ //#region src/components/env-builtin.d.ts
5
+ /**
6
+ * Generates the NodeJs environment configuration module for the Powerlines project.
7
+ */
8
+ declare function NodeJsEnvBuiltin(props: EnvBuiltinProps): _$_alloy_js_core0.Children;
9
+ //#endregion
10
+ export { NodeJsEnvBuiltin };
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"],"mappings":";;;;;;;iBAsCgB,gBAAA,CAAiB,KAAA,EAAO,eAAA,GAAe,iBAAA,CAAA,QAAA"}
@@ -0,0 +1,69 @@
1
+ import{createComponent as e,mergeProps as t}from"@alloy-js/core/jsx-runtime";import{Show as n,code as r,splitProps as i}from"@alloy-js/core";import{TypeDeclaration as a,VarDeclaration as o}from"@alloy-js/typescript";import{Spacing as s}from"@powerlines/plugin-alloy/core/components/spacing";import{usePowerlines as c}from"@powerlines/plugin-alloy/core/contexts/context";import{TSDoc as l,TSDocRemarks as u}from"@powerlines/plugin-alloy/typescript/components/tsdoc";import{EnvBuiltin as d}from"@powerlines/plugin-env/components/env-builtin";import{kebabCase as f}from"@stryke/string-format/kebab-case";import{titleCase as p}from"@stryke/string-format/title-case";import m from"defu";function h(h){let[{children:g},_]=i(h,[`children`]),v=c();return e(d,t({defaultConfig:r`process.env`},_,{get imports(){return m({"node:os":`os`,"node:path":[`basename`,`join`]},_.imports??{})},get children(){return[e(o,{export:!0,const:!0,name:`isWindows`,doc:`An indicator specifying whether the current operating system is MacOS (darwin kernel).`,initializer:r`/^win/i.test(process.platform); `}),e(s,{}),e(o,{export:!0,const:!0,name:`isLinux`,doc:`An indicator specifying whether the current operating system is Linux.`,initializer:r`/^linux/i.test(process.platform); `}),e(s,{}),e(o,{export:!0,const:!0,name:`isMacOS`,doc:`An indicator specifying whether the current operating system is MacOS (darwin kernel).`,initializer:r`/^darwin/i.test(process.platform); `}),e(s,{}),e(o,{const:!0,name:`homedir`,initializer:r`os.homedir(); `}),e(s,{}),e(o,{const:!0,name:`tmpdir`,initializer:r`os.tmpdir(); `}),e(s,{}),e(l,{heading:`The environment path types for storing things like data, config, logs, and cache in the current runtime environment.`,get children(){return e(u,{children:`These environment path types are accessed in the {@link EnvPaths} type. `})}}),e(a,{export:!0,name:`EnvPathType`,children:r`"data" | "config" | "cache" | "log" | "temp"; `}),e(s,{}),e(l,{heading:`The environment paths for storing things like data, config, logs, and cache in the current runtime environment.`}),e(a,{export:!0,name:`EnvPaths`,children:r`Record<EnvPathType, string>; `}),e(s,{}),e(l,{heading:`The resolved application directories based on the current operating system and environment variables.`,get children(){return e(u,{children:r`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):
2
+ - **Linux**: directories are generally created in \`~/.config/<name>\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))
3
+ - **Windows**: directories are generally created in \`%AppData%/<name>\`
4
+ - **MacOS**: directories are generally created in \`~/Library/Application Support/<name>\`
5
+ `})}}),e(o,{export:!0,const:!0,name:`paths`,get initializer(){return r`isMacOS
6
+ ? {
7
+ data: env.DATA_DIR
8
+ ? join(String(env.DATA_DIR), "${p(v.config.name)}")
9
+ : join(homedir, "Library", "Application Support", "${p(v.config.organization)}", "${p(v.config.name)}"),
10
+ config: env.CONFIG_DIR
11
+ ? join(String(env.CONFIG_DIR), "${p(v.config.name)}")
12
+ : join(homedir, "Library", "Preferences", "${p(v.config.organization)}", "${p(v.config.name)}"),
13
+ cache: env.CACHE_DIR
14
+ ? join(String(env.CACHE_DIR), "${p(v.config.name)}")
15
+ : join(homedir, "Library", "Caches", "${p(v.config.organization)}", "${p(v.config.name)}"),
16
+ log: env.LOG_DIR
17
+ ? join(String(env.LOG_DIR), "${p(v.config.name)}")
18
+ : join(homedir, "Library", "Logs", "${p(v.config.organization)}", "${p(v.config.name)}"),
19
+ temp: env.TEMP_DIR
20
+ ? join(String(env.TEMP_DIR), "${p(v.config.name)}")
21
+ : join(tmpdir, "${p(v.config.organization)}", "${p(v.config.name)}")
22
+ }
23
+ : isWindows
24
+ ? {
25
+ data: env.DATA_DIR
26
+ ? join(String(env.DATA_DIR), "${p(v.config.name)}")
27
+ : join(env.LOCALAPPDATA || join(homedir, "AppData", "Local"), "${p(v.config.organization)}", "${p(v.config.name)}", "Data"),
28
+ config: env.CONFIG_DIR
29
+ ? join(env.CONFIG_DIR!, "${p(v.config.name)}")
30
+ : join(env.APPDATA || join(homedir, "AppData", "Roaming"), "${p(v.config.organization)}", "${p(v.config.name)}", "Config"),
31
+ cache: env.CACHE_DIR
32
+ ? join(String(env.CACHE_DIR), "${p(v.config.name)}")
33
+ : join(env.LOCALAPPDATA || join(homedir, "AppData", "Local"), "Cache", "${p(v.config.organization)}", "${p(v.config.name)}"),
34
+ log: env.LOG_DIR
35
+ ? join(String(env.LOG_DIR), "${p(v.config.name)}")
36
+ : join(env.LOCALAPPDATA || join(homedir, "AppData", "Local"), "${p(v.config.organization)}", "${p(v.config.name)}", "Log"),
37
+ temp: env.TEMP_DIR
38
+ ? join(String(env.TEMP_DIR), "${p(v.config.name)}")
39
+ : join(tmpdir, "${p(v.config.organization)}", "${p(v.config.name)}")
40
+ }
41
+ :
42
+ {
43
+ data: env.DATA_DIR
44
+ ? join(String(env.DATA_DIR), "${f(v.config.name)}")
45
+ : join(
46
+ env.XDG_DATA_HOME || join(homedir, ".local", "share"),
47
+ "${f(v.config.organization)}",
48
+ "${f(v.config.name)}"
49
+ ),
50
+ config: env.CONFIG_DIR
51
+ ? join(String(env.CONFIG_DIR), "${f(v.config.name)}")
52
+ : join(
53
+ env.XDG_CONFIG_HOME || join(homedir, ".config"),
54
+ "${f(v.config.organization)}",
55
+ "${f(v.config.name)}"
56
+ ),
57
+ cache: env.CACHE_DIR
58
+ ? join(String(env.CACHE_DIR), "${f(v.config.name)}")
59
+ : join(env.XDG_CACHE_HOME || join(homedir, ".cache"), "${f(v.config.organization)}", "${f(v.config.name)}"),
60
+ log: env.LOG_DIR
61
+ ? join(String(env.LOG_DIR), "${f(v.config.name)}")
62
+ : join(env.XDG_STATE_HOME || join(homedir, ".local", "state"), "${f(v.config.organization)}", "${f(v.config.name)}"),
63
+ temp: env.TEMP_DIR
64
+ ? join(String(env.TEMP_DIR), "${f(v.config.name)}")
65
+ : (env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR
66
+ ? join((env.DEVENV_RUNTIME || env.XDG_RUNTIME_DIR)!, "${f(v.config.organization)}", "${f(v.config.name)}")
67
+ : join(tmpdir, basename(homedir), "${f(v.config.organization)}", "${f(v.config.name)}"))
68
+ } as EnvPaths; `}}),e(s,{}),e(n,{get when(){return!!g},children:g})]}}))}export{h as NodeJsEnvBuiltin};
69
+ //# sourceMappingURL=env-builtin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-builtin.mjs","names":[],"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":"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"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./env-builtin.cjs`);exports.NodeJsEnvBuiltin=e.NodeJsEnvBuiltin;
@@ -0,0 +1,2 @@
1
+ import { NodeJsEnvBuiltin } from "./env-builtin.cjs";
2
+ export { NodeJsEnvBuiltin };
@@ -0,0 +1,2 @@
1
+ import { NodeJsEnvBuiltin } from "./env-builtin.mjs";
2
+ export { NodeJsEnvBuiltin };
@@ -0,0 +1 @@
1
+ import{NodeJsEnvBuiltin as e}from"./env-builtin.mjs";export{e as NodeJsEnvBuiltin};
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./_virtual/_rolldown/runtime.cjs`),t=require(`./components/env-builtin.cjs`);let n=require(`@alloy-js/core/jsx-runtime`),r=require(`@powerlines/plugin-alloy/render`),i=require(`@powerlines/plugin-babel`);i=e.__toESM(i);let a=require(`@powerlines/plugin-env`);a=e.__toESM(a);let o=require(`@powerlines/plugin-env/helpers/persistence`),s=require(`powerlines/typescript`);const c=(e={})=>[(0,i.default)(e.babel),(0,a.default)(e.env),{name:`nodejs`,configResolved(){this.devDependencies[`@types/node`]=`^22.14.6`,this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.types??=[],(0,s.isMatchFound)(`node`,this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push(`node`)},async prepare(){let e=this,i=await(0,o.readEnvTypeReflection)(this,`env`);return(0,r.render)(this,(0,n.createComponent)(t.NodeJsEnvBuiltin,{get defaultConfig(){return e.config.env.defaultConfig},reflection:i}))}}];exports.default=c,exports.plugin=c;
@@ -0,0 +1,16 @@
1
+ import { NodeJsPluginContext, NodeJsPluginOptions } from "./types/plugin.cjs";
2
+ import { Plugin } from "powerlines";
3
+
4
+ //#region src/index.d.ts
5
+ declare module "powerlines" {
6
+ interface Config {
7
+ nodejs?: NodeJsPluginOptions;
8
+ }
9
+ }
10
+ /**
11
+ * A package containing a Powerlines plugin for building a NodeJs application.
12
+ */
13
+ declare const plugin: <TContext extends NodeJsPluginContext = NodeJsPluginContext>(options?: NodeJsPluginOptions) => Plugin<TContext>[];
14
+ //#endregion
15
+ export { plugin as default, plugin };
16
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YA4BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
@@ -0,0 +1,16 @@
1
+ import { NodeJsPluginContext, NodeJsPluginOptions } from "./types/plugin.mjs";
2
+ import { Plugin } from "powerlines";
3
+
4
+ //#region src/index.d.ts
5
+ declare module "powerlines" {
6
+ interface Config {
7
+ nodejs?: NodeJsPluginOptions;
8
+ }
9
+ }
10
+ /**
11
+ * A package containing a Powerlines plugin for building a NodeJs application.
12
+ */
13
+ declare const plugin: <TContext extends NodeJsPluginContext = NodeJsPluginContext>(options?: NodeJsPluginOptions) => Plugin<TContext>[];
14
+ //#endregion
15
+ export { plugin as default, plugin };
16
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YA4BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import{NodeJsEnvBuiltin as e}from"./components/env-builtin.mjs";import{createComponent as t}from"@alloy-js/core/jsx-runtime";import{render as n}from"@powerlines/plugin-alloy/render";import r from"@powerlines/plugin-babel";import i from"@powerlines/plugin-env";import{readEnvTypeReflection as a}from"@powerlines/plugin-env/helpers/persistence";import{isMatchFound as o}from"powerlines/typescript";const s=(s={})=>[r(s.babel),i(s.env),{name:`nodejs`,configResolved(){this.devDependencies[`@types/node`]=`^22.14.6`,this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.types??=[],o(`node`,this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push(`node`)},async prepare(){let r=this,i=await a(this,`env`);return n(this,t(e,{get defaultConfig(){return r.config.env.defaultConfig},reflection:i}))}}];export{s as default,s as plugin};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"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":"4YA8BA,MAAE,GAAA,EAAA,EAAA,GACF,CAAA,EAAA,EAAA,MAAA,CAAA,EAAA,EAAA,IAAA,CAAA,eAEE,gBAAA,CACG,KAAA,gBAAqB,eAAkB,WAC1C,KAAA,SAAA,aAAA,kBAAA,EAAA,CACI,KAAC,SAAa,aAAE,gBAAA,QAAA,EAAA,CACX,EAAQ,OAAA,KAAA,SAAsB,aAAA,gBAAA,MAAA,EACxC,KAAA,SAAA,aAAA,gBAAA,MAAA,KAAA,OAAA,EAGC,MAAO,SAAA,CACL,IAAM,EAAQ,KACV,EAAY,MAAA,EAAA,KAAA,MAAA,CAChB,OAAA,EAAA,KAAA,EAAA,EAAA,CACE,IAAM,eAAQ,CACd,OAAA,EAAiB,OAAA,IAAA,4BAGhB,CAAC,CAAA,EAEL,CAAC"}
File without changes
@@ -0,0 +1,2 @@
1
+ import { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig } from "./plugin.cjs";
2
+ export { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig };
@@ -0,0 +1,2 @@
1
+ import { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig } from "./plugin.mjs";
2
+ export { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig };
@@ -0,0 +1 @@
1
+ export{};
File without changes
@@ -0,0 +1,24 @@
1
+ import { BabelPluginOptions } from "@powerlines/plugin-babel/types/plugin";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ interface NodeJsPluginOptions {
6
+ /**
7
+ * Options to pass to the [Babel plugin](https://npmjs.com/package/\@powerlines/plugin-babel).
8
+ */
9
+ babel?: Partial<BabelPluginOptions>;
10
+ /**
11
+ * Options to pass to the [Env plugin](https://npmjs.com/package/\@powerlines/plugin-env).
12
+ */
13
+ env?: Partial<Omit<EnvPluginOptions, "babel">>;
14
+ }
15
+ type NodeJsPluginUserConfig = EnvPluginUserConfig;
16
+ type NodeJsPluginResolvedConfig = EnvPluginResolvedConfig;
17
+ type NodeJsPluginContext<TResolvedConfig extends NodeJsPluginResolvedConfig = NodeJsPluginResolvedConfig> = EnvPluginContext<TResolvedConfig>;
18
+ declare type __ΩNodeJsPluginOptions = any[];
19
+ declare type __ΩNodeJsPluginUserConfig = any[];
20
+ declare type __ΩNodeJsPluginResolvedConfig = any[];
21
+ declare type __ΩNodeJsPluginContext = any[];
22
+ //#endregion
23
+ export { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig };
24
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,mBAAA;;AAAjB;;EAIE,KAAA,GAAQ,OAAA,CAAQ,kBAAA;EAAA;;;EAKhB,GAAA,GAAM,OAAA,CAAQ,IAAA,CAAK,gBAAA;AAAA;AAAA,KAGT,sBAAA,GAAyB,mBAAA;AAAA,KAEzB,0BAAA,GAA6B,uBAAA;AAAA,KAE7B,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,gBAAA,CAAiB,eAAA;AAAA"}
@@ -0,0 +1,24 @@
1
+ import { BabelPluginOptions } from "@powerlines/plugin-babel/types/plugin";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ interface NodeJsPluginOptions {
6
+ /**
7
+ * Options to pass to the [Babel plugin](https://npmjs.com/package/\@powerlines/plugin-babel).
8
+ */
9
+ babel?: Partial<BabelPluginOptions>;
10
+ /**
11
+ * Options to pass to the [Env plugin](https://npmjs.com/package/\@powerlines/plugin-env).
12
+ */
13
+ env?: Partial<Omit<EnvPluginOptions, "babel">>;
14
+ }
15
+ type NodeJsPluginUserConfig = EnvPluginUserConfig;
16
+ type NodeJsPluginResolvedConfig = EnvPluginResolvedConfig;
17
+ type NodeJsPluginContext<TResolvedConfig extends NodeJsPluginResolvedConfig = NodeJsPluginResolvedConfig> = EnvPluginContext<TResolvedConfig>;
18
+ declare type __ΩNodeJsPluginOptions = any[];
19
+ declare type __ΩNodeJsPluginUserConfig = any[];
20
+ declare type __ΩNodeJsPluginResolvedConfig = any[];
21
+ declare type __ΩNodeJsPluginContext = any[];
22
+ //#endregion
23
+ export { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig };
24
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,mBAAA;;AAAjB;;EAIE,KAAA,GAAQ,OAAA,CAAQ,kBAAA;EAAA;;;EAKhB,GAAA,GAAM,OAAA,CAAQ,IAAA,CAAK,gBAAA;AAAA;AAAA,KAGT,sBAAA,GAAyB,mBAAA;AAAA,KAEzB,0BAAA,GAA6B,uBAAA;AAAA,KAE7B,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,gBAAA,CAAiB,eAAA;AAAA"}
@@ -0,0 +1 @@
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-nodejs",
3
- "version": "0.1.359",
3
+ "version": "0.1.362",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a Node.js application.",
6
6
  "repository": {
@@ -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.26.51",
123
- "@powerlines/plugin-babel": "^0.12.425",
124
- "@powerlines/plugin-env": "^0.16.158",
125
- "@powerlines/plugin-plugin": "^0.12.383",
122
+ "@powerlines/plugin-alloy": "^0.26.53",
123
+ "@powerlines/plugin-babel": "^0.12.428",
124
+ "@powerlines/plugin-env": "^0.16.161",
125
+ "@powerlines/plugin-plugin": "^0.12.386",
126
126
  "@storm-software/config-tools": "^1.189.78",
127
- "@stryke/string-format": "^0.17.10",
127
+ "@stryke/string-format": "^0.17.12",
128
128
  "defu": "^6.1.7",
129
- "powerlines": "^0.43.28"
129
+ "powerlines": "^0.43.31"
130
130
  },
131
131
  "devDependencies": { "@types/node": "^25.6.0" },
132
132
  "publishConfig": { "access": "public" },
133
133
  "types": "./dist/index.d.cts",
134
- "gitHead": "efeaec793549f37c700f2e876bf6097c37375c46"
134
+ "gitHead": "abf752430f7af954a70fd6c9805e50eba2fa666b"
135
135
  }