@vixt/core 0.0.13 → 0.0.15
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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -55,6 +55,10 @@ interface VixtOptions extends Record<string, any> {
|
|
|
55
55
|
vite?: ResolvedConfig;
|
|
56
56
|
}
|
|
57
57
|
interface VixtConfigLayer extends ConfigLayer<VixtOptions> {
|
|
58
|
+
/** layer path before copy */
|
|
59
|
+
relatedCwd?: string;
|
|
60
|
+
/** layer path after copy to buildLayersDir */
|
|
61
|
+
cwd?: string;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
declare module '@vixt/core' {
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,10 @@ interface VixtOptions extends Record<string, any> {
|
|
|
55
55
|
vite?: ResolvedConfig;
|
|
56
56
|
}
|
|
57
57
|
interface VixtConfigLayer extends ConfigLayer<VixtOptions> {
|
|
58
|
+
/** layer path before copy */
|
|
59
|
+
relatedCwd?: string;
|
|
60
|
+
/** layer path after copy to buildLayersDir */
|
|
61
|
+
cwd?: string;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
declare module '@vixt/core' {
|
package/dist/index.mjs
CHANGED
|
@@ -236,7 +236,7 @@ function generateVixtDts(options, vixt) {
|
|
|
236
236
|
function generateTsConfig(options, vixt) {
|
|
237
237
|
const { buildDir, rootDir } = vixt.options;
|
|
238
238
|
const codePath = path.resolve(rootDir, buildDir, "tsconfig.json");
|
|
239
|
-
const layersDirs = vixt._layers.map((e) => e.cwd);
|
|
239
|
+
const layersDirs = vixt._layers.map((e) => [e.cwd, e.relatedCwd]).flat().filter((e) => e);
|
|
240
240
|
const tsConfig = defu(options.tsConfig, { include: layersDirs });
|
|
241
241
|
const code = JSON.stringify(tsConfig, null, 2);
|
|
242
242
|
fs.outputFileSync(codePath, code);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.15",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"pkg-types": "^1.1.3",
|
|
29
29
|
"tsx": "^4.16.2",
|
|
30
30
|
"vite": "^5.3.3",
|
|
31
|
-
"vite-plugin-checker": "^0.7.
|
|
32
|
-
"vue-tsc": "^2.0.
|
|
31
|
+
"vite-plugin-checker": "^0.7.1",
|
|
32
|
+
"vue-tsc": "^2.0.26"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "unbuild"
|