Skip to content

Commit 3f253fb

Browse files
authored
add module-sync to exports (SchemaStore#4802)
1 parent 6d3e056 commit 3f253fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/schemas/json/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@
160160
"$ref": "#/definitions/packageExportsEntryOrFallback",
161161
"description": "The module path that is resolved when this specifier is imported as an ECMAScript module using an `import` declaration or the dynamic `import(...)` function."
162162
},
163+
"module-sync": {
164+
"$ref": "#/definitions/packageExportsEntryOrFallback",
165+
"$comment": "https://nodejs.org/api/packages.html#conditional-exports#:~:text=%22module-sync%22",
166+
"description": "The same as `import`, but can be used with require(esm) in Node 20+. This requires the files to not use any top-level awaits."
167+
},
163168
"node": {
164169
"$ref": "#/definitions/packageExportsEntryOrFallback",
165170
"description": "The module path that is resolved when this environment is Node.js."

0 commit comments

Comments
 (0)