@kuankuan/assist-2026 0.1.11 → 0.1.13
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/bin/load-fontello.js +4 -3
- package/package.json +2 -3
package/bin/load-fontello.js
CHANGED
|
@@ -4,14 +4,15 @@ import compressing from 'compressing';
|
|
|
4
4
|
import os from 'node:os';
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
|
|
7
|
-
console.log('load-fontello v0.2.
|
|
7
|
+
console.log('load-fontello v0.2.3');
|
|
8
8
|
|
|
9
9
|
if (process.argv.length <= 2) {
|
|
10
10
|
throw new Error('Please input fontello file path');
|
|
11
11
|
}
|
|
12
12
|
const zipPath = process.argv[2];
|
|
13
|
-
const targetPath =
|
|
14
|
-
path.resolve(process.cwd(), process.argv[3])
|
|
13
|
+
const targetPath = process.argv[3]
|
|
14
|
+
? path.resolve(process.cwd(), process.argv[3])
|
|
15
|
+
: path.join(process.cwd(), 'src/assets/fontello');
|
|
15
16
|
const uncompressDirPath = path.join(os.tmpdir(), 'fontello' + Math.random().toString());
|
|
16
17
|
|
|
17
18
|
console.log(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuankuan/assist-2026",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "A toolset from kuankuan",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -79,6 +79,5 @@
|
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"vite": ">=7.0.0"
|
|
82
|
-
}
|
|
83
|
-
"sideEffects": false
|
|
82
|
+
}
|
|
84
83
|
}
|