@powerlines/plugin-vite 0.14.122 → 0.14.124
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/helpers/index.cjs +3 -2
- package/dist/helpers/index.d.cts +3 -1
- package/dist/helpers/index.d.mts +3 -1
- package/dist/helpers/index.mjs +2 -1
- package/dist/helpers/unplugin.cjs +2 -11
- package/dist/helpers/unplugin.d.cts +2 -6
- package/dist/helpers/unplugin.d.mts +2 -6
- package/dist/helpers/unplugin.mjs +1 -9
- package/dist/helpers-CmEjzAn_.mjs +1 -0
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-BR1oNnaF.d.cts +1 -0
- package/dist/index-DEHBdV_z.d.mts +1 -0
- package/dist/index-_wQ5ClJU.d.cts +1 -0
- package/dist/index-vkGVyY9v.d.mts +1 -0
- package/dist/index.cjs +170 -9
- package/dist/index.d.cts +4 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +165 -3
- package/dist/plugin-Dc12T6ZF.d.mts +1960 -0
- package/dist/plugin-jZ9N9Mz-.mjs +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/plugin-vkCGh5de.d.cts +1957 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/internal.d.cts +191 -3
- package/dist/types/internal.d.mts +191 -3
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -12
- package/dist/types/plugin.d.mts +1 -12
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-BtDR9wb1.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-B3TcDD6I.mjs +4617 -0
- package/dist/unplugin-Bv2agFkI.cjs +4661 -0
- package/dist/unplugin-D_zrAqRh.d.mts +7 -0
- package/dist/unplugin-F1UAxbOS.d.cts +7 -0
- package/package.json +5 -5
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
- package/dist/powerlines/schemas/fs.cjs +0 -226
- package/dist/powerlines/schemas/fs.mjs +0 -224
- package/dist/powerlines/src/api.cjs +0 -580
- package/dist/powerlines/src/api.mjs +0 -578
- package/dist/powerlines/src/internal/babel/module-resolver-plugin.cjs +0 -86
- package/dist/powerlines/src/internal/babel/module-resolver-plugin.mjs +0 -84
- package/dist/powerlines/src/internal/helpers/environment.cjs +0 -52
- package/dist/powerlines/src/internal/helpers/environment.mjs +0 -48
- package/dist/powerlines/src/internal/helpers/generate-types.cjs +0 -51
- package/dist/powerlines/src/internal/helpers/generate-types.mjs +0 -49
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -63
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -48
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -50
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -61
- package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +0 -25
- package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +0 -24
- package/dist/powerlines/src/internal/helpers/install.cjs +0 -37
- package/dist/powerlines/src/internal/helpers/install.mjs +0 -36
- package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +0 -98
- package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +0 -94
- package/dist/powerlines/src/internal/helpers/resolver.cjs +0 -43
- package/dist/powerlines/src/internal/helpers/resolver.mjs +0 -41
- 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/build/vite.cjs +0 -74
- package/dist/powerlines/src/lib/build/vite.mjs +0 -71
- package/dist/powerlines/src/lib/config-file.cjs +0 -79
- package/dist/powerlines/src/lib/config-file.mjs +0 -76
- package/dist/powerlines/src/lib/contexts/api-context.cjs +0 -184
- package/dist/powerlines/src/lib/contexts/api-context.mjs +0 -182
- package/dist/powerlines/src/lib/contexts/context.cjs +0 -931
- package/dist/powerlines/src/lib/contexts/context.mjs +0 -929
- package/dist/powerlines/src/lib/contexts/environment-context.cjs +0 -160
- package/dist/powerlines/src/lib/contexts/environment-context.mjs +0 -159
- package/dist/powerlines/src/lib/contexts/plugin-context.cjs +0 -75
- package/dist/powerlines/src/lib/contexts/plugin-context.mjs +0 -74
- package/dist/powerlines/src/lib/entry.cjs +0 -69
- package/dist/powerlines/src/lib/entry.mjs +0 -67
- package/dist/powerlines/src/lib/fs/helpers.cjs +0 -85
- package/dist/powerlines/src/lib/fs/helpers.mjs +0 -81
- package/dist/powerlines/src/lib/fs/storage/base.cjs +0 -196
- package/dist/powerlines/src/lib/fs/storage/base.mjs +0 -195
- package/dist/powerlines/src/lib/fs/storage/file-system.cjs +0 -170
- package/dist/powerlines/src/lib/fs/storage/file-system.mjs +0 -169
- package/dist/powerlines/src/lib/fs/storage/virtual.cjs +0 -88
- package/dist/powerlines/src/lib/fs/storage/virtual.mjs +0 -87
- package/dist/powerlines/src/lib/fs/vfs.cjs +0 -830
- package/dist/powerlines/src/lib/fs/vfs.mjs +0 -828
- package/dist/powerlines/src/lib/logger.cjs +0 -58
- package/dist/powerlines/src/lib/logger.mjs +0 -55
- package/dist/powerlines/src/lib/typescript/ts-morph.cjs +0 -104
- package/dist/powerlines/src/lib/typescript/ts-morph.mjs +0 -102
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -149
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -144
- package/dist/powerlines/src/lib/unplugin/factory.cjs +0 -6
- package/dist/powerlines/src/lib/unplugin/factory.mjs +0 -8
- package/dist/powerlines/src/lib/unplugin/helpers.cjs +0 -17
- package/dist/powerlines/src/lib/unplugin/helpers.mjs +0 -16
- package/dist/powerlines/src/lib/unplugin/index.cjs +0 -3
- package/dist/powerlines/src/lib/unplugin/index.mjs +0 -5
- package/dist/powerlines/src/lib/unplugin/plugin.cjs +0 -128
- package/dist/powerlines/src/lib/unplugin/plugin.mjs +0 -127
- package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
- package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
- package/dist/powerlines/src/lib/utilities/meta.cjs +0 -45
- package/dist/powerlines/src/lib/utilities/meta.mjs +0 -41
- package/dist/powerlines/src/lib/utilities/source-file.cjs +0 -22
- package/dist/powerlines/src/lib/utilities/source-file.mjs +0 -21
- package/dist/powerlines/src/plugin-utils/helpers.cjs +0 -148
- package/dist/powerlines/src/plugin-utils/helpers.mjs +0 -138
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -36
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -35
- package/dist/powerlines/src/types/api.d.cts +0 -104
- package/dist/powerlines/src/types/api.d.mts +0 -104
- package/dist/powerlines/src/types/babel.d.mts +0 -4
- package/dist/powerlines/src/types/build.cjs +0 -15
- package/dist/powerlines/src/types/build.d.cts +0 -154
- package/dist/powerlines/src/types/build.d.mts +0 -154
- package/dist/powerlines/src/types/build.mjs +0 -14
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/config.d.cts +0 -416
- package/dist/powerlines/src/types/config.d.mts +0 -418
- package/dist/powerlines/src/types/context.d.cts +0 -514
- package/dist/powerlines/src/types/context.d.mts +0 -514
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.cts +0 -30
- package/dist/powerlines/src/types/hooks.d.mts +0 -30
- package/dist/powerlines/src/types/internal.d.cts +0 -58
- package/dist/powerlines/src/types/internal.d.mts +0 -58
- package/dist/powerlines/src/types/plugin.cjs +0 -32
- package/dist/powerlines/src/types/plugin.d.cts +0 -234
- package/dist/powerlines/src/types/plugin.d.mts +0 -234
- package/dist/powerlines/src/types/plugin.mjs +0 -31
- package/dist/powerlines/src/types/resolved.d.cts +0 -82
- package/dist/powerlines/src/types/resolved.d.mts +0 -83
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import "./build.mjs";
|
|
2
|
-
import { EnvironmentConfig, InlineConfig, OutputConfig, UserConfig as UserConfig$1, ViteUserConfig } from "./config.mjs";
|
|
3
|
-
import { ResolvedPreviewOptions } from "vite";
|
|
4
|
-
import { NonUndefined } from "@stryke/types/base";
|
|
5
|
-
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
|
-
import { AssetGlob } from "@stryke/types/file";
|
|
7
|
-
|
|
8
|
-
//#region ../powerlines/src/types/resolved.d.ts
|
|
9
|
-
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
10
|
-
/**
|
|
11
|
-
* The user provided entry point in the source code
|
|
12
|
-
*/
|
|
13
|
-
input?: TypeDefinition;
|
|
14
|
-
/**
|
|
15
|
-
* An optional name to use in the package export during the build process
|
|
16
|
-
*/
|
|
17
|
-
output?: string;
|
|
18
|
-
}
|
|
19
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
|
|
20
|
-
/**
|
|
21
|
-
* The name of the environment
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
/**
|
|
25
|
-
* Configuration options for the preview server
|
|
26
|
-
*/
|
|
27
|
-
preview?: ResolvedPreviewOptions;
|
|
28
|
-
};
|
|
29
|
-
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
30
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
31
|
-
assets: ResolvedAssetGlob[];
|
|
32
|
-
}> & Pick<OutputConfig, "storage">;
|
|
33
|
-
/**
|
|
34
|
-
* The resolved options for the Powerlines project configuration.
|
|
35
|
-
*/
|
|
36
|
-
type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
37
|
-
/**
|
|
38
|
-
* The configuration options that were provided inline to the Powerlines CLI.
|
|
39
|
-
*/
|
|
40
|
-
inlineConfig: InlineConfig<TUserConfig>;
|
|
41
|
-
/**
|
|
42
|
-
* The original configuration options that were provided by the user to the Powerlines process.
|
|
43
|
-
*/
|
|
44
|
-
userConfig: TUserConfig;
|
|
45
|
-
/**
|
|
46
|
-
* A string identifier for the Powerlines command being executed.
|
|
47
|
-
*/
|
|
48
|
-
command: NonUndefined<InlineConfig<TUserConfig>["command"]>;
|
|
49
|
-
/**
|
|
50
|
-
* The root directory of the project's source code
|
|
51
|
-
*
|
|
52
|
-
* @defaultValue "\{projectRoot\}/src"
|
|
53
|
-
*/
|
|
54
|
-
sourceRoot: NonUndefined<TUserConfig["sourceRoot"]>;
|
|
55
|
-
/**
|
|
56
|
-
* The root directory of the project.
|
|
57
|
-
*/
|
|
58
|
-
projectRoot: NonUndefined<TUserConfig["root"]>;
|
|
59
|
-
/**
|
|
60
|
-
* The type of project being built.
|
|
61
|
-
*/
|
|
62
|
-
projectType: NonUndefined<TUserConfig["type"]>;
|
|
63
|
-
/**
|
|
64
|
-
* The output configuration options to use for the build process
|
|
65
|
-
*/
|
|
66
|
-
output: OutputResolvedConfig;
|
|
67
|
-
/**
|
|
68
|
-
* Configuration provided to build processes
|
|
69
|
-
*
|
|
70
|
-
* @remarks
|
|
71
|
-
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
72
|
-
*/
|
|
73
|
-
build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
|
|
74
|
-
/**
|
|
75
|
-
* The log level to use for the Powerlines processes.
|
|
76
|
-
*
|
|
77
|
-
* @defaultValue "info"
|
|
78
|
-
*/
|
|
79
|
-
logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
|
|
80
|
-
};
|
|
81
|
-
type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
|
|
82
|
-
//#endregion
|
|
83
|
-
export { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition, ViteResolvedConfig };
|
|
@@ -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 };
|