@vixt/uni 0.0.9 → 0.0.11

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 +5 -3
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -17,7 +17,10 @@ import { uniuseAutoImports } from '@uni-helper/uni-use';
17
17
  function resolveLayersPlugins(layers, from) {
18
18
  const { plugins = [] } = resolveLayersDirs(layers);
19
19
  return plugins.map((pluginPath) => {
20
- const pluginsDir = path.relative(from, pluginPath);
20
+ let pluginsDir = path.relative(from, pluginPath);
21
+ if (!pluginPath.startsWith(".") && !pluginPath.startsWith("/")) {
22
+ pluginsDir = `./${pluginsDir}`;
23
+ }
21
24
  return `${pluginsDir}/*.ts`;
22
25
  });
23
26
  }
@@ -88,8 +91,7 @@ const presetUni = defineVixtModule({
88
91
  dts: `${typesDir}/components.d.ts`,
89
92
  dirs: components,
90
93
  directoryAsNamespace: true,
91
- collapseSamePrefixes: true,
92
- allowOverrides: true
94
+ collapseSamePrefixes: true
93
95
  },
94
96
  imports: {
95
97
  imports: ["vue", "uni-app", "pinia", useImports()],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/uni",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.11",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",
@@ -32,7 +32,7 @@
32
32
  "unocss": "^0.61.0",
33
33
  "unplugin-auto-import": "^0.17.6",
34
34
  "vue": "^3.4.31",
35
- "@vixt/core": "0.0.9"
35
+ "@vixt/core": "0.0.11"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "unbuild"