Skip to content
New issue

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

Core:vがpackage.jsonの値と同じになるようにする #493

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

FineArchs
Copy link
Member

@FineArchs FineArchs commented Nov 27, 2023

  • package.jsonを.tsに変換するスクリプトを追加します。
    • 必要な要素以外は除外します。今はversionのみが残ります。
    • package.jsonを直接importすると、
      • パッケージ利用者にresolveJsonModuleを強いることになったり(未検証)、
      • ./builtのディレクトリ構造が変わったり、
      • API extractorに認識されなかったり、
    • といった事情でやや厄介ため、.tsに変換する方法を選びました。
  • version要素を定数AISCRIPT_VERSIONとしてエクスポートし、パッケージ利用者が利用しやすくします。
  • Core:vにはAISCRIPT_VERSIONの値が格納されるようにします。

@FineArchs FineArchs force-pushed the pkgjson-version branch 5 times, most recently from a5fc544 to 4deb677 Compare November 27, 2023 16:56
@syuilo syuilo merged commit 75c4c20 into aiscript-dev:master Jan 4, 2024
@syuilo
Copy link
Collaborator

syuilo commented Jan 4, 2024

👍👍

@FineArchs FineArchs deleted the pkgjson-version branch January 4, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants