@duetds/icons 4.0.32 → 4.0.34
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.
|
@@ -10,8 +10,10 @@ const path = require("path")
|
|
|
10
10
|
const { titleToFilename } = require("./utils")
|
|
11
11
|
const data = require("../_data/duet-icons.json")
|
|
12
12
|
|
|
13
|
-
const indexFile = path.join(__dirname, "
|
|
13
|
+
const indexFile = path.join(__dirname, "../../lib/icons.js")
|
|
14
|
+
const indexTypingFile = path.join(__dirname, "../../lib/icons.d.ts")
|
|
14
15
|
const iconsDir = path.join(__dirname, "../assets")
|
|
16
|
+
const libIconsDir = path.join(__dirname, "../../lib/assets")
|
|
15
17
|
|
|
16
18
|
const icons = {}
|
|
17
19
|
data.icons.forEach(icon => {
|
|
@@ -20,7 +22,7 @@ data.icons.forEach(icon => {
|
|
|
20
22
|
icons[icon.title] = icon
|
|
21
23
|
|
|
22
24
|
// write the static .js file for the icon
|
|
23
|
-
fs.writeFileSync(path.join(
|
|
25
|
+
fs.writeFileSync(path.join(libIconsDir, `${filename}.js`), `module.exports=${JSON.stringify(icon)};`)
|
|
24
26
|
})
|
|
25
27
|
|
|
26
28
|
// write our generic icons.js
|
|
@@ -46,4 +48,4 @@ export default icons;
|
|
|
46
48
|
`
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
fs.writeFileSync(
|
|
51
|
+
fs.writeFileSync(indexTypingFile, generateTypescriptDefinition(icons))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/icons",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.34",
|
|
4
4
|
"description": "This package includes Duet Design System Icons and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"lib"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"
|
|
21
|
-
"build": "run-s svgo pretest test svglint jsonlint prepublishOnly copy:build postpublish",
|
|
20
|
+
"build": "run-s svgo pretest test svglint jsonlint prepublishOnly copy:build",
|
|
22
21
|
"copy:build": "copyfiles --up 1 \"./src/**/*\" \"./lib\"",
|
|
23
22
|
"jsonlint": "jsonlint ./src/_data/duet-icons.json -q -V .jsonlintschema",
|
|
24
23
|
"svglint": "svglint ./src/assets/* --ci",
|
|
@@ -29,7 +28,6 @@
|
|
|
29
28
|
"pretest": "npm run prepublishOnly",
|
|
30
29
|
"test": "jest",
|
|
31
30
|
"update": "jest --updateSnapshot",
|
|
32
|
-
"posttest": "npm run postpublish",
|
|
33
31
|
"tags": "node ./src/scripts/tag-icons.js"
|
|
34
32
|
},
|
|
35
33
|
"jest": {
|
|
@@ -55,5 +53,5 @@
|
|
|
55
53
|
"publishConfig": {
|
|
56
54
|
"access": "public"
|
|
57
55
|
},
|
|
58
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "53d434e1934a605d02c5732f41952410310449b1"
|
|
59
57
|
}
|