@vixt/core 0.1.33 → 0.1.35
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/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +7 -3
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -25,6 +25,10 @@ declare function resolveLayersDirs(layers?: VixtConfigLayer[]): Record<string, s
|
|
|
25
25
|
* Load workspace and cwd env variables by default
|
|
26
26
|
*/
|
|
27
27
|
declare function loadEnv(mode?: string, envDir?: string, prefixes?: string | string[]): ImportMeta["env"];
|
|
28
|
+
/**
|
|
29
|
+
* find the workspace dir
|
|
30
|
+
*/
|
|
31
|
+
declare function findUpWorkspaceDir(): string | undefined;
|
|
28
32
|
/**
|
|
29
33
|
* Load workspace env variables
|
|
30
34
|
*/
|
|
@@ -63,4 +67,4 @@ declare const typescript: VixtModule<TypescriptOptions>;
|
|
|
63
67
|
declare function loadVixt(opts?: LoadConfigOptions<VixtOptions>): Promise<Vixt>;
|
|
64
68
|
declare function createVixtPlugin(loadOptions: LoadConfigOptions<VixtOptions>): (options?: VixtOptions | undefined) => vite.PluginOption;
|
|
65
69
|
|
|
66
|
-
export { ModuleDefinition, ModuleOptions, type TypescriptOptions, Vixt, VixtConfigLayer, VixtConfigLayerMeta, VixtModule, type VixtOptions, applyLayerModules, applyLayers, config, createVixtPlugin, defineVitePlugin, defineVixtConfig, defineVixtModule, installModule, isSamePath, loadEnv, loadVixt, loadVixtConfig, loadWorkspaceEnv, resolveLayersDirs, typescript };
|
|
70
|
+
export { ModuleDefinition, ModuleOptions, type TypescriptOptions, Vixt, VixtConfigLayer, VixtConfigLayerMeta, VixtModule, type VixtOptions, applyLayerModules, applyLayers, config, createVixtPlugin, defineVitePlugin, defineVixtConfig, defineVixtModule, findUpWorkspaceDir, installModule, isSamePath, loadEnv, loadVixt, loadVixtConfig, loadWorkspaceEnv, resolveLayersDirs, typescript };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ declare function resolveLayersDirs(layers?: VixtConfigLayer[]): Record<string, s
|
|
|
25
25
|
* Load workspace and cwd env variables by default
|
|
26
26
|
*/
|
|
27
27
|
declare function loadEnv(mode?: string, envDir?: string, prefixes?: string | string[]): ImportMeta["env"];
|
|
28
|
+
/**
|
|
29
|
+
* find the workspace dir
|
|
30
|
+
*/
|
|
31
|
+
declare function findUpWorkspaceDir(): string | undefined;
|
|
28
32
|
/**
|
|
29
33
|
* Load workspace env variables
|
|
30
34
|
*/
|
|
@@ -63,4 +67,4 @@ declare const typescript: VixtModule<TypescriptOptions>;
|
|
|
63
67
|
declare function loadVixt(opts?: LoadConfigOptions<VixtOptions>): Promise<Vixt>;
|
|
64
68
|
declare function createVixtPlugin(loadOptions: LoadConfigOptions<VixtOptions>): (options?: VixtOptions | undefined) => vite.PluginOption;
|
|
65
69
|
|
|
66
|
-
export { ModuleDefinition, ModuleOptions, type TypescriptOptions, Vixt, VixtConfigLayer, VixtConfigLayerMeta, VixtModule, type VixtOptions, applyLayerModules, applyLayers, config, createVixtPlugin, defineVitePlugin, defineVixtConfig, defineVixtModule, installModule, isSamePath, loadEnv, loadVixt, loadVixtConfig, loadWorkspaceEnv, resolveLayersDirs, typescript };
|
|
70
|
+
export { ModuleDefinition, ModuleOptions, type TypescriptOptions, Vixt, VixtConfigLayer, VixtConfigLayerMeta, VixtModule, type VixtOptions, applyLayerModules, applyLayers, config, createVixtPlugin, defineVitePlugin, defineVixtConfig, defineVixtModule, findUpWorkspaceDir, installModule, isSamePath, loadEnv, loadVixt, loadVixtConfig, loadWorkspaceEnv, resolveLayersDirs, typescript };
|
package/dist/index.mjs
CHANGED
|
@@ -84,9 +84,13 @@ function loadEnv(mode, envDir, prefixes) {
|
|
|
84
84
|
...loadEnv$1(mode, envDir || cwd(), prefixes)
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function findUpWorkspaceDir() {
|
|
88
88
|
const workspaceManifestLocation = findUpSync(["pnpm-workspace.yaml", "pnpm-workspace.yml"]);
|
|
89
|
-
return workspaceManifestLocation
|
|
89
|
+
return workspaceManifestLocation && path.dirname(workspaceManifestLocation);
|
|
90
|
+
}
|
|
91
|
+
function loadWorkspaceEnv(mode, prefixes) {
|
|
92
|
+
const workspaceDir = findUpWorkspaceDir();
|
|
93
|
+
return workspaceDir ? loadEnv$1(mode, workspaceDir, prefixes) : {};
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
function defineVitePlugin(pluginFn) {
|
|
@@ -339,4 +343,4 @@ function createVixtPlugin(loadOptions) {
|
|
|
339
343
|
});
|
|
340
344
|
}
|
|
341
345
|
|
|
342
|
-
export { applyLayerModules, applyLayers, config, createVixtPlugin, defineVitePlugin, defineVixtConfig, defineVixtModule, installModule, isSamePath, loadEnv, loadVixt, loadVixtConfig, loadWorkspaceEnv, resolveLayersDirs, typescript };
|
|
346
|
+
export { applyLayerModules, applyLayers, config, createVixtPlugin, defineVitePlugin, defineVixtConfig, defineVixtModule, findUpWorkspaceDir, installModule, isSamePath, loadEnv, loadVixt, loadVixtConfig, loadWorkspaceEnv, resolveLayersDirs, typescript };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.35",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@types/fs-extra": "^11.0.4",
|
|
29
29
|
"@vue/tsconfig": "^0.7.0",
|
|
30
|
-
"c12": "^2.0.
|
|
30
|
+
"c12": "^2.0.4",
|
|
31
31
|
"cac": "^6.7.14",
|
|
32
32
|
"defu": "^6.1.4",
|
|
33
33
|
"find-up": "^7.0.0",
|
|
34
34
|
"fs-extra": "^11.3.0",
|
|
35
35
|
"mlly": "^1.7.4",
|
|
36
|
-
"pathe": "^2.0.
|
|
36
|
+
"pathe": "^2.0.3",
|
|
37
37
|
"pkg-types": "^1.3.1",
|
|
38
|
-
"tsx": "^4.19.
|
|
39
|
-
"vite": "^6.1.
|
|
40
|
-
"vite-plugin-checker": "^0.
|
|
41
|
-
"vue-tsc": "^2.2.
|
|
38
|
+
"tsx": "^4.19.3",
|
|
39
|
+
"vite": "^6.1.1",
|
|
40
|
+
"vite-plugin-checker": "^0.9.0",
|
|
41
|
+
"vue-tsc": "^2.2.4"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "unbuild"
|