@yoamigo.com/core 1.3.0 → 1.4.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/bin/icon-scanner-darwin-amd64 +0 -0
- package/bin/icon-scanner-darwin-arm64 +0 -0
- package/bin/icon-scanner-linux-amd64 +0 -0
- package/bin/icon-scanner-windows-amd64.exe +0 -0
- package/bin/icon-scanner.cjs +44 -0
- package/dist/icons-custom.d.ts +6011 -0
- package/dist/icons-custom.js +36 -0
- package/dist/icons.d.ts +2 -22
- package/dist/index.d.ts +211 -95
- package/dist/index.js +12741 -501
- package/dist/plugin.js +21 -0
- package/dist/prod.d.ts +89 -4
- package/dist/prod.js +224 -15
- package/dist/{icon-metadata-D-2LGr22.d.ts → useSafeTriangle-PCUZIdaA.d.ts} +92 -165
- package/package.json +11 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Icon Scanner - Cross-platform wrapper
|
|
4
|
+
*
|
|
5
|
+
* Detects the current platform and runs the appropriate binary.
|
|
6
|
+
* Scans template source files for icon usage and generates a registration file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const { spawn } = require('child_process')
|
|
10
|
+
const path = require('path')
|
|
11
|
+
const os = require('os')
|
|
12
|
+
|
|
13
|
+
function getBinaryName() {
|
|
14
|
+
const platform = os.platform()
|
|
15
|
+
const arch = os.arch()
|
|
16
|
+
|
|
17
|
+
if (platform === 'darwin') {
|
|
18
|
+
return arch === 'arm64' ? 'icon-scanner-darwin-arm64' : 'icon-scanner-darwin-amd64'
|
|
19
|
+
} else if (platform === 'linux') {
|
|
20
|
+
return 'icon-scanner-linux-amd64'
|
|
21
|
+
} else if (platform === 'win32') {
|
|
22
|
+
return 'icon-scanner-windows-amd64.exe'
|
|
23
|
+
} else {
|
|
24
|
+
console.error(`Unsupported platform: ${platform}`)
|
|
25
|
+
process.exit(1)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const binaryName = getBinaryName()
|
|
30
|
+
const binaryPath = path.join(__dirname, binaryName)
|
|
31
|
+
|
|
32
|
+
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
33
|
+
stdio: 'inherit',
|
|
34
|
+
cwd: process.cwd(),
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
child.on('error', (err) => {
|
|
38
|
+
console.error(`Failed to start icon-scanner: ${err.message}`)
|
|
39
|
+
process.exit(1)
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
child.on('exit', (code) => {
|
|
43
|
+
process.exit(code || 0)
|
|
44
|
+
})
|