microsoft / microsoft/FeatureManagement-JavaScript

Include conditional exports in package.json

オープン
#31 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@zhiyuanliang-ms がすでに取り組んでいます。

2024年8月24日 から。

主要言語
TypeScript
スター
19
フォーク
6
平均マージ
2日 3時間
マージ済み PR(30日)
4

説明

Currently, we have main and module in the package.json which specify the entry point for cjs and esm. ref

exports is supported by Node.js 12+ ref

Note that exports will take precedence over the main field: https://nodejs.org/api/packages.html#main

The exports field can produce extra extensibility, for example, tools like webpack will know some specific fields. ref

BTW, this is how azure sdk does: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-auth/package.json
I prefer to follow azure sdk.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。