@esri/calcite-ui-icons 3.31.0-next.3 → 3.31.0

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const spriter = require("./index");
4
- const fs = require("fs");
4
+ const { readFileSync } = require("fs");
5
5
  const args = process.argv.slice(2); // skip runtime & script args
6
6
 
7
7
  function hasArg(name, shorthand) {
@@ -31,7 +31,7 @@ function getConfig() {
31
31
 
32
32
  if (input) {
33
33
  try {
34
- const configFileContents = fs.readFileSync(input);
34
+ const configFileContents = readFileSync(input);
35
35
  input = JSON.parse(configFileContents).input;
36
36
  } catch (error) {
37
37
  process.stderr.write(`config - could not read input: ${error}`);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- const { readdir, mkdir, writeFile, readFile } = require("fs/promises");
3
+ const { readdir, mkdir, writeFile, readFile, lstatSync } = require("fs-extra");
4
4
  const path = require("path");
5
5
 
6
6
  const ICONS = path.resolve(path.dirname(process.argv[1]), "../icons");
@@ -11,7 +11,7 @@ const SIZES = [16, 24, 32];
11
11
  const OUTLINE = "outline";
12
12
  const FILL = "fill";
13
13
 
14
- const isDir = (file) => fs.lstatSync(`${ICONS}/${file}`).isDirectory();
14
+ const isDir = (file) => lstatSync(`${ICONS}/${file}`).isDirectory();
15
15
  const readSVG = (icon) => readFile(`${ICONS}/${icon.fileName}`, { encoding: "utf-8" });
16
16
  const has = (haystack, needle) => haystack.indexOf(needle) > -1;
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-ui-icons",
3
- "version": "3.31.0-next.3",
3
+ "version": "3.31.0",
4
4
  "private": false,
5
5
  "description": "A collection of UI SVG icons created by Esri for applications.",
6
6
  "keywords": [
@@ -58,6 +58,7 @@
58
58
  "camelcase": "6.3.0",
59
59
  "cli-progress": "^3.12.0",
60
60
  "debounce": "^2.1.0",
61
+ "fs-extra": "11.2.0",
61
62
  "glob": "^11.0.0",
62
63
  "svg2img": "1.0.0-beta.2",
63
64
  "svgo": "^1.3.0",
@@ -68,5 +69,5 @@
68
69
  "volta": {
69
70
  "extends": "../../package.json"
70
71
  },
71
- "gitHead": "d43e02a504312a33baceee3f47299a397e7eb132"
72
+ "gitHead": "a9edddcec735cf7ff1d34dd64a9ef7f523ce0a78"
72
73
  }