@powerlines/plugin-nodejs 0.1.8 → 0.1.10
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.mjs +6 -6
- package/dist/index.cjs +8 -6
- package/dist/index.mjs +5 -5
- package/dist/plugin-alloy/src/types/components.d.mts +1 -2
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +1 -1
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +2 -2
- package/dist/plugin-automd/src/types/plugin.d.mts +1 -3
- package/dist/plugin-env/src/types/plugin.d.mts +1 -2
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/build.d.mts +6 -6
- package/dist/powerlines/src/types/commands.d.mts +0 -1
- package/dist/powerlines/src/types/config.d.mts +2 -3
- package/dist/powerlines/src/types/context.d.cts +1 -1
- package/dist/powerlines/src/types/context.d.mts +1 -1
- package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +0 -1
- package/package.json +11 -9
- package/dist/deepkit/schemas/reflection.cjs +0 -3940
- package/dist/deepkit/schemas/reflection.mjs +0 -3938
- 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/utilities.cjs +0 -66
- package/dist/deepkit/src/utilities.mjs +0 -65
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
- 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.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -60
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -54
- 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 -106
- package/dist/plugin-alloy/src/index.mjs +0 -104
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -7
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -9
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -5
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -7
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -17
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
- 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-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 -50
- package/dist/plugin-babel/src/helpers/options.mjs +0 -47
- package/dist/plugin-babel/src/index.cjs +0 -91
- package/dist/plugin-babel/src/index.mjs +0 -89
- package/dist/plugin-babel/src/types/index.d.mts +0 -1
- 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 -121
- package/dist/plugin-env/src/babel/plugin.mjs +0 -119
- package/dist/plugin-env/src/components/docs.cjs +0 -9
- package/dist/plugin-env/src/components/docs.mjs +0 -11
- package/dist/plugin-env/src/components/env.cjs +0 -575
- package/dist/plugin-env/src/components/env.mjs +0 -572
- 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/index.cjs +0 -6
- package/dist/plugin-env/src/helpers/index.mjs +0 -8
- package/dist/plugin-env/src/helpers/load.cjs +0 -83
- package/dist/plugin-env/src/helpers/load.mjs +0 -80
- 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 -111
- package/dist/plugin-env/src/helpers/reflect.mjs +0 -103
- 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 -175
- package/dist/plugin-env/src/index.mjs +0 -173
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -102
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -100
- package/dist/powerlines/src/lib/entry.cjs +0 -12
- package/dist/powerlines/src/lib/entry.mjs +0 -14
- 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/utilities/bundle.cjs +0 -35
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -34
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -30
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -29
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
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": ["homedir", "tmpdir"],
|
|
@@ -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: `These paths are determined based on the conventions for each operating system, with overrides available through specific environment variables:
|
|
95
95
|
- On macOS, directories are generally created in \`~/Library/Application Support/<name>\`.
|
|
96
96
|
- On Windows, directories are generally created in \`%AppData%/<name>\`.
|
|
97
97
|
- On Linux, directories are generally created in \`~/.config/<name>\` - this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/).
|
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.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() {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "../../../powerlines/src/types/resolved.mjs";
|
|
2
1
|
import { Children } from "@alloy-js/core";
|
|
3
|
-
import
|
|
2
|
+
import "@alloy-js/typescript";
|
|
4
3
|
|
|
5
4
|
//#region ../plugin-alloy/src/types/components.d.ts
|
|
6
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, TypescriptFileImports } from "../../types/components.mjs";
|
|
2
2
|
import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
|
|
3
3
|
import { Children } from "@alloy-js/core";
|
|
4
|
-
import
|
|
4
|
+
import "@alloy-js/typescript";
|
|
5
5
|
|
|
6
6
|
//#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
|
|
7
7
|
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "../../../powerlines/src/types/context.mjs";
|
|
2
|
-
import "../../../powerlines/src/types/config.mjs";
|
|
3
|
-
import "../../../powerlines/src/types/resolved.mjs";
|
|
4
1
|
import { TOCOptions } from "./toc.mjs";
|
|
5
2
|
import { Config } from "automd";
|
|
6
3
|
|
|
7
4
|
//#region ../plugin-automd/src/types/plugin.d.ts
|
|
5
|
+
|
|
8
6
|
type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
|
|
9
7
|
/**
|
|
10
8
|
* Path to the AutoMD configuration file.
|
|
@@ -3,11 +3,10 @@ import { Reflection } from "../../../deepkit/src/types.mjs";
|
|
|
3
3
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "../../../plugin-alloy/src/types/plugin.mjs";
|
|
4
4
|
import "../../../plugin-alloy/src/types/index.mjs";
|
|
5
5
|
import { AutoMDPluginOptions } from "../../../plugin-automd/src/types/plugin.mjs";
|
|
6
|
-
import "../../../plugin-babel/src/types/index.mjs";
|
|
7
6
|
import { EnvInterface, SecretsInterface } from "./runtime.mjs";
|
|
8
7
|
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
9
|
-
import { DotenvParseOutput } from "@stryke/env/types";
|
|
10
8
|
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
9
|
+
import { DotenvParseOutput } from "@stryke/env/types";
|
|
11
10
|
|
|
12
11
|
//#region ../plugin-env/src/types/plugin.d.ts
|
|
13
12
|
type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BuildOptions } from "esbuild";
|
|
2
1
|
import { DepOptimizationOptions, UserConfig } from "vite";
|
|
3
2
|
import { UserConfig as UserConfig$1 } from "@farmfe/core";
|
|
4
3
|
import { Configuration } from "@rspack/core";
|
|
5
|
-
import { BuildOptions
|
|
4
|
+
import { BuildOptions } from "@storm-software/tsup/types";
|
|
6
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
|
+
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
8
|
import { OutputOptions, RollupOptions } from "rollup";
|
|
9
9
|
import { UserConfig as UserConfig$2 } from "tsdown";
|
|
@@ -153,8 +153,8 @@ interface BuildConfig {
|
|
|
153
153
|
override?: Record<string, any>;
|
|
154
154
|
}
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
|
-
type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
|
-
type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
|
|
156
|
+
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
|
+
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
158
|
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
@@ -173,8 +173,8 @@ type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "o
|
|
|
173
173
|
type RollupResolvedBuildConfig = RollupOptions & BuildResolvedConfig;
|
|
174
174
|
type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfig" | "logLevel" | "output"> & BuildConfig;
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
|
-
type TsupBuildConfig = Partial<Omit<BuildOptions
|
|
177
|
-
type TsupResolvedBuildConfig = BuildOptions
|
|
176
|
+
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
|
+
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
178
|
type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
179
|
type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
@@ -4,14 +4,13 @@ import { Plugin } from "./plugin.mjs";
|
|
|
4
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
5
|
import { PluginContext } from "./context.mjs";
|
|
6
6
|
import { BabelTransformPluginOptions } from "./babel.mjs";
|
|
7
|
-
import { transformAsync } from "@babel/core";
|
|
8
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
9
|
-
import "c12";
|
|
10
7
|
import { MaybePromise } from "@stryke/types/base";
|
|
11
8
|
import { AssetGlob } from "@stryke/types/file";
|
|
12
9
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
10
|
import { PreviewOptions } from "vite";
|
|
11
|
+
import { transformAsync } from "@babel/core";
|
|
14
12
|
import { Format } from "@storm-software/build-tools/types";
|
|
13
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
15
14
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
16
15
|
import { DateString } from "compatx";
|
|
17
16
|
|
|
@@ -19,7 +19,7 @@ import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessag
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* The severity level of a
|
|
22
|
+
* The severity level of a log message.
|
|
23
23
|
*/
|
|
24
24
|
type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
|
|
25
25
|
declare const LogLevel: {
|
|
@@ -19,7 +19,7 @@ import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessag
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* The severity level of a
|
|
22
|
+
* The severity level of a log message.
|
|
23
23
|
*/
|
|
24
24
|
type LogLevel = "debug" | "info" | "warning" | "error" | "fatal";
|
|
25
25
|
declare const LogLevel: {
|
|
@@ -2,7 +2,6 @@ import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./
|
|
|
2
2
|
import { API } from "./api.mjs";
|
|
3
3
|
import { PluginHook } from "./plugin.mjs";
|
|
4
4
|
import { Context } from "./context.mjs";
|
|
5
|
-
import "./config.mjs";
|
|
6
5
|
import { InferResolvedConfig } from "./resolved.mjs";
|
|
7
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
8
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nodejs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a Node.js application.",
|
|
6
6
|
"repository": {
|
|
@@ -132,18 +132,20 @@
|
|
|
132
132
|
"keywords": ["nodejs", "powerlines", "storm-software", "powerlines-plugin"],
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@alloy-js/core": "^0.22.0",
|
|
135
|
-
"@alloy-js/json": "^0.22.0",
|
|
136
|
-
"@alloy-js/markdown": "^0.22.0",
|
|
137
135
|
"@alloy-js/typescript": "^0.22.0",
|
|
138
|
-
"@powerlines/plugin-alloy": "^0.18.
|
|
139
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
140
|
-
"@powerlines/plugin-env": "^0.15.
|
|
136
|
+
"@powerlines/plugin-alloy": "^0.18.12",
|
|
137
|
+
"@powerlines/plugin-babel": "^0.12.139",
|
|
138
|
+
"@powerlines/plugin-env": "^0.15.15",
|
|
141
139
|
"@storm-software/config-tools": "^1.188.75",
|
|
142
140
|
"@stryke/string-format": "^0.12.30",
|
|
143
141
|
"defu": "^6.1.4",
|
|
144
|
-
"powerlines": "^0.37.
|
|
142
|
+
"powerlines": "^0.37.4"
|
|
143
|
+
},
|
|
144
|
+
"devDependencies": {
|
|
145
|
+
"@babel/core": "^7.28.5",
|
|
146
|
+
"@powerlines/plugin-plugin": "^0.12.82",
|
|
147
|
+
"@types/node": "^24.10.4"
|
|
145
148
|
},
|
|
146
|
-
"devDependencies": { "@babel/core": "^7.28.5", "@types/node": "^24.10.4" },
|
|
147
149
|
"publishConfig": { "access": "public" },
|
|
148
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "48a35579bd5535a267a420c160c273899920b2e7"
|
|
149
151
|
}
|