You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The benefit is that tool can either resolve to the CommonJS or ESM variants of tus-js-client. We can also consider exporting different types for browser and Node.js environments, as well as making environment-specific imports possible (e.g. import ... from 'tus-js-client/react-native/fileReader'). Resources:
Currently, tus-js-client uses the outdated
main
,module
, andbrowser
fields to indicate what files users should access when the package is imported:tus-js-client/package.json
Lines 5 to 13 in b147b53
After #683 is completed, we should upgrade this to more recent syntax that also incorporates the
exports
syntax. Resources:The benefit is that tool can either resolve to the CommonJS or ESM variants of tus-js-client. We can also consider exporting different types for browser and Node.js environments, as well as making environment-specific imports possible (e.g.
import ... from 'tus-js-client/react-native/fileReader'
). Resources:npx @arethetypeswrong/cli --pack .
)npx publint
)The text was updated successfully, but these errors were encountered: