@ffflorian/electron-icon-generator 1.15.1 → 1.15.3

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 CHANGED
File without changes
package/dist/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import icongen from 'icon-gen';
2
+ var _a;
3
+ import importedIcongen from 'icon-gen';
3
4
  import { Jimp } from 'jimp';
4
5
  import fs from 'node:fs/promises';
5
6
  import path from 'node:path';
7
+ // compatibility with cjs and esm
8
+ const icongen = (_a = importedIcongen.default) !== null && _a !== void 0 ? _a : importedIcongen;
6
9
  // eslint-disable-next-line no-magic-numbers
7
10
  const pngSizes = [16, 24, 32, 48, 64, 128, 256, 512, 1024];
8
11
  export class IconGenerator {
@@ -59,7 +62,7 @@ export class IconGenerator {
59
62
  catch (_a) {
60
63
  // no-op
61
64
  }
62
- await icongen.default(this.PNGoutputDir, macIconsDir, {
65
+ await icongen(this.PNGoutputDir, macIconsDir, {
63
66
  icns: {
64
67
  name: 'icon',
65
68
  sizes: pngSizes,
@@ -72,7 +75,7 @@ export class IconGenerator {
72
75
  catch (_b) {
73
76
  // no-op
74
77
  }
75
- await icongen.default(this.PNGoutputDir, winIconsDir, {
78
+ await icongen(this.PNGoutputDir, winIconsDir, {
76
79
  icns: {
77
80
  name: 'icon',
78
81
  sizes: pngSizes,
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
- "bin": "dist/index.js",
3
+ "bin": "dist/cli.js",
4
4
  "dependencies": {
5
5
  "commander": "14.0.3",
6
6
  "icon-gen": "5.0.0",
7
- "jimp": "1.6.0"
7
+ "jimp": "1.6.1"
8
8
  },
9
9
  "description": "An icon generator to generate all the icon files needed for electron packaging",
10
10
  "devDependencies": {
11
11
  "@types/pngjs": "6.0.5",
12
- "tsx": "4.21.0",
13
- "typescript": "6.0.2"
12
+ "tsx": "4.22.0",
13
+ "typescript": "6.0.3"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">= 21"
@@ -30,15 +30,17 @@
30
30
  "module": "dist/index.js",
31
31
  "name": "@ffflorian/electron-icon-generator",
32
32
  "readme": "https://github.com/ffflorian/node-packages#readme",
33
- "repository": "https://github.com/ffflorian/node-packages.git",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/ffflorian/node-packages.git"
36
+ },
34
37
  "scripts": {
35
38
  "build": "tsc -p tsconfig.build.json",
36
39
  "clean": "rm -rf dist",
37
40
  "dist": "yarn clean && yarn build",
38
41
  "start": "tsx src/cli.ts",
39
- "test": "exit 0"
42
+ "test": "vitest run"
40
43
  },
41
44
  "type": "module",
42
- "version": "1.15.1",
43
- "gitHead": "aa42364cabdedc7bba727430cb686713f4598ce8"
45
+ "version": "1.15.3"
44
46
  }