@ffflorian/electron-icon-generator 1.7.8 → 1.7.10
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/cli.js +2 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -5,10 +5,10 @@ import { program as commander } from 'commander';
|
|
|
5
5
|
import { IconGenerator } from './index.js';
|
|
6
6
|
const __dirname = import.meta.dirname;
|
|
7
7
|
const packageJsonPath = path.join(__dirname, '../package.json');
|
|
8
|
-
const {
|
|
8
|
+
const { description, name, version } = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
9
9
|
commander
|
|
10
|
+
.name(name.replace(/^@[^/]+\//, ''))
|
|
10
11
|
.description(description)
|
|
11
|
-
.name(Object.keys(bin)[0])
|
|
12
12
|
.version(version)
|
|
13
13
|
.option('-i, --input <file>', 'Input PNG file (recommended size: 1024x1024)', './icon.png')
|
|
14
14
|
.option('-o, --output <folder>', 'Folder to output new icons folder', './')
|
package/package.json
CHANGED