@powerlines/plugin-vite 0.14.233 → 0.14.235

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 (120) hide show
  1. package/dist/helpers/unplugin.cjs +2 -3
  2. package/dist/helpers/unplugin.mjs +1 -2
  3. package/dist/index.cjs +4 -4
  4. package/dist/index.d.cts +3 -2
  5. package/dist/index.d.mts +1 -1
  6. package/dist/index.mjs +3 -3
  7. package/dist/types/internal.d.cts +1 -1
  8. package/dist/types/internal.d.mts +1 -1
  9. package/dist/types/plugin.d.cts +4 -4
  10. package/dist/types/plugin.d.mts +4 -4
  11. package/package.json +108 -17
  12. package/dist/powerlines/package.cjs +0 -11
  13. package/dist/powerlines/package.mjs +0 -5
  14. package/dist/powerlines/schemas/fs.cjs +0 -226
  15. package/dist/powerlines/schemas/fs.mjs +0 -224
  16. package/dist/powerlines/src/api.cjs +0 -568
  17. package/dist/powerlines/src/api.mjs +0 -566
  18. package/dist/powerlines/src/internal/helpers/environment.cjs +0 -50
  19. package/dist/powerlines/src/internal/helpers/environment.mjs +0 -47
  20. package/dist/powerlines/src/internal/helpers/generate-types.cjs +0 -78
  21. package/dist/powerlines/src/internal/helpers/generate-types.mjs +0 -76
  22. package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -65
  23. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  24. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
  25. package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -63
  26. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +0 -24
  27. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +0 -23
  28. package/dist/powerlines/src/internal/helpers/install.cjs +0 -36
  29. package/dist/powerlines/src/internal/helpers/install.mjs +0 -35
  30. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +0 -97
  31. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +0 -93
  32. package/dist/powerlines/src/internal/helpers/resolver.cjs +0 -43
  33. package/dist/powerlines/src/internal/helpers/resolver.mjs +0 -41
  34. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -93
  35. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -91
  36. package/dist/powerlines/src/lib/build/vite.cjs +0 -66
  37. package/dist/powerlines/src/lib/build/vite.mjs +0 -63
  38. package/dist/powerlines/src/lib/config-file.cjs +0 -79
  39. package/dist/powerlines/src/lib/config-file.mjs +0 -76
  40. package/dist/powerlines/src/lib/constants/environments.cjs +0 -8
  41. package/dist/powerlines/src/lib/constants/environments.mjs +0 -6
  42. package/dist/powerlines/src/lib/contexts/api-context.cjs +0 -184
  43. package/dist/powerlines/src/lib/contexts/api-context.mjs +0 -182
  44. package/dist/powerlines/src/lib/contexts/context.cjs +0 -951
  45. package/dist/powerlines/src/lib/contexts/context.mjs +0 -949
  46. package/dist/powerlines/src/lib/contexts/environment-context.cjs +0 -195
  47. package/dist/powerlines/src/lib/contexts/environment-context.mjs +0 -194
  48. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +0 -78
  49. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +0 -77
  50. package/dist/powerlines/src/lib/entry.cjs +0 -85
  51. package/dist/powerlines/src/lib/entry.mjs +0 -83
  52. package/dist/powerlines/src/lib/fs/helpers.cjs +0 -85
  53. package/dist/powerlines/src/lib/fs/helpers.mjs +0 -81
  54. package/dist/powerlines/src/lib/fs/storage/base.cjs +0 -196
  55. package/dist/powerlines/src/lib/fs/storage/base.mjs +0 -195
  56. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +0 -170
  57. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +0 -169
  58. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +0 -88
  59. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +0 -87
  60. package/dist/powerlines/src/lib/fs/vfs.cjs +0 -912
  61. package/dist/powerlines/src/lib/fs/vfs.mjs +0 -910
  62. package/dist/powerlines/src/lib/logger.cjs +0 -58
  63. package/dist/powerlines/src/lib/logger.mjs +0 -55
  64. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +0 -103
  65. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +0 -101
  66. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -149
  67. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -144
  68. package/dist/powerlines/src/lib/unplugin/factory.cjs +0 -6
  69. package/dist/powerlines/src/lib/unplugin/factory.mjs +0 -8
  70. package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -29
  71. package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -27
  72. package/dist/powerlines/src/lib/unplugin/index.cjs +0 -4
  73. package/dist/powerlines/src/lib/unplugin/index.mjs +0 -6
  74. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +0 -66
  75. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +0 -65
  76. package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -71
  77. package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -70
  78. package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
  79. package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
  80. package/dist/powerlines/src/lib/utilities/format.cjs +0 -48
  81. package/dist/powerlines/src/lib/utilities/format.mjs +0 -46
  82. package/dist/powerlines/src/lib/utilities/meta.cjs +0 -44
  83. package/dist/powerlines/src/lib/utilities/meta.mjs +0 -40
  84. package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -22
  85. package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -21
  86. package/dist/powerlines/src/plugin-utils/helpers.cjs +0 -167
  87. package/dist/powerlines/src/plugin-utils/helpers.mjs +0 -156
  88. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -36
  89. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -35
  90. package/dist/powerlines/src/types/api.d.cts +0 -104
  91. package/dist/powerlines/src/types/api.d.mts +0 -104
  92. package/dist/powerlines/src/types/babel.d.mts +0 -2
  93. package/dist/powerlines/src/types/build.cjs +0 -23
  94. package/dist/powerlines/src/types/build.d.cts +0 -185
  95. package/dist/powerlines/src/types/build.d.mts +0 -185
  96. package/dist/powerlines/src/types/build.mjs +0 -21
  97. package/dist/powerlines/src/types/commands.cjs +0 -16
  98. package/dist/powerlines/src/types/commands.d.cts +0 -8
  99. package/dist/powerlines/src/types/commands.d.mts +0 -9
  100. package/dist/powerlines/src/types/commands.mjs +0 -15
  101. package/dist/powerlines/src/types/config.d.cts +0 -425
  102. package/dist/powerlines/src/types/config.d.mts +0 -425
  103. package/dist/powerlines/src/types/context.d.cts +0 -514
  104. package/dist/powerlines/src/types/context.d.mts +0 -514
  105. package/dist/powerlines/src/types/fs.d.cts +0 -486
  106. package/dist/powerlines/src/types/fs.d.mts +0 -486
  107. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  108. package/dist/powerlines/src/types/hooks.d.mts +0 -32
  109. package/dist/powerlines/src/types/internal.d.cts +0 -60
  110. package/dist/powerlines/src/types/internal.d.mts +0 -60
  111. package/dist/powerlines/src/types/plugin.cjs +0 -33
  112. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  113. package/dist/powerlines/src/types/plugin.d.mts +0 -205
  114. package/dist/powerlines/src/types/plugin.mjs +0 -32
  115. package/dist/powerlines/src/types/resolved.d.cts +0 -93
  116. package/dist/powerlines/src/types/resolved.d.mts +0 -93
  117. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  118. package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
  119. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
  120. package/dist/powerlines/src/types/unplugin.d.mts +0 -23
@@ -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 ts from "typescript";
2
- import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
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 { InferResolvedConfig } from "./resolved.cjs";
3
- import { API } from "./api.cjs";
4
- import { PluginHook } from "./plugin.cjs";
5
- import { Context } from "./context.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,23 +0,0 @@
1
- import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./build.mjs";
2
- import { InferResolvedConfig } from "./resolved.mjs";
3
- import { API } from "./api.mjs";
4
- import { PluginHook } from "./plugin.mjs";
5
- import { Context } from "./context.mjs";
6
- import "./config.mjs";
7
- import { HookFilter, UnpluginOptions } from "unplugin";
8
- import { MaybePromise } from "@stryke/types/base";
9
-
10
- //#region ../powerlines/src/types/unplugin.d.ts
11
- interface UnpluginOptions$1<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions {
12
- /**
13
- * An API object that can be used for inter-plugin communication.
14
- *
15
- * @see https://rollupjs.org/plugin-development/#direct-plugin-communication
16
- */
17
- api: API<InferResolvedConfig<TUnpluginBuilderVariant>>;
18
- }
19
- 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 | {
20
- handler: infer THandler;
21
- } ? 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] };
22
- //#endregion
23
- export { InferUnpluginOptions };