@sealcode/sealgen 0.17.10 → 0.17.11

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.
@@ -32,7 +32,9 @@ class ColorsBuilder extends Builder {
32
32
  const colors = JSON.parse(output.stdout);
33
33
  let css_colors = "";
34
34
  let html_colors = "";
35
- for (const group_name in colors) {
35
+ for (const group_name of Object.keys(colors).sort(
36
+ (key) => key == "basic" ? 1 : -1
37
+ )) {
36
38
  const sorted_colors = Object.entries(colors[group_name]).sort(
37
39
  ([key1], [key2]) => key1 > key2 ? 1 : -1
38
40
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.17.10",
3
+ "version": "0.17.11",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -43,7 +43,9 @@ export class ColorsBuilder extends Builder {
43
43
 
44
44
  let css_colors = "";
45
45
  let html_colors = "";
46
- for (const group_name in colors) {
46
+ for (const group_name of Object.keys(colors).sort((key) =>
47
+ key == "basic" ? 1 : -1
48
+ )) {
47
49
  const sorted_colors = Object.entries(colors[group_name]).sort(
48
50
  ([key1], [key2]) => (key1 > key2 ? 1 : -1)
49
51
  );