@yunlefun/vue 0.0.9 → 0.1.1

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.cjs CHANGED
@@ -3,8 +3,7 @@
3
3
  const node_path = require('node:path');
4
4
  const node_url = require('node:url');
5
5
 
6
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
- const _dirname = typeof __dirname !== "undefined" ? __dirname : node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))));
6
+ const _dirname = typeof __dirname !== "undefined" ? __dirname : node_path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
8
7
  const componentsDir = node_path.resolve(_dirname, "../components");
9
8
 
10
9
  exports._dirname = _dirname;
@@ -8,7 +8,7 @@ export default defineNuxtModule({
8
8
  dirs.push({
9
9
  extensions: ['vue'],
10
10
  path: resolve('./components'),
11
- pathPrefix: false,
11
+ pathPrefix: true,
12
12
  prefix: '',
13
13
  })
14
14
  },
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@yunlefun/vue",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.1.1",
5
5
  "description": "Components for YunLeFun",
6
6
  "exports": {
7
7
  "./components/*": "./components/*",
8
- "./nuxt": "./nuxt.js",
8
+ "./nuxt": "./nuxt.mjs",
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.mjs",
@@ -19,7 +19,7 @@
19
19
  "files": [
20
20
  "components",
21
21
  "dist",
22
- "nuxt.js"
22
+ "nuxt.mjs"
23
23
  ],
24
24
  "scripts": {
25
25
  "build": "unbuild",