@uxf/icons-generator 11.15.0 → 11.15.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/icons-gen.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/icons-generator",
3
- "version": "11.15.0",
3
+ "version": "11.15.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -23,7 +23,7 @@
23
23
  "author": "",
24
24
  "license": "ISC",
25
25
  "bin": {
26
- "icons-gen": "./bin/icons-gen.ts"
26
+ "icons-gen": "./bin/icons-gen.js"
27
27
  },
28
28
  "bugs": {
29
29
  "url": "https://gitlab.com/uxf-npm/icons-generator/issues"
@@ -10,7 +10,7 @@ const index_1 = __importDefault(require("./index"));
10
10
  exports.default = async () => {
11
11
  const cli = yargs_1.default
12
12
  .command("$0", "UXF icons generator")
13
- .option("c", { alias: "configFile", group: "Options", default: "icons.config.ts" })
13
+ .option("c", { alias: "configFile", group: "Options", default: "icons.config.js" })
14
14
  .option("h", { alias: "help", group: "Options" })
15
15
  .strict(false)
16
16
  .exitProcess(false);
@@ -28,7 +28,7 @@ function _getConfig(confFile) {
28
28
  const ext = config.typescript ? "ts" : "js";
29
29
  const fallbackFilesDirectory = process.cwd() + config.configDirectory + `icons-fallbacks/`;
30
30
  const definitionFile = process.cwd() + config.configDirectory + `icons.${ext}`;
31
- const configFile = process.cwd() + config.configDirectory + `icons-config.${ext}`;
31
+ const configFile = process.cwd() + config.configDirectory + `icons-config.js`;
32
32
  const generatedRelativeDirectory = loadedConfig.generatedDirectory || "/public/icons-generated/";
33
33
  const generatedDirectory = process.cwd() + generatedRelativeDirectory;
34
34
  const spriteFile = generatedDirectory + "/" + config.spriteFileName;
package/bin/icons-gen.ts DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
- /* eslint-disable no-console */
3
- import run from "../src/scripts/cli";
4
-
5
- run()
6
- .then((exitCode) => {
7
- process.exitCode = exitCode;
8
- })
9
- .catch((e) => {
10
- console.error(e);
11
- process.exitCode = 1;
12
- });