@powerlines/plugin-nodejs 0.1.117 → 0.1.118
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.
- package/dist/components/env.cjs +14 -14
- package/dist/components/env.d.cts +1 -1
- package/dist/components/env.d.mts +1 -1
- package/dist/components/env.mjs +6 -6
- package/dist/index.cjs +8 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.mts +2 -2
- package/package.json +6 -6
- package/dist/deepkit/schemas/reflection.cjs +0 -3998
- package/dist/deepkit/schemas/reflection.d.cts +0 -1560
- package/dist/deepkit/schemas/reflection.d.mts +0 -1560
- package/dist/deepkit/schemas/reflection.mjs +0 -3996
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -913
- package/dist/deepkit/src/capnp.mjs +0 -911
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
- package/dist/deepkit/src/reflect-type.cjs +0 -22
- package/dist/deepkit/src/reflect-type.mjs +0 -20
- package/dist/deepkit/src/resolve-reflections.cjs +0 -16
- package/dist/deepkit/src/resolve-reflections.mjs +0 -15
- package/dist/deepkit/src/transformer.cjs +0 -52
- package/dist/deepkit/src/transformer.mjs +0 -49
- package/dist/deepkit/src/transpile.cjs +0 -29
- package/dist/deepkit/src/transpile.mjs +0 -27
- package/dist/deepkit/src/types.d.cts +0 -10
- package/dist/deepkit/src/types.d.mts +0 -10
- package/dist/deepkit/src/utilities.cjs +0 -67
- package/dist/deepkit/src/utilities.mjs +0 -66
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -43
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -42
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.d.cts +0 -23
- package/dist/plugin-alloy/src/core/components/source-file.d.mts +0 -23
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -49
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -44
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
- package/dist/plugin-alloy/src/index.cjs +0 -105
- package/dist/plugin-alloy/src/index.mjs +0 -103
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -18
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
- package/dist/plugin-alloy/src/types/components.d.cts +0 -20
- package/dist/plugin-alloy/src/types/components.d.mts +0 -21
- package/dist/plugin-alloy/src/types/index.d.cts +0 -2
- package/dist/plugin-alloy/src/types/index.d.mts +0 -2
- package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
- package/dist/plugin-alloy/src/types/plugin.d.mts +0 -36
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -62
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +0 -26
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -61
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -131
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -129
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -451
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +0 -37
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +0 -37
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -216
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +0 -16
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +0 -16
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -213
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -72
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +0 -4
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +0 -4
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -71
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -101
- package/dist/plugin-automd/src/index.mjs +0 -98
- package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
- package/dist/plugin-automd/src/types/plugin.d.mts +0 -40
- package/dist/plugin-automd/src/types/toc.d.cts +0 -33
- package/dist/plugin-automd/src/types/toc.d.mts +0 -33
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
- package/dist/plugin-babel/src/helpers/options.cjs +0 -49
- package/dist/plugin-babel/src/helpers/options.mjs +0 -46
- package/dist/plugin-babel/src/index.cjs +0 -85
- package/dist/plugin-babel/src/index.mjs +0 -83
- package/dist/plugin-babel/src/types/index.d.mts +0 -1
- package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
- package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
- package/dist/plugin-env/src/babel/index.cjs +0 -1
- package/dist/plugin-env/src/babel/index.mjs +0 -3
- package/dist/plugin-env/src/babel/plugin.cjs +0 -70
- package/dist/plugin-env/src/babel/plugin.mjs +0 -69
- package/dist/plugin-env/src/components/docs.cjs +0 -70
- package/dist/plugin-env/src/components/docs.mjs +0 -69
- package/dist/plugin-env/src/components/env.cjs +0 -589
- package/dist/plugin-env/src/components/env.d.cts +0 -11
- package/dist/plugin-env/src/components/env.d.mts +0 -11
- package/dist/plugin-env/src/components/env.mjs +0 -586
- package/dist/plugin-env/src/components/index.cjs +0 -2
- package/dist/plugin-env/src/components/index.mjs +0 -4
- package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
- package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
- package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
- package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
- package/dist/plugin-env/src/helpers/docs-helper.cjs +0 -16
- package/dist/plugin-env/src/helpers/docs-helper.mjs +0 -15
- package/dist/plugin-env/src/helpers/index.cjs +0 -6
- package/dist/plugin-env/src/helpers/index.mjs +0 -8
- package/dist/plugin-env/src/helpers/load.cjs +0 -84
- package/dist/plugin-env/src/helpers/load.mjs +0 -81
- package/dist/plugin-env/src/helpers/persistence.cjs +0 -201
- package/dist/plugin-env/src/helpers/persistence.mjs +0 -190
- package/dist/plugin-env/src/helpers/reflect.cjs +0 -125
- package/dist/plugin-env/src/helpers/reflect.mjs +0 -117
- package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
- package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
- package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
- package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
- package/dist/plugin-env/src/index.cjs +0 -177
- package/dist/plugin-env/src/index.mjs +0 -175
- package/dist/plugin-env/src/types/plugin.d.cts +0 -149
- package/dist/plugin-env/src/types/plugin.d.mts +0 -150
- package/dist/plugin-env/src/types/runtime.d.cts +0 -789
- package/dist/plugin-env/src/types/runtime.d.mts +0 -789
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -93
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -91
- package/dist/powerlines/src/lib/constants/environments.cjs +0 -6
- package/dist/powerlines/src/lib/constants/environments.mjs +0 -5
- package/dist/powerlines/src/lib/entry.cjs +0 -11
- package/dist/powerlines/src/lib/entry.mjs +0 -13
- package/dist/powerlines/src/lib/logger.cjs +0 -41
- package/dist/powerlines/src/lib/logger.mjs +0 -39
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -38
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -35
- package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -3
- package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -5
- package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +0 -66
- package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +0 -65
- package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -46
- package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -45
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -42
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -40
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -50
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -49
- package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -5
- package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -5
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
- package/dist/powerlines/src/types/api.d.cts +0 -104
- package/dist/powerlines/src/types/api.d.mts +0 -104
- package/dist/powerlines/src/types/babel.d.cts +0 -22
- package/dist/powerlines/src/types/babel.d.mts +0 -22
- package/dist/powerlines/src/types/build.cjs +0 -21
- package/dist/powerlines/src/types/build.d.cts +0 -185
- package/dist/powerlines/src/types/build.d.mts +0 -185
- package/dist/powerlines/src/types/build.mjs +0 -21
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.d.cts +0 -435
- package/dist/powerlines/src/types/config.d.mts +0 -436
- package/dist/powerlines/src/types/context.d.cts +0 -514
- package/dist/powerlines/src/types/context.d.mts +0 -514
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.cts +0 -32
- package/dist/powerlines/src/types/hooks.d.mts +0 -32
- package/dist/powerlines/src/types/plugin.d.cts +0 -205
- package/dist/powerlines/src/types/plugin.d.mts +0 -205
- package/dist/powerlines/src/types/resolved.d.cts +0 -94
- package/dist/powerlines/src/types/resolved.d.mts +0 -94
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/powerlines/src/types/unplugin.d.cts +0 -22
- package/dist/powerlines/src/types/unplugin.d.mts +0 -23
package/dist/components/env.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_context = require('../plugin-alloy/src/core/contexts/context.cjs');
|
|
3
|
-
const require_tsdoc = require('../plugin-alloy/src/typescript/components/tsdoc.cjs');
|
|
4
|
-
const require_env = require('../plugin-env/src/components/env.cjs');
|
|
5
2
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
-
let defu = require("defu");
|
|
7
|
-
defu = require_rolldown_runtime.__toESM(defu);
|
|
8
|
-
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
9
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
10
3
|
let __alloy_js_core = require("@alloy-js/core");
|
|
11
4
|
let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
5
|
+
let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
6
|
+
let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
7
|
+
let __powerlines_plugin_env_components_env = require("@powerlines/plugin-env/components/env");
|
|
8
|
+
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
9
|
+
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
10
|
+
let defu = require("defu");
|
|
11
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
12
12
|
|
|
13
13
|
//#region src/components/env.tsx
|
|
14
14
|
/**
|
|
@@ -16,8 +16,8 @@ let __alloy_js_typescript = require("@alloy-js/typescript");
|
|
|
16
16
|
*/
|
|
17
17
|
function NodeJsEnvBuiltin(props) {
|
|
18
18
|
const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
|
|
19
|
-
const context =
|
|
20
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
19
|
+
const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
|
|
20
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_env_components_env.EnvBuiltin, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
21
21
|
get imports() {
|
|
22
22
|
return (0, defu.default)({
|
|
23
23
|
"node:os": "os",
|
|
@@ -67,10 +67,10 @@ function NodeJsEnvBuiltin(props) {
|
|
|
67
67
|
}),
|
|
68
68
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
69
69
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
70
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
70
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
71
71
|
heading: "The environment path types for storing things like data, config, logs, and cache in the current runtime environment.",
|
|
72
72
|
get children() {
|
|
73
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
73
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `These environment path types are accessed in the {@link EnvPaths} type. ` });
|
|
74
74
|
}
|
|
75
75
|
}),
|
|
76
76
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeDeclaration, {
|
|
@@ -80,7 +80,7 @@ function NodeJsEnvBuiltin(props) {
|
|
|
80
80
|
}),
|
|
81
81
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
82
82
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
83
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
83
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The environment paths for storing things like data, config, logs, and cache in the current runtime environment." }),
|
|
84
84
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeDeclaration, {
|
|
85
85
|
"export": true,
|
|
86
86
|
name: "EnvPaths",
|
|
@@ -88,10 +88,10 @@ function NodeJsEnvBuiltin(props) {
|
|
|
88
88
|
}),
|
|
89
89
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
90
90
|
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
91
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
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)(
|
|
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
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
96
|
- **Windows**: directories are generally created in \`%AppData%/<name>\`
|
|
97
97
|
- **MacOS**: directories are generally created in \`~/Library/Application Support/<name>\`
|
package/dist/components/env.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { usePowerlines } from "../plugin-alloy/src/core/contexts/context.mjs";
|
|
2
|
-
import { TSDoc, TSDocRemarks } from "../plugin-alloy/src/typescript/components/tsdoc.mjs";
|
|
3
|
-
import { EnvBuiltin } from "../plugin-env/src/components/env.mjs";
|
|
4
1
|
import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
-
import defu from "defu";
|
|
6
|
-
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
7
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
8
2
|
import { Show, code, splitProps } from "@alloy-js/core";
|
|
9
3
|
import { TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
4
|
+
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
5
|
+
import { TSDoc, TSDocRemarks } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
6
|
+
import { EnvBuiltin } from "@powerlines/plugin-env/components/env";
|
|
7
|
+
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
8
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
9
|
+
import defu from "defu";
|
|
10
10
|
|
|
11
11
|
//#region src/components/env.tsx
|
|
12
12
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const require_index = require('./plugin-babel/src/index.cjs');
|
|
4
|
-
const require_index$1 = require('./plugin-env/src/index.cjs');
|
|
5
|
-
const require_tsconfig = require('./powerlines/src/lib/typescript/tsconfig.cjs');
|
|
6
3
|
const require_components_env = require('./components/env.cjs');
|
|
7
4
|
require('./components/index.cjs');
|
|
8
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
+
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
7
|
+
__powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
|
|
8
|
+
let __powerlines_plugin_env = require("@powerlines/plugin-env");
|
|
9
|
+
__powerlines_plugin_env = require_rolldown_runtime.__toESM(__powerlines_plugin_env);
|
|
10
|
+
let powerlines_lib_typescript_tsconfig = require("powerlines/lib/typescript/tsconfig");
|
|
9
11
|
|
|
10
12
|
//#region src/index.tsx
|
|
11
13
|
/**
|
|
@@ -13,15 +15,15 @@ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
|
13
15
|
*/
|
|
14
16
|
const plugin = (options = {}) => {
|
|
15
17
|
return [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
(0, __powerlines_plugin_babel.default)(options.babel),
|
|
19
|
+
(0, __powerlines_plugin_env.default)(options.env),
|
|
18
20
|
{
|
|
19
21
|
name: "nodejs",
|
|
20
22
|
configResolved() {
|
|
21
23
|
this.devDependencies["@types/node"] = "^22.14.6";
|
|
22
24
|
this.tsconfig.tsconfigJson.compilerOptions ??= {};
|
|
23
25
|
this.tsconfig.tsconfigJson.compilerOptions.types ??= [];
|
|
24
|
-
if (!
|
|
26
|
+
if (!(0, powerlines_lib_typescript_tsconfig.isMatchFound)("node", this.tsconfig.tsconfigJson.compilerOptions.types)) this.tsconfig.tsconfigJson.compilerOptions.types.push("node");
|
|
25
27
|
},
|
|
26
28
|
async prepare() {
|
|
27
29
|
const _self$ = this;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
2
1
|
import { NodeJsEnvBuiltin } from "./components/env.cjs";
|
|
3
2
|
import "./components/index.cjs";
|
|
4
3
|
import { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig } from "./types/plugin.cjs";
|
|
5
4
|
import "./types/index.cjs";
|
|
5
|
+
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
8
8
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
1
|
import { NodeJsEnvBuiltin } from "./components/env.mjs";
|
|
3
2
|
import "./components/index.mjs";
|
|
4
3
|
import { NodeJsPluginContext, NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig, __ΩNodeJsPluginContext, __ΩNodeJsPluginOptions, __ΩNodeJsPluginResolvedConfig, __ΩNodeJsPluginUserConfig } from "./types/plugin.mjs";
|
|
5
4
|
import "./types/index.mjs";
|
|
5
|
+
import { Plugin } from "powerlines/types/plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
8
8
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import src_default$1 from "./plugin-babel/src/index.mjs";
|
|
2
|
-
import src_default$2 from "./plugin-env/src/index.mjs";
|
|
3
|
-
import { isMatchFound } from "./powerlines/src/lib/typescript/tsconfig.mjs";
|
|
4
1
|
import { NodeJsEnvBuiltin } from "./components/env.mjs";
|
|
5
2
|
import "./components/index.mjs";
|
|
6
3
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
|
+
import babel from "@powerlines/plugin-babel";
|
|
5
|
+
import env from "@powerlines/plugin-env";
|
|
6
|
+
import { isMatchFound } from "powerlines/lib/typescript/tsconfig";
|
|
7
7
|
|
|
8
8
|
//#region src/index.tsx
|
|
9
9
|
/**
|
|
@@ -11,8 +11,8 @@ import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
const plugin = (options = {}) => {
|
|
13
13
|
return [
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
babel(options.babel),
|
|
15
|
+
env(options.env),
|
|
16
16
|
{
|
|
17
17
|
name: "nodejs",
|
|
18
18
|
configResolved() {
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BabelPluginOptions } from "
|
|
2
|
-
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "
|
|
1
|
+
import { BabelPluginOptions } from "@powerlines/plugin-babel/types/plugin";
|
|
2
|
+
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
interface NodeJsPluginOptions {
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BabelPluginOptions } from "
|
|
2
|
-
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "
|
|
1
|
+
import { BabelPluginOptions } from "@powerlines/plugin-babel/types/plugin";
|
|
2
|
+
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
interface NodeJsPluginOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nodejs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.118",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a Node.js application.",
|
|
6
6
|
"repository": {
|
|
@@ -141,10 +141,10 @@
|
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"@alloy-js/core": "^0.22.0",
|
|
143
143
|
"@alloy-js/typescript": "^0.22.0",
|
|
144
|
-
"@powerlines/plugin-alloy": "^0.18.
|
|
145
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
146
|
-
"@powerlines/plugin-env": "^0.15.
|
|
147
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
144
|
+
"@powerlines/plugin-alloy": "^0.18.115",
|
|
145
|
+
"@powerlines/plugin-babel": "^0.12.233",
|
|
146
|
+
"@powerlines/plugin-env": "^0.15.123",
|
|
147
|
+
"@powerlines/plugin-plugin": "^0.12.175",
|
|
148
148
|
"@storm-software/config-tools": "^1.189.0",
|
|
149
149
|
"@stryke/string-format": "^0.13.4",
|
|
150
150
|
"defu": "^6.1.4",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": { "@types/node": "^24.10.9" },
|
|
154
154
|
"publishConfig": { "access": "public" },
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "f153baa7a374fe331eeb1b8ea37c30c379c5efce"
|
|
156
156
|
}
|