@powerlines/plugin-nodejs 0.1.116 → 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.
Files changed (65) hide show
  1. package/dist/components/env.d.cts +1 -1
  2. package/dist/components/env.d.mts +1 -1
  3. package/dist/index.d.cts +1 -1
  4. package/dist/index.d.mts +1 -1
  5. package/dist/types/plugin.d.cts +2 -2
  6. package/dist/types/plugin.d.mts +2 -2
  7. package/package.json +6 -6
  8. package/dist/deepkit/schemas/reflection.d.cts +0 -1560
  9. package/dist/deepkit/schemas/reflection.d.mts +0 -1560
  10. package/dist/deepkit/src/types.d.cts +0 -10
  11. package/dist/deepkit/src/types.d.mts +0 -10
  12. package/dist/plugin-alloy/src/core/components/source-file.d.cts +0 -23
  13. package/dist/plugin-alloy/src/core/components/source-file.d.mts +0 -23
  14. package/dist/plugin-alloy/src/types/components.d.cts +0 -20
  15. package/dist/plugin-alloy/src/types/components.d.mts +0 -20
  16. package/dist/plugin-alloy/src/types/index.d.cts +0 -2
  17. package/dist/plugin-alloy/src/types/index.d.mts +0 -2
  18. package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
  19. package/dist/plugin-alloy/src/types/plugin.d.mts +0 -36
  20. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +0 -26
  21. package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
  22. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +0 -37
  23. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +0 -37
  24. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +0 -16
  25. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +0 -16
  26. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +0 -4
  27. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +0 -4
  28. package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
  29. package/dist/plugin-automd/src/types/plugin.d.mts +0 -38
  30. package/dist/plugin-automd/src/types/toc.d.cts +0 -33
  31. package/dist/plugin-automd/src/types/toc.d.mts +0 -33
  32. package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
  33. package/dist/plugin-babel/src/types/plugin.d.mts +0 -15
  34. package/dist/plugin-env/src/components/env.d.cts +0 -11
  35. package/dist/plugin-env/src/components/env.d.mts +0 -11
  36. package/dist/plugin-env/src/types/plugin.d.cts +0 -149
  37. package/dist/plugin-env/src/types/plugin.d.mts +0 -149
  38. package/dist/plugin-env/src/types/runtime.d.cts +0 -789
  39. package/dist/plugin-env/src/types/runtime.d.mts +0 -789
  40. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  41. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -47
  42. package/dist/powerlines/src/types/api.d.cts +0 -104
  43. package/dist/powerlines/src/types/api.d.mts +0 -104
  44. package/dist/powerlines/src/types/babel.d.cts +0 -22
  45. package/dist/powerlines/src/types/babel.d.mts +0 -22
  46. package/dist/powerlines/src/types/build.d.cts +0 -185
  47. package/dist/powerlines/src/types/build.d.mts +0 -185
  48. package/dist/powerlines/src/types/commands.d.cts +0 -8
  49. package/dist/powerlines/src/types/commands.d.mts +0 -8
  50. package/dist/powerlines/src/types/config.d.cts +0 -435
  51. package/dist/powerlines/src/types/config.d.mts +0 -435
  52. package/dist/powerlines/src/types/context.d.cts +0 -514
  53. package/dist/powerlines/src/types/context.d.mts +0 -514
  54. package/dist/powerlines/src/types/fs.d.cts +0 -486
  55. package/dist/powerlines/src/types/fs.d.mts +0 -486
  56. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  57. package/dist/powerlines/src/types/hooks.d.mts +0 -32
  58. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  59. package/dist/powerlines/src/types/plugin.d.mts +0 -205
  60. package/dist/powerlines/src/types/resolved.d.cts +0 -94
  61. package/dist/powerlines/src/types/resolved.d.mts +0 -94
  62. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  63. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  64. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
  65. package/dist/powerlines/src/types/unplugin.d.mts +0 -22
