@vixt/core 0.1.1 → 0.1.3

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 (2) hide show
  1. package/dist/index.mjs +2 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -286,7 +286,8 @@ function generateTsConfig(options, vixt) {
286
286
  for (const layer of vixt._layers) {
287
287
  layersDirs.push(layer.cwd);
288
288
  if (layer.meta?.alias) {
289
- layersAlias[`${layer.meta.alias}/*`] = [`${path.relative(path.resolve(rootDir, buildDir), layer.cwd)}/*`];
289
+ const layerRelativePath = `./${path.relative(path.resolve(rootDir, buildDir), layer.cwd)}/*`;
290
+ layersAlias[`${layer.meta.alias}/*`] = [layerRelativePath];
290
291
  }
291
292
  }
292
293
  const tsConfig = defu(options.tsConfig, { compilerOptions: { paths: layersAlias }, include: layersDirs });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",