@sonolus/generate-static 5.5.0 → 5.5.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/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { toSkinItem } from './server/items/skin.js';
16
16
  import { parse } from './utils/json.js';
17
17
  const options = new Command()
18
18
  .name('sonolus-generate-static')
19
- .version('5.5.0')
19
+ .version('5.5.1')
20
20
  .option('-i, --input <value>', 'input directory', 'pack')
21
21
  .option('-o, --output <value>', 'output directory', 'static')
22
22
  .option('-a, --address [value]', 'address')
@@ -1,6 +1,6 @@
1
1
  import { Type } from '@sinclair/typebox';
2
2
  import { localizationTextSchema } from './localizationText.js';
3
3
  export const databaseTagSchema = Type.Object({
4
- title: localizationTextSchema,
4
+ title: Type.Optional(localizationTextSchema),
5
5
  icon: Type.Optional(Type.String()),
6
6
  });
@@ -1,5 +1,5 @@
1
1
  export const toTags = (localize, tags) => tags.map((tag) => toTag(localize, tag));
2
2
  const toTag = (localize, tag) => ({
3
- title: localize(tag.title),
3
+ title: tag.title && localize(tag.title),
4
4
  icon: tag.icon,
5
5
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonolus/generate-static",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "CLI tool to generate static Sonolus server from repository and database",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:Sonolus/sonolus-generate-static",
@@ -22,19 +22,19 @@
22
22
  "build": "tsc -p ."
23
23
  },
24
24
  "devDependencies": {
25
- "@eslint/js": "^9.31.0",
25
+ "@eslint/js": "^9.39.2",
26
26
  "@types/fs-extra": "^11.0.4",
27
- "eslint": "^9.31.0",
27
+ "eslint": "^9.39.2",
28
28
  "eslint-config-prettier": "^10.1.8",
29
- "prettier": "^3.6.2",
30
- "prettier-plugin-organize-imports": "^4.2.0",
31
- "typescript": "~5.8.3",
32
- "typescript-eslint": "^8.38.0"
29
+ "prettier": "^3.8.1",
30
+ "prettier-plugin-organize-imports": "^4.3.0",
31
+ "typescript": "~5.9.3",
32
+ "typescript-eslint": "^8.53.1"
33
33
  },
34
34
  "dependencies": {
35
- "@sinclair/typebox": "^0.34.38",
36
- "@sonolus/core": "~7.14.0",
37
- "commander": "^14.0.0",
38
- "fs-extra": "^11.3.0"
35
+ "@sinclair/typebox": "^0.34.47",
36
+ "@sonolus/core": "~7.15.0",
37
+ "commander": "^14.0.2",
38
+ "fs-extra": "^11.3.3"
39
39
  }
40
40
  }