sonolus-llsif-engine 1.4.1 → 1.5.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.
package/README.md CHANGED
@@ -4,8 +4,8 @@ A recreation of Love Live! School idol festival engine in [Sonolus](https://sono
4
4
 
5
5
  ## Links
6
6
 
7
- - [Sonolus Website](https://sonolus.com)
8
- - [Sonolus Wiki](https://github.com/NonSpicyBurrito/sonolus-wiki)
7
+ - [Sonolus Website](https://sonolus.com)
8
+ - [Sonolus Wiki](https://github.com/NonSpicyBurrito/sonolus-wiki)
9
9
 
10
10
  ## Installation
11
11
 
@@ -31,39 +31,28 @@ Package version.
31
31
 
32
32
  Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
33
33
 
34
- ### `engineConfigurationPath`
35
-
36
- Path to Engine Configuration file.
37
-
38
- ### `enginePlayDataPath`
39
-
40
- Path to Engine Play Data file.
41
-
42
- ### `engineWatchDataPath`
43
-
44
- Path to Engine Watch Data file.
45
-
46
- ### `enginePreviewDataPath`
47
-
48
- Path to Engine Preview Data file.
49
-
50
- ### `engineTutorialDataPath`
51
-
52
- Path to Engine Tutorial Data file.
53
-
54
- ### `engineThumbnailPath`
55
-
56
- Path to Engine Thumbnail file.
57
-
58
34
  ### `nssToSIFC(nss)`
59
35
 
60
36
  Converts NSS (note setting asset) to SIFC (SIF Chart).
61
37
 
62
- - `nss`: note setting asset.
38
+ - `nss`: note setting asset.
63
39
 
64
40
  ### `sifcToLevelData(chart, offset?)`
65
41
 
66
42
  Converts SIFC (SIF Chart) to Level Data.
67
43
 
68
- - `chart`: SIF Chart.
69
- - `offset`: offset (default: `0`).
44
+ - `chart`: SIF Chart.
45
+ - `offset`: offset (default: `0`).
46
+
47
+ ### Assets
48
+
49
+ The following assets are exposed as package entry points:
50
+
51
+ - `EngineConfiguration`
52
+ - `EnginePlayData`
53
+ - `EngineWatchData`
54
+ - `EnginePreviewData`
55
+ - `EngineTutorialData`
56
+ - `EngineThumbnail`
57
+
58
+ In Node.js, you can obtain path to assets using `require.resolve('sonolus-llsif-engine/EngineConfiguration')` or `import.meta.resolve('sonolus-llsif-engine/EngineConfiguration')`.
Binary file
Binary file
Binary file
Binary file
package/dist/index.cjs CHANGED
@@ -14,15 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.engineThumbnailPath = exports.engineTutorialDataPath = exports.enginePreviewDataPath = exports.engineWatchDataPath = exports.enginePlayDataPath = exports.engineConfigurationPath = exports.databaseEngineItem = exports.version = exports.sifcToLevelData = exports.nssToSIFC = void 0;
18
- const node_path_1 = require("node:path");
17
+ exports.databaseEngineItem = exports.version = exports.sifcToLevelData = exports.nssToSIFC = void 0;
19
18
  var convert_cjs_1 = require("./nss/convert.cjs");
20
19
  Object.defineProperty(exports, "nssToSIFC", { enumerable: true, get: function () { return convert_cjs_1.nssToSIFC; } });
21
20
  __exportStar(require("./nss/index.cjs"), exports);
22
21
  var convert_cjs_2 = require("./sifc/convert.cjs");
23
22
  Object.defineProperty(exports, "sifcToLevelData", { enumerable: true, get: function () { return convert_cjs_2.sifcToLevelData; } });
24
23
  __exportStar(require("./sifc/index.cjs"), exports);
25
- exports.version = '1.4.1';
24
+ exports.version = '1.5.0';
26
25
  exports.databaseEngineItem = {
27
26
  name: 'llsif',
28
27
  version: 12,
@@ -55,9 +54,3 @@ exports.databaseEngineItem = {
55
54
  ].join('\n'),
56
55
  },
57
56
  };
58
- exports.engineConfigurationPath = (0, node_path_1.resolve)(__dirname, 'EngineConfiguration');
59
- exports.enginePlayDataPath = (0, node_path_1.resolve)(__dirname, 'EnginePlayData');
60
- exports.engineWatchDataPath = (0, node_path_1.resolve)(__dirname, 'EngineWatchData');
61
- exports.enginePreviewDataPath = (0, node_path_1.resolve)(__dirname, 'EnginePreviewData');
62
- exports.engineTutorialDataPath = (0, node_path_1.resolve)(__dirname, 'EngineTutorialData');
63
- exports.engineThumbnailPath = (0, node_path_1.resolve)(__dirname, 'thumbnail.png');
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ export { nssToSIFC } from './nss/convert.cjs';
2
2
  export * from './nss/index.cjs';
3
3
  export { sifcToLevelData } from './sifc/convert.cjs';
4
4
  export * from './sifc/index.cjs';
5
- export declare const version = "1.4.1";
5
+ export declare const version = "1.5.0";
6
6
  export declare const databaseEngineItem: {
7
7
  readonly name: "llsif";
8
8
  readonly version: 12;
@@ -27,9 +27,3 @@ export declare const databaseEngineItem: {
27
27
  readonly en: string;
28
28
  };
29
29
  };
30
- export declare const engineConfigurationPath: string;
31
- export declare const enginePlayDataPath: string;
32
- export declare const engineWatchDataPath: string;
33
- export declare const enginePreviewDataPath: string;
34
- export declare const engineTutorialDataPath: string;
35
- export declare const engineThumbnailPath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-llsif-engine",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "A recreation of Love Live! School idol festival engine in Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:NonSpicyBurrito/sonolus-llsif-engine",
@@ -8,31 +8,41 @@
8
8
  "keywords": [
9
9
  "Sonolus"
10
10
  ],
11
- "main": "dist/index.cjs",
12
11
  "files": [
13
12
  "dist"
14
13
  ],
14
+ "exports": {
15
+ ".": "./dist/index.cjs",
16
+ "./EngineConfiguration": "./dist/EngineConfiguration",
17
+ "./EnginePlayData": "./dist/EnginePlayData",
18
+ "./EngineWatchData": "./dist/EngineWatchData",
19
+ "./EnginePreviewData": "./dist/EnginePreviewData",
20
+ "./EngineTutorialData": "./dist/EngineTutorialData",
21
+ "./EngineThumbnail": "./dist/thumbnail.png"
22
+ },
15
23
  "scripts": {
16
24
  "dev:play": "sonolus-cli --dev ./play",
17
25
  "dev:watch": "sonolus-cli --dev ./watch",
18
26
  "dev:preview": "sonolus-cli --dev ./preview",
19
27
  "dev:tutorial": "sonolus-cli --dev ./tutorial",
20
- "prebuild": "tsc -p ./lib --noEmit && tsc -p ./shared --noEmit && tsc -p ./play --noEmit && tsc -p ./watch --noEmit && tsc -p ./preview --noEmit && tsc -p ./tutorial --noEmit && eslint . && prettier . --check",
28
+ "check-type": "tsc -p ./lib --noEmit && tsc -p ./shared --noEmit && tsc -p ./play --noEmit && tsc -p ./watch --noEmit && tsc -p ./preview --noEmit && tsc -p ./tutorial --noEmit",
29
+ "check-lint": "eslint .",
30
+ "check-format": "prettier . --check",
21
31
  "build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./watch && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.mjs"
22
32
  },
23
33
  "dependencies": {
24
- "@sonolus/core": "~7.9.0"
34
+ "@sonolus/core": "~7.9.3"
25
35
  },
26
36
  "devDependencies": {
27
- "@eslint/js": "^9.9.0",
28
- "@sonolus/sonolus.js": "~9.4.5",
37
+ "@eslint/js": "^9.16.0",
38
+ "@sonolus/sonolus.js": "~9.5.1",
29
39
  "@types/eslint__js": "^8.42.3",
30
- "@types/node": "^20.16.1",
31
- "eslint": "^9.9.0",
40
+ "@types/node": "^20.17.9",
41
+ "eslint": "^9.16.0",
32
42
  "eslint-config-prettier": "^9.1.0",
33
- "prettier": "^3.3.3",
34
- "prettier-plugin-organize-imports": "^4.0.0",
35
- "typescript": "~5.5.4",
36
- "typescript-eslint": "^8.2.0"
43
+ "prettier": "^3.4.1",
44
+ "prettier-plugin-organize-imports": "^4.1.0",
45
+ "typescript": "~5.7.2",
46
+ "typescript-eslint": "^8.16.0"
37
47
  }
38
48
  }