@powerlines/plugin-alloy 0.18.46 → 0.18.47
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/core/components/output.cjs +2 -2
- package/dist/core/components/output.mjs +4 -4
- package/dist/core/contexts/context.cjs +1 -50
- package/dist/core/contexts/context.mjs +2 -46
- package/dist/index.cjs +2 -5
- package/dist/index.mjs +0 -3
- package/dist/powerlines/src/types/api.d.cts +3 -3
- package/dist/powerlines/src/types/api.d.mts +3 -3
- package/dist/powerlines/src/types/build.d.cts +10 -10
- package/dist/powerlines/src/types/build.d.mts +10 -10
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.cts +5 -5
- package/dist/powerlines/src/types/config.d.mts +5 -5
- package/dist/powerlines/src/types/context.d.cts +5 -5
- package/dist/powerlines/src/types/context.d.mts +5 -5
- package/dist/powerlines/src/types/hooks.d.cts +1 -1
- package/dist/powerlines/src/types/hooks.d.mts +1 -1
- package/dist/powerlines/src/types/plugin.d.cts +5 -5
- package/dist/powerlines/src/types/plugin.d.mts +5 -5
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.cts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -9
- package/dist/types/plugin.d.mts +1 -9
- package/package.json +5 -5
- package/dist/core/components/index.cjs +0 -7
- package/dist/core/components/index.d.cts +0 -4
- package/dist/core/components/index.d.mts +0 -4
- package/dist/core/components/index.mjs +0 -5
- package/dist/core/components/output.d.cts +0 -23
- package/dist/core/components/output.d.mts +0 -23
- package/dist/core/components/single-line-comment.cjs +0 -22
- package/dist/core/components/single-line-comment.d.cts +0 -22
- package/dist/core/components/single-line-comment.d.mts +0 -22
- package/dist/core/components/single-line-comment.mjs +0 -21
- package/dist/core/components/source-file.cjs +0 -64
- package/dist/core/components/source-file.d.cts +0 -32
- package/dist/core/components/source-file.d.mts +0 -32
- package/dist/core/components/source-file.mjs +0 -62
- package/dist/core/contexts/context.d.cts +0 -71
- package/dist/core/contexts/context.d.mts +0 -71
- package/dist/core/contexts/index.cjs +0 -17
- package/dist/core/contexts/index.d.cts +0 -3
- package/dist/core/contexts/index.d.mts +0 -3
- package/dist/core/contexts/index.mjs +0 -4
- package/dist/core/contexts/reflection.cjs +0 -68
- package/dist/core/contexts/reflection.d.cts +0 -52
- package/dist/core/contexts/reflection.d.mts +0 -52
- package/dist/core/contexts/reflection.mjs +0 -60
- package/dist/core/index.cjs +0 -25
- package/dist/core/index.d.cts +0 -7
- package/dist/core/index.d.mts +0 -8
- package/dist/core/index.mjs +0 -9
- package/dist/helpers/capnp.cjs +0 -276
- package/dist/helpers/capnp.d.cts +0 -87
- package/dist/helpers/capnp.d.mts +0 -87
- package/dist/helpers/capnp.mjs +0 -259
- package/dist/helpers/create-builtin.cjs +0 -19
- package/dist/helpers/create-builtin.d.cts +0 -15
- package/dist/helpers/create-builtin.d.mts +0 -15
- package/dist/helpers/create-builtin.mjs +0 -18
- package/dist/helpers/index.cjs +0 -24
- package/dist/helpers/index.d.cts +0 -5
- package/dist/helpers/index.d.mts +0 -5
- package/dist/helpers/index.mjs +0 -6
- package/dist/helpers/refkey.cjs +0 -16
- package/dist/helpers/refkey.d.cts +0 -13
- package/dist/helpers/refkey.d.mts +0 -13
- package/dist/helpers/refkey.mjs +0 -15
- package/dist/helpers/typescript.cjs +0 -46
- package/dist/helpers/typescript.d.cts +0 -25
- package/dist/helpers/typescript.d.mts +0 -25
- package/dist/helpers/typescript.mjs +0 -45
- package/dist/markdown/components/index.cjs +0 -8
- package/dist/markdown/components/index.d.cts +0 -3
- package/dist/markdown/components/index.d.mts +0 -3
- package/dist/markdown/components/index.mjs +0 -4
- package/dist/markdown/components/markdown-file.cjs +0 -116
- package/dist/markdown/components/markdown-file.d.cts +0 -23
- package/dist/markdown/components/markdown-file.d.mts +0 -23
- package/dist/markdown/components/markdown-file.mjs +0 -114
- package/dist/markdown/components/markdown-table.cjs +0 -101
- package/dist/markdown/components/markdown-table.d.cts +0 -27
- package/dist/markdown/components/markdown-table.d.mts +0 -27
- package/dist/markdown/components/markdown-table.mjs +0 -98
- package/dist/markdown/contexts/index.cjs +0 -6
- package/dist/markdown/contexts/index.d.cts +0 -2
- package/dist/markdown/contexts/index.d.mts +0 -2
- package/dist/markdown/contexts/index.mjs +0 -3
- package/dist/markdown/contexts/markdown-table.cjs +0 -37
- package/dist/markdown/contexts/markdown-table.d.cts +0 -37
- package/dist/markdown/contexts/markdown-table.d.mts +0 -37
- package/dist/markdown/contexts/markdown-table.mjs +0 -33
- package/dist/markdown/index.cjs +0 -15
- package/dist/markdown/index.d.cts +0 -4
- package/dist/markdown/index.d.mts +0 -6
- package/dist/markdown/index.mjs +0 -7
- package/dist/types/components.cjs +0 -0
- package/dist/types/components.d.cts +0 -142
- package/dist/types/components.d.mts +0 -142
- package/dist/types/components.mjs +0 -1
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -3
- package/dist/types/index.d.mts +0 -3
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.mjs +0 -1
- package/dist/typescript/components/builtin-file.cjs +0 -62
- package/dist/typescript/components/builtin-file.d.cts +0 -34
- package/dist/typescript/components/builtin-file.d.mts +0 -34
- package/dist/typescript/components/builtin-file.mjs +0 -61
- package/dist/typescript/components/dynamic-import-statement.cjs +0 -25
- package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
- package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
- package/dist/typescript/components/dynamic-import-statement.mjs +0 -24
- package/dist/typescript/components/entry-file.cjs +0 -41
- package/dist/typescript/components/entry-file.d.cts +0 -27
- package/dist/typescript/components/entry-file.d.mts +0 -27
- package/dist/typescript/components/entry-file.mjs +0 -39
- package/dist/typescript/components/index.cjs +0 -44
- package/dist/typescript/components/index.d.cts +0 -10
- package/dist/typescript/components/index.d.mts +0 -10
- package/dist/typescript/components/index.mjs +0 -11
- package/dist/typescript/components/record-expression.cjs +0 -12
- package/dist/typescript/components/record-expression.d.cts +0 -12
- package/dist/typescript/components/record-expression.d.mts +0 -12
- package/dist/typescript/components/record-expression.mjs +0 -11
- package/dist/typescript/components/tsdoc-reflection.cjs +0 -177
- package/dist/typescript/components/tsdoc-reflection.d.cts +0 -18
- package/dist/typescript/components/tsdoc-reflection.d.mts +0 -18
- package/dist/typescript/components/tsdoc-reflection.mjs +0 -174
- package/dist/typescript/components/tsdoc.cjs +0 -481
- package/dist/typescript/components/tsdoc.d.cts +0 -163
- package/dist/typescript/components/tsdoc.d.mts +0 -163
- package/dist/typescript/components/tsdoc.mjs +0 -461
- package/dist/typescript/components/typescript-file.cjs +0 -216
- package/dist/typescript/components/typescript-file.d.cts +0 -49
- package/dist/typescript/components/typescript-file.d.mts +0 -49
- package/dist/typescript/components/typescript-file.mjs +0 -213
- package/dist/typescript/components/typescript-interface.cjs +0 -69
- package/dist/typescript/components/typescript-interface.d.cts +0 -25
- package/dist/typescript/components/typescript-interface.d.mts +0 -25
- package/dist/typescript/components/typescript-interface.mjs +0 -67
- package/dist/typescript/components/typescript-object.cjs +0 -125
- package/dist/typescript/components/typescript-object.d.cts +0 -26
- package/dist/typescript/components/typescript-object.d.mts +0 -26
- package/dist/typescript/components/typescript-object.mjs +0 -123
- package/dist/typescript/index.cjs +0 -45
- package/dist/typescript/index.d.cts +0 -11
- package/dist/typescript/index.d.mts +0 -11
- package/dist/typescript/index.mjs +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const
|
|
2
|
+
const require_context = require('../contexts/context.cjs');
|
|
3
3
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
4
|
let __alloy_js_core = require("@alloy-js/core");
|
|
5
5
|
let __stryke_path_replace = require("@stryke/path/replace");
|
|
@@ -23,7 +23,7 @@ function Output(props) {
|
|
|
23
23
|
return basePathRef.value;
|
|
24
24
|
},
|
|
25
25
|
get children() {
|
|
26
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
26
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_context.PowerlinesContext.Provider, {
|
|
27
27
|
value: {
|
|
28
28
|
ref: contextRef,
|
|
29
29
|
meta: metaRef
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
2
2
|
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
|
-
import { Output
|
|
3
|
+
import { Output, Show, computed, ref, splitProps } from "@alloy-js/core";
|
|
4
4
|
import { replacePath } from "@stryke/path/replace";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/output.tsx
|
|
7
7
|
/**
|
|
8
8
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
9
9
|
*/
|
|
10
|
-
function Output(props) {
|
|
10
|
+
function Output$1(props) {
|
|
11
11
|
const [{ children, context, meta, basePath }, rest] = splitProps(props, [
|
|
12
12
|
"children",
|
|
13
13
|
"context",
|
|
@@ -17,7 +17,7 @@ function Output(props) {
|
|
|
17
17
|
const contextRef = ref(context);
|
|
18
18
|
const metaRef = ref(meta ?? {});
|
|
19
19
|
const basePathRef = computed(() => basePath ? replacePath(basePath, contextRef.value.workspaceConfig.workspaceRoot) : contextRef.value.workspaceConfig.workspaceRoot);
|
|
20
|
-
return createComponent(Output
|
|
20
|
+
return createComponent(Output, mergeProps(rest, {
|
|
21
21
|
get basePath() {
|
|
22
22
|
return basePathRef.value;
|
|
23
23
|
},
|
|
@@ -41,4 +41,4 @@ function Output(props) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
|
-
export { Output };
|
|
44
|
+
export { Output$1 as Output };
|
|
@@ -6,55 +6,6 @@ let __alloy_js_core = require("@alloy-js/core");
|
|
|
6
6
|
* The Powerlines context used in template rendering.
|
|
7
7
|
*/
|
|
8
8
|
const PowerlinesContext = (0, __alloy_js_core.createNamedContext)("powerlines");
|
|
9
|
-
/**
|
|
10
|
-
* Hook to access the Powerlines Context.
|
|
11
|
-
*
|
|
12
|
-
* @returns The Context.
|
|
13
|
-
*/
|
|
14
|
-
function usePowerlinesContext() {
|
|
15
|
-
return (0, __alloy_js_core.useContext)(PowerlinesContext);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
19
|
-
*
|
|
20
|
-
* @returns The Powerlines context or undefined if not set.
|
|
21
|
-
*/
|
|
22
|
-
function usePowerlinesSafe() {
|
|
23
|
-
return usePowerlinesContext()?.ref?.value;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
27
|
-
*
|
|
28
|
-
* @returns The Powerlines context.
|
|
29
|
-
*/
|
|
30
|
-
function usePowerlines() {
|
|
31
|
-
const powerlines = usePowerlinesSafe();
|
|
32
|
-
if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
33
|
-
return powerlines;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Hook to safely access the render context's metadata.
|
|
37
|
-
*
|
|
38
|
-
* @returns The Powerlines context or undefined if not set.
|
|
39
|
-
*/
|
|
40
|
-
function useMetaSafe() {
|
|
41
|
-
return usePowerlinesContext()?.meta?.value;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Hook to access the render context's metadata.
|
|
45
|
-
*
|
|
46
|
-
* @returns The Powerlines context.
|
|
47
|
-
*/
|
|
48
|
-
function useMeta() {
|
|
49
|
-
const meta = useMetaSafe();
|
|
50
|
-
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
51
|
-
return meta;
|
|
52
|
-
}
|
|
53
9
|
|
|
54
10
|
//#endregion
|
|
55
|
-
exports.PowerlinesContext = PowerlinesContext;
|
|
56
|
-
exports.useMeta = useMeta;
|
|
57
|
-
exports.useMetaSafe = useMetaSafe;
|
|
58
|
-
exports.usePowerlines = usePowerlines;
|
|
59
|
-
exports.usePowerlinesContext = usePowerlinesContext;
|
|
60
|
-
exports.usePowerlinesSafe = usePowerlinesSafe;
|
|
11
|
+
exports.PowerlinesContext = PowerlinesContext;
|
|
@@ -1,54 +1,10 @@
|
|
|
1
|
-
import { createNamedContext
|
|
1
|
+
import { createNamedContext } from "@alloy-js/core";
|
|
2
2
|
|
|
3
3
|
//#region src/core/contexts/context.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Powerlines context used in template rendering.
|
|
6
6
|
*/
|
|
7
7
|
const PowerlinesContext = createNamedContext("powerlines");
|
|
8
|
-
/**
|
|
9
|
-
* Hook to access the Powerlines Context.
|
|
10
|
-
*
|
|
11
|
-
* @returns The Context.
|
|
12
|
-
*/
|
|
13
|
-
function usePowerlinesContext() {
|
|
14
|
-
return useContext(PowerlinesContext);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Hook to safely access the {@link PluginContext | Powerlines context}.
|
|
18
|
-
*
|
|
19
|
-
* @returns The Powerlines context or undefined if not set.
|
|
20
|
-
*/
|
|
21
|
-
function usePowerlinesSafe() {
|
|
22
|
-
return usePowerlinesContext()?.ref?.value;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Hook to access the {@link PluginContext | Powerlines context}.
|
|
26
|
-
*
|
|
27
|
-
* @returns The Powerlines context.
|
|
28
|
-
*/
|
|
29
|
-
function usePowerlines() {
|
|
30
|
-
const powerlines = usePowerlinesSafe();
|
|
31
|
-
if (!powerlines) throw new Error("Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
32
|
-
return powerlines;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Hook to safely access the render context's metadata.
|
|
36
|
-
*
|
|
37
|
-
* @returns The Powerlines context or undefined if not set.
|
|
38
|
-
*/
|
|
39
|
-
function useMetaSafe() {
|
|
40
|
-
return usePowerlinesContext()?.meta?.value;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Hook to access the render context's metadata.
|
|
44
|
-
*
|
|
45
|
-
* @returns The Powerlines context.
|
|
46
|
-
*/
|
|
47
|
-
function useMeta() {
|
|
48
|
-
const meta = useMetaSafe();
|
|
49
|
-
if (!meta) throw new Error("Powerlines metadata is not available in the rendering context. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.");
|
|
50
|
-
return meta;
|
|
51
|
-
}
|
|
52
8
|
|
|
53
9
|
//#endregion
|
|
54
|
-
export { PowerlinesContext
|
|
10
|
+
export { PowerlinesContext };
|
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
|
|
3
|
+
const require_output = require('./core/components/output.cjs');
|
|
4
4
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
5
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
6
|
let __alloy_js_rollup_plugin = require("@alloy-js/rollup-plugin");
|
|
@@ -48,9 +48,6 @@ const plugin = (options = {}) => {
|
|
|
48
48
|
if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
|
|
49
49
|
await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
50
50
|
}
|
|
51
|
-
if (this.config.alloy?.typescript !== false) this.dependencies["@alloy-js/typescript"] = "^0.22.0";
|
|
52
|
-
if (this.config.alloy?.json === true) this.dependencies["@alloy-js/json"] = "^0.22.0";
|
|
53
|
-
if (this.config.alloy?.markdown === true) this.dependencies["@alloy-js/markdown"] = "^0.22.0";
|
|
54
51
|
}
|
|
55
52
|
}, {
|
|
56
53
|
name: "alloy:update-context",
|
|
@@ -60,7 +57,7 @@ const plugin = (options = {}) => {
|
|
|
60
57
|
async function render(children) {
|
|
61
58
|
const _self$ = this;
|
|
62
59
|
const meta = {};
|
|
63
|
-
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
60
|
+
await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
|
|
64
61
|
context: _self$,
|
|
65
62
|
meta,
|
|
66
63
|
get basePath() {
|
package/dist/index.mjs
CHANGED
|
@@ -45,9 +45,6 @@ const plugin = (options = {}) => {
|
|
|
45
45
|
if (this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource !== "@alloy-js/core") this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource = "@alloy-js/core";
|
|
46
46
|
await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
47
47
|
}
|
|
48
|
-
if (this.config.alloy?.typescript !== false) this.dependencies["@alloy-js/typescript"] = "^0.22.0";
|
|
49
|
-
if (this.config.alloy?.json === true) this.dependencies["@alloy-js/json"] = "^0.22.0";
|
|
50
|
-
if (this.config.alloy?.markdown === true) this.dependencies["@alloy-js/markdown"] = "^0.22.0";
|
|
51
48
|
}
|
|
52
49
|
}, {
|
|
53
50
|
name: "alloy:update-context",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.cjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
-
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
4
1
|
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.cjs";
|
|
2
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.cjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.cjs";
|
|
5
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.cjs";
|
|
5
|
+
import { CallHookOptions } from "../internal/helpers/hooks.cjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ResolvedConfig } from "./resolved.mjs";
|
|
2
|
-
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
-
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
4
1
|
import { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, LintInlineConfig, NewInlineConfig, PrepareInlineConfig } from "./config.mjs";
|
|
2
|
+
import { InferHookParameters, InferHookReturnType } from "./hooks.mjs";
|
|
3
|
+
import { ResolvedConfig } from "./resolved.mjs";
|
|
5
4
|
import { APIContext, EnvironmentContext, PluginContext } from "./context.mjs";
|
|
5
|
+
import { CallHookOptions } from "../internal/helpers/hooks.mjs";
|
|
6
6
|
|
|
7
7
|
//#region ../powerlines/src/types/api.d.ts
|
|
8
8
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig
|
|
1
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
2
|
+
import { UserConfig } from "@farmfe/core";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import { UserConfig as UserConfig$2 } from "
|
|
8
|
+
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
|
+
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
@@ -155,13 +155,13 @@ interface BuildConfig {
|
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
156
|
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig$2, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
161
161
|
*/
|
|
162
162
|
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
163
|
};
|
|
164
|
-
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
165
165
|
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
166
|
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
167
|
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
@@ -175,11 +175,11 @@ type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfi
|
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
176
|
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$1, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
181
|
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
-
type FarmBuildConfig = Partial<Omit<UserConfig
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig
|
|
1
|
+
import { OutputOptions, RollupOptions } from "rollup";
|
|
2
|
+
import { UserConfig } from "@farmfe/core";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
5
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
6
|
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
|
-
import {
|
|
9
|
-
import { UserConfig as UserConfig$2 } from "
|
|
8
|
+
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
|
+
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
10
10
|
import { Configuration as Configuration$1 } from "webpack";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/build.d.ts
|
|
@@ -155,13 +155,13 @@ interface BuildConfig {
|
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
156
|
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
157
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
|
-
type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
158
|
+
type ViteBuildConfig = Omit<UserConfig$2, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
161
161
|
*/
|
|
162
162
|
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
163
163
|
};
|
|
164
|
-
type ViteResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
164
|
+
type ViteResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
|
|
165
165
|
type WebpackBuildConfig = Omit<Configuration$1, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
166
166
|
type WebpackResolvedBuildConfig = Configuration$1 & BuildResolvedConfig;
|
|
167
167
|
type RspackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
@@ -175,11 +175,11 @@ type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfi
|
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
176
|
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
177
|
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
|
-
type TsdownBuildConfig = Partial<Omit<UserConfig$
|
|
179
|
-
type TsdownResolvedBuildConfig = UserConfig$
|
|
178
|
+
type TsdownBuildConfig = Partial<Omit<UserConfig$1, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
|
+
type TsdownResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
181
181
|
type UnbuildResolvedBuildConfig = UnbuildOptions & BuildResolvedConfig;
|
|
182
|
-
type FarmBuildConfig = Partial<Omit<UserConfig
|
|
183
|
-
type FarmResolvedBuildConfig = UserConfig
|
|
182
|
+
type FarmBuildConfig = Partial<Omit<UserConfig, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
183
|
+
type FarmResolvedBuildConfig = UserConfig & BuildResolvedConfig;
|
|
184
184
|
//#endregion
|
|
185
185
|
export { BuildConfig, BuildResolvedConfig, BuilderVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuilderVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
2
1
|
import { ArrayValues } from "@stryke/types/array";
|
|
2
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MaybePromise } from "@stryke/types/base";
|
|
2
1
|
import { ArrayValues } from "@stryke/types/array";
|
|
2
|
+
import { MaybePromise } from "@stryke/types/base";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.cjs";
|
|
2
2
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
3
|
-
import { Plugin } from "./plugin.cjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.cjs";
|
|
5
4
|
import { PluginContext } from "./context.cjs";
|
|
5
|
+
import { Plugin } from "./plugin.cjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
+
import { PreviewOptions } from "vite";
|
|
7
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
8
9
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
9
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
10
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
11
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
12
13
|
import { DateString } from "compatx";
|
|
13
|
-
import { PreviewOptions } from "vite";
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
@@ -297,14 +297,14 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
297
297
|
*/
|
|
298
298
|
configFile?: string;
|
|
299
299
|
/**
|
|
300
|
-
* Should the Powerlines
|
|
300
|
+
* Should the Powerlines processes automatically install missing package dependencies?
|
|
301
301
|
*
|
|
302
302
|
* @remarks
|
|
303
|
-
* This
|
|
303
|
+
* When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
|
|
304
304
|
*
|
|
305
305
|
* @defaultValue false
|
|
306
306
|
*/
|
|
307
|
-
|
|
307
|
+
autoInstall?: boolean;
|
|
308
308
|
/**
|
|
309
309
|
* Should the compiler processes skip any improvements that make use of cache?
|
|
310
310
|
*
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
2
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
3
|
-
import { Plugin } from "./plugin.mjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
4
|
import { PluginContext } from "./context.mjs";
|
|
5
|
+
import { Plugin } from "./plugin.mjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
|
+
import { PreviewOptions } from "vite";
|
|
7
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
8
9
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
9
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
10
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
11
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
12
13
|
import { DateString } from "compatx";
|
|
13
|
-
import { PreviewOptions } from "vite";
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
@@ -297,14 +297,14 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
297
297
|
*/
|
|
298
298
|
configFile?: string;
|
|
299
299
|
/**
|
|
300
|
-
* Should the Powerlines
|
|
300
|
+
* Should the Powerlines processes automatically install missing package dependencies?
|
|
301
301
|
*
|
|
302
302
|
* @remarks
|
|
303
|
-
* This
|
|
303
|
+
* When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
|
|
304
304
|
*
|
|
305
305
|
* @defaultValue false
|
|
306
306
|
*/
|
|
307
|
-
|
|
307
|
+
autoInstall?: boolean;
|
|
308
308
|
/**
|
|
309
309
|
* Should the compiler processes skip any improvements that make use of cache?
|
|
310
310
|
*
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
3
|
-
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
4
|
-
import { Plugin } from "./plugin.cjs";
|
|
5
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
6
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.cjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
6
|
+
import { Plugin } from "./plugin.cjs";
|
|
7
|
+
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
7
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
8
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
9
|
-
import { NonUndefined } from "@stryke/types/base";
|
|
10
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
11
12
|
import { Jiti } from "jiti";
|
|
12
13
|
import { SourceMap } from "magic-string";
|
|
@@ -14,7 +15,6 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
14
15
|
import { Range } from "semver";
|
|
15
16
|
import { Project } from "ts-morph";
|
|
16
17
|
import { RequestInfo, Response } from "undici";
|
|
17
|
-
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
3
|
-
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
4
|
-
import { Plugin } from "./plugin.mjs";
|
|
5
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
|
|
6
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
4
|
+
import { HooksList, InferHooksListItem } from "./hooks.mjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
6
|
+
import { Plugin } from "./plugin.mjs";
|
|
7
|
+
import { NonUndefined } from "@stryke/types/base";
|
|
8
|
+
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
7
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
8
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
9
|
-
import { NonUndefined } from "@stryke/types/base";
|
|
10
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
11
12
|
import { Jiti } from "jiti";
|
|
12
13
|
import { SourceMap } from "magic-string";
|
|
@@ -14,7 +15,6 @@ import { ParseResult, ParserOptions } from "oxc-parser";
|
|
|
14
15
|
import { Range } from "semver";
|
|
15
16
|
import { Project } from "ts-morph";
|
|
16
17
|
import { RequestInfo, Response } from "undici";
|
|
17
|
-
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
18
18
|
|
|
19
19
|
//#region ../powerlines/src/types/context.d.ts
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.cjs";
|
|
2
|
-
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.cjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.cjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnpluginBuilderVariant } from "./build.mjs";
|
|
2
|
-
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
3
2
|
import { PluginContext, WithUnpluginBuildContext } from "./context.mjs";
|
|
3
|
+
import { Plugin, PluginHookFields, PluginHookFunctions } from "./plugin.mjs";
|
|
4
4
|
import { UnpluginOptions } from "unplugin";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/hooks.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import { CommandType } from "./commands.cjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
5
2
|
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
6
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
5
|
+
import { CommandType } from "./commands.cjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.cjs";
|
|
7
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
7
8
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
8
|
-
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
9
|
import { LoadResult } from "rollup";
|
|
10
|
-
import {
|
|
10
|
+
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
|
-
import { CommandType } from "./commands.mjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
5
2
|
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
3
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
6
4
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
5
|
+
import { CommandType } from "./commands.mjs";
|
|
6
|
+
import { InferUnpluginOptions } from "./unplugin.mjs";
|
|
7
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
7
8
|
import { AnyFunction, MaybePromise } from "@stryke/types/base";
|
|
8
|
-
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
9
9
|
import { LoadResult } from "rollup";
|
|
10
|
-
import {
|
|
10
|
+
import { ExternalIdResult, HookFilter, TransformResult } from "unplugin";
|
|
11
11
|
|
|
12
12
|
//#region ../powerlines/src/types/plugin.d.ts
|
|
13
13
|
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
4
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
6
|
import { AssetGlob } from "@stryke/types/file";
|
|
6
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../powerlines/src/types/resolved.d.ts
|
|
9
9
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
2
|
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
|
+
import { ResolvedPreviewOptions } from "vite";
|
|
4
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
6
|
import { AssetGlob } from "@stryke/types/file";
|
|
6
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../powerlines/src/types/resolved.d.ts
|
|
9
9
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.cjs";
|
|
2
2
|
import { InferResolvedConfig } from "./resolved.cjs";
|
|
3
|
+
import { Context } from "./context.cjs";
|
|
3
4
|
import { API } from "./api.cjs";
|
|
4
5
|
import { PluginHook } from "./plugin.cjs";
|
|
5
|
-
import { Context } from "./context.cjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
|
|
2
2
|
import { InferResolvedConfig } from "./resolved.mjs";
|
|
3
|
+
import { Context } from "./context.mjs";
|
|
3
4
|
import { API } from "./api.mjs";
|
|
4
5
|
import { PluginHook } from "./plugin.mjs";
|
|
5
|
-
import { Context } from "./context.mjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { HookFilter, UnpluginOptions } from "unplugin";
|
|
8
8
|
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
2
|
-
import { UserConfig } from "../powerlines/src/types/config.cjs";
|
|
3
2
|
import { PluginContext } from "../powerlines/src/types/context.cjs";
|
|
4
3
|
import { Children, PrintTreeOptions } from "@alloy-js/core";
|
|
5
4
|
|
|
@@ -24,18 +23,11 @@ type AlloyPluginOptions = Partial<PrintTreeOptions> & {
|
|
|
24
23
|
*/
|
|
25
24
|
markdown?: boolean;
|
|
26
25
|
};
|
|
27
|
-
type AlloyPluginUserConfig = UserConfig & {
|
|
28
|
-
alloy?: AlloyPluginOptions;
|
|
29
|
-
};
|
|
30
26
|
type AlloyPluginResolvedConfig = ResolvedConfig & {
|
|
31
27
|
alloy: AlloyPluginOptions;
|
|
32
28
|
};
|
|
33
29
|
type AlloyPluginContext<TResolvedConfig extends AlloyPluginResolvedConfig = AlloyPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
34
30
|
render: <TContext extends AlloyPluginContext>(this: TContext, children: Children) => Promise<void>;
|
|
35
31
|
};
|
|
36
|
-
declare type __ΩAlloyPluginOptions = any[];
|
|
37
|
-
declare type __ΩAlloyPluginUserConfig = any[];
|
|
38
|
-
declare type __ΩAlloyPluginResolvedConfig = any[];
|
|
39
|
-
declare type __ΩAlloyPluginContext = any[];
|
|
40
32
|
//#endregion
|
|
41
|
-
export { AlloyPluginContext, AlloyPluginOptions
|
|
33
|
+
export { AlloyPluginContext, AlloyPluginOptions };
|