2 Commits
Author SHA1 Message Date
James Ide 1d450da8b0 2.1.0 (#4) 2025-08-02 09:48:09 -07:00
James Ide d744b9b5f4 [exports] Use "require" instead of "module-sync", reorder "types" (#3)
"module-sync" was meant to be transitional but modern Node supports loading ESM files listed under "require" when requiring an ESM package from CJS.

"types" should go first in the exports.
2025-08-02 09:46:19 -07:00
+3 -3
View File
@@ -1,13 +1,13 @@
{
"name": "@expo/nullthrows",
"version": "2.0.0",
"version": "2.1.0",
"description": "An idiomatic way to enforce values not to be null nor undefined, with first-class support for TypeScript and ES modules",
"type": "module",
"exports": {
".": {
"types": "./src/nullthrows.ts",
"import": "./build/nullthrows.js",
"module-sync": "./build/nullthrows.js",
"types": "./src/nullthrows.ts"
"require": "./build/nullthrows.js"
}
},
"files": [