We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
現在の vivliostyle-cli では --version オプションでバージョン情報を表示させると、次のように cli と core のバージョンが出ます。
--version
$ vivliostyle --version cli: 4.2.1 core: 2.10.0
このうち core のバージョンの取得をしているところでは、次のように実際は viewer のバージョンを見ています:
vivliostyle-cli/src/const.ts
Lines 13 to 18 in 401abf9
このようにしている理由は、 core と viewer はモノレポの vivliostyle.js で作られており、基本的に同じバージョンであり、viewerのビルド済みのjsプログラム @vivliostyle/viewer/lib/js/vivliostyle-viewer.js には core のプログラムがバンドルされているため、直接 core のバージョンを得ることができないためです。
@vivliostyle/viewer/lib/js/vivliostyle-viewer.js
core と viewer はモノレポ化してから、基本的に同じバージョンでしたが、vivliostyle.js の version:bump スクリプトでバージョン更新するときに viewer のみ更新されている場合は、core のバージョンは更新されません。 最近の vivliostyle.js v2.11.0 のリリースでこの状態となりました。 この状態で、viewer をこのバージョンに更新した vivliostyle-cli を作成した場合、 --version で "core: 2.11.0" と表示されることになりますが、実際の core のバージョンは "2.10.0" のままです。
いくつかの解決方法のアイデア:
@vivliostyle/viewer/package.json
@vivliostyle/core/package.json
The text was updated successfully, but these errors were encountered:
No branches or pull requests
現在の vivliostyle-cli では
--version
オプションでバージョン情報を表示させると、次のように cli と core のバージョンが出ます。このうち core のバージョンの取得をしているところでは、次のように実際は viewer のバージョンを見ています:
vivliostyle-cli/src/const.ts
Lines 13 to 18 in 401abf9
このようにしている理由は、 core と viewer はモノレポの vivliostyle.js で作られており、基本的に同じバージョンであり、viewerのビルド済みのjsプログラム
@vivliostyle/viewer/lib/js/vivliostyle-viewer.js
には core のプログラムがバンドルされているため、直接 core のバージョンを得ることができないためです。core と viewer はモノレポ化してから、基本的に同じバージョンでしたが、vivliostyle.js の version:bump スクリプトでバージョン更新するときに viewer のみ更新されている場合は、core のバージョンは更新されません。
最近の vivliostyle.js v2.11.0 のリリースでこの状態となりました。
この状態で、viewer をこのバージョンに更新した vivliostyle-cli を作成した場合、
--version
で "core: 2.11.0" と表示されることになりますが、実際の core のバージョンは "2.10.0" のままです。いくつかの解決方法のアイデア:
@vivliostyle/viewer/package.json
を見ているところを@vivliostyle/core/package.json
を見るように変える。そうした場合の問題は、
@vivliostyle/viewer/lib/js/vivliostyle-viewer.js
内にバンドルされている core と@vivliostyle/core/package.json
のバージョンが一致しない可能性があることThe text was updated successfully, but these errors were encountered: