Skip to content

Commit bc92733

Browse files
k-l-lambdaclaude
andcommitted
fix: remove lilypondDecoder from index exports
lilypondDecoder requires lotus which is optional. Remove it from main exports to prevent TypeScript from compiling it during build. Users who need lilypondDecoder can import it directly from: @k-l-lambda/lilylet/lib/lilypondDecoder.js Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bce502e commit bc92733

2 files changed

Lines changed: 4 additions & 14 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@k-l-lambda/lilylet",
3-
"version": "0.1.43",
3+
"version": "0.1.44",
44
"description": "Lilylet is a lilyopnd-like sheet music language designed for Markdown rendering and symbolic music representation in AIGC applications.",
55
"type": "module",
66
"main": "lib/index.js",

source/lilylet/index.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,12 @@ import * as musicXmlDecoder from "./musicXmlDecoder";
88
import * as lilypondEncoder from "./lilypondEncoder";
99
import * as musicXmlEncoder from "./musicXmlEncoder";
1010

11-
// lilypondDecoder is optional - requires @k-l-lambda/lotus
12-
// Use dynamic import to avoid build-time dependency
13-
// @ts-ignore - lilypondDecoder.ts is excluded from build, pre-built .js is used
14-
const loadLilypondDecoder = async (): Promise<any> => {
15-
try {
16-
// eslint-disable-next-line @typescript-eslint/no-var-requires
17-
return await import(/* webpackIgnore: true */ "./lilypondDecoder.js");
18-
} catch {
19-
return undefined;
20-
}
21-
};
22-
2311
export {
2412
meiEncoder,
2513
musicXmlDecoder,
2614
lilypondEncoder,
2715
musicXmlEncoder,
28-
loadLilypondDecoder,
2916
};
17+
18+
// Note: lilypondDecoder is optional and requires @k-l-lambda/lotus
19+
// Import it directly from '@k-l-lambda/lilylet/lib/lilypondDecoder.js' if needed

0 commit comments

Comments
 (0)