@vixt/core 0.0.12 → 0.0.14

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 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.12",
4
+ "version": "0.0.14",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",