@varlet/cli 2.21.0 → 2.21.1-alpha.1705566892480

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.
@@ -1,5 +1,6 @@
1
1
  import fse from 'fs-extra';
2
2
  import sharp from 'sharp';
3
+ import slash from 'slash';
3
4
  import webfont from 'webfont';
4
5
  import logger from '../shared/logger.js';
5
6
  import { parse, resolve } from 'path';
@@ -42,7 +43,7 @@ async function buildPNG(entry, pngDir, svgFiles) {
42
43
  }
43
44
  function buildWebFont(name, entry) {
44
45
  return webfont.default({
45
- files: `${entry}/*.svg`,
46
+ files: `${slash(entry)}/*.svg`,
46
47
  fontName: name,
47
48
  formats: ['ttf'],
48
49
  fontHeight: 512,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "2.21.0",
3
+ "version": "2.21.1-alpha.1705566892480",
4
4
  "type": "module",
5
5
  "description": "cli of varlet",
6
6
  "bin": {
@@ -64,8 +64,8 @@
64
64
  "slash": "^3.0.0",
65
65
  "typescript": "^5.1.5",
66
66
  "webfont": "11.2.26",
67
- "@varlet/shared": "2.21.0",
68
- "@varlet/vite-plugins": "2.21.0"
67
+ "@varlet/shared": "2.21.1-alpha.1705566892480",
68
+ "@varlet/vite-plugins": "2.21.1-alpha.1705566892480"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/babel__core": "^7.20.1",
@@ -80,9 +80,9 @@
80
80
  "@types/semver": "^7.3.9",
81
81
  "@types/sharp": "0.31.1",
82
82
  "rimraf": "^5.0.1",
83
- "@varlet/ui": "2.21.0",
84
- "@varlet/icons": "2.21.0",
85
- "@varlet/touch-emulator": "2.21.0"
83
+ "@varlet/ui": "2.21.1-alpha.1705566892480",
84
+ "@varlet/icons": "2.21.1-alpha.1705566892480",
85
+ "@varlet/touch-emulator": "2.21.1-alpha.1705566892480"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@vue/runtime-core": "3.4.3",
@@ -95,9 +95,9 @@
95
95
  "lodash-es": "^4.17.21",
96
96
  "vue": "3.4.3",
97
97
  "vue-router": "4.2.0",
98
- "@varlet/icons": "2.21.0",
99
- "@varlet/ui": "2.21.0",
100
- "@varlet/touch-emulator": "2.21.0"
98
+ "@varlet/ui": "2.21.1-alpha.1705566892480",
99
+ "@varlet/icons": "2.21.1-alpha.1705566892480",
100
+ "@varlet/touch-emulator": "2.21.1-alpha.1705566892480"
101
101
  },
102
102
  "scripts": {
103
103
  "dev": "tsc --watch",
@@ -74,7 +74,7 @@
74
74
 
75
75
  <script lang="ts">
76
76
  import config from '@config'
77
- import { computed, ComputedRef, defineComponent, ref, Ref, watch } from 'vue'
77
+ import { computed, defineComponent, ref, watch, type Ref, type ComputedRef } from 'vue'
78
78
  import { useRoute } from 'vue-router'
79
79
  import {
80
80
  getBrowserTheme,