@@ -1,69 +0,0 @@
1
- import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
- import ts from "typescript";
3
-
4
- //#region ../powerlines/src/types/tsconfig.d.ts
5
- type ReflectionMode = "default" | "explicit" | "never";
6
- type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
7
- /**
8
- * Defines the level of reflection to be used during the transpilation process.
9
- *
10
- * @remarks
11
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
12
- * - `minimal` - Only the essential type information is captured.
13
- * - `normal` - Additional type information is captured, including some contextual data.
14
- * - `verbose` - All available type information is captured, including detailed contextual data.
15
- */
16
- type ReflectionLevel = "minimal" | "normal" | "verbose";
17
- interface DeepkitOptions {
18
- /**
19
- * Either true to activate reflection for all files compiled using this tsconfig,
20
- * or a list of globs/file paths relative to this tsconfig.json.
21
- * Globs/file paths can be prefixed with a ! to exclude them.
22
- */
23
- reflection?: RawReflectionMode;
24
- /**
25
- * Defines the level of reflection to be used during the transpilation process.
26
- *
27
- * @remarks
28
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
29
- * - `minimal` - Only the essential type information is captured.
30
- * - `normal` - Additional type information is captured, including some contextual data.
31
- * - `verbose` - All available type information is captured, including detailed contextual data.
32
- */
33
- reflectionLevel?: ReflectionLevel;
34
- }
35
- type TSCompilerOptions = CompilerOptions & DeepkitOptions;
36
- /**
37
- * The TypeScript compiler configuration.
38
- *
39
- * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
40
- */
41
- interface TSConfig extends Omit<TsConfigJson, "reflection"> {
42
- /**
43
- * Either true to activate reflection for all files compiled using this tsconfig,
44
- * or a list of globs/file paths relative to this tsconfig.json.
45
- * Globs/file paths can be prefixed with a ! to exclude them.
46
- */
47
- reflection?: RawReflectionMode;
48
- /**
49
- * Defines the level of reflection to be used during the transpilation process.
50
- *
51
- * @remarks
52
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
53
- * - `minimal` - Only the essential type information is captured.
54
- * - `normal` - Additional type information is captured, including some contextual data.
55
- * - `verbose` - All available type information is captured, including detailed contextual data.
56
- */
57
- reflectionLevel?: ReflectionLevel;
58
- /**
59
- * Instructs the TypeScript compiler how to compile `.ts` files.
60
- */
61
- compilerOptions?: TSCompilerOptions;
62
- }
63
- type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
64
- originalTsconfigJson: TsConfigJson;
65
- tsconfigJson: TSConfig;
66
- tsconfigFilePath: string;
67
- };
68
- //#endregion
69
- export { ParsedTypeScriptConfig, TSConfig };
@@ -1,69 +0,0 @@
1
- import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
- import ts from "typescript";
3
-
4
- //#region ../powerlines/src/types/tsconfig.d.ts
5
- type ReflectionMode = "default" | "explicit" | "never";
6
- type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
7
- /**
8
- * Defines the level of reflection to be used during the transpilation process.
9
- *
10
- * @remarks
11
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
12
- * - `minimal` - Only the essential type information is captured.
13
- * - `normal` - Additional type information is captured, including some contextual data.
14
- * - `verbose` - All available type information is captured, including detailed contextual data.
15
- */
16
- type ReflectionLevel = "minimal" | "normal" | "verbose";
17
- interface DeepkitOptions {
18
- /**
19
- * Either true to activate reflection for all files compiled using this tsconfig,
20
- * or a list of globs/file paths relative to this tsconfig.json.
21
- * Globs/file paths can be prefixed with a ! to exclude them.
22
- */
23
- reflection?: RawReflectionMode;
24
- /**
25
- * Defines the level of reflection to be used during the transpilation process.
26
- *
27
- * @remarks
28
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
29
- * - `minimal` - Only the essential type information is captured.
30
- * - `normal` - Additional type information is captured, including some contextual data.
31
- * - `verbose` - All available type information is captured, including detailed contextual data.
32
- */
33
- reflectionLevel?: ReflectionLevel;
34
- }
35
- type TSCompilerOptions = CompilerOptions & DeepkitOptions;
36
- /**
37
- * The TypeScript compiler configuration.
38
- *
39
- * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
40
- */
41
- interface TSConfig extends Omit<TsConfigJson, "reflection"> {
42
- /**
43
- * Either true to activate reflection for all files compiled using this tsconfig,
44
- * or a list of globs/file paths relative to this tsconfig.json.
45
- * Globs/file paths can be prefixed with a ! to exclude them.
46
- */
47
- reflection?: RawReflectionMode;
48
- /**
49
- * Defines the level of reflection to be used during the transpilation process.
50
- *
51
- * @remarks
52
- * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
53
- * - `minimal` - Only the essential type information is captured.
54
- * - `normal` - Additional type information is captured, including some contextual data.
55
- * - `verbose` - All available type information is captured, including detailed contextual data.
56
- */
57
- reflectionLevel?: ReflectionLevel;
58
- /**
59
- * Instructs the TypeScript compiler how to compile `.ts` files.
60
- */
61
- compilerOptions?: TSCompilerOptions;
62
- }
63
- type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
64
- originalTsconfigJson: TsConfigJson;
65
- tsconfigJson: TSConfig;
66
- tsconfigFilePath: string;
67
- };
68
- //#endregion
69
- export { ParsedTypeScriptConfig, TSConfig };
@@ -1,22 +0,0 @@
1
- import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.cjs";
2
- import { API } from "./api.cjs";
3
- import { PluginHook } from "./plugin.cjs";
4
- import { Context } from "./context.cjs";
5
- import { InferResolvedConfig } from "./resolved.cjs";
6
- import { MaybePromise } from "@stryke/types/base";
7
- import { HookFilter, UnpluginOptions } from "unplugin";
8
-
9
- //#region ../powerlines/src/types/unplugin.d.ts
10
- interface UnpluginOptions$1<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions {
11
- /**
12
- * An API object that can be used for inter-plugin communication.
13
- *
14
- * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
15
- */
16
- api: API<InferResolvedConfig<TUnpluginBuilderVariant>>;
17
- }
18
- type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = { [TKey in keyof Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant]]?: Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] extends infer THandler | {
19
- handler: infer THandler;
20
- } ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] };
21
- //#endregion
22
- export { InferUnpluginOptions };
@@ -1,22 +0,0 @@
1
- import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
2
- import { API } from "./api.mjs";
3
- import { PluginHook } from "./plugin.mjs";
4
- import { Context } from "./context.mjs";
5
- import { InferResolvedConfig } from "./resolved.mjs";
6
- import { MaybePromise } from "@stryke/types/base";
7
- import { HookFilter, UnpluginOptions } from "unplugin";
8
-
9
- //#region ../powerlines/src/types/unplugin.d.ts
10
- interface UnpluginOptions$1<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions {
11
- /**
12
- * An API object that can be used for inter-plugin communication.
13
- *
14
- * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
15
- */
16
- api: API<InferResolvedConfig<TUnpluginBuilderVariant>>;
17
- }
18
- type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = { [TKey in keyof Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant]]?: Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] extends infer THandler | {
19
- handler: infer THandler;
20
- } ? THandler extends ((this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn) ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] : Required<UnpluginOptions$1<TUnpluginVariant>>[TUnpluginVariant][TKey] };
21
- //#endregion
22
- export { InferUnpluginOptions };