diff --git a/packages/device-id/package.json b/packages/device-id/package.json index e4d04f75..015146cf 100644 --- a/packages/device-id/package.json +++ b/packages/device-id/package.json @@ -23,14 +23,19 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/devtools-proxy-support/package.json b/packages/devtools-proxy-support/package.json index 5cdf1159..d85cff37 100644 --- a/packages/devtools-proxy-support/package.json +++ b/packages/devtools-proxy-support/package.json @@ -23,19 +23,29 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { ".": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, "./proxy-options": { - "require": "./dist/proxy-options-public.js", - "import": "./dist/.esm-wrapper-po.mjs", - "types": "./dist/proxy-options-public.d.ts" + "require": { + "default": "./dist/proxy-options-public.js", + "types": "./dist/proxy-options-public.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper-po.mjs", + "types": "./dist/proxy-options-public.d.ts" + } } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/dl-center/package.json b/packages/dl-center/package.json index cc41ec46..9fed4f7e 100644 --- a/packages/dl-center/package.json +++ b/packages/dl-center/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "generate-config-from-schema": "json2ts -i src/download-center-config.schema.json -o src/download-center-config.ts --bannerComment \"/* AUTO-GENERATED DO NOT EDIT. */\"", "pretest": "npm run generate-config-from-schema && npm run reformat", diff --git a/packages/download-url/package.json b/packages/download-url/package.json index a7d9800a..2d468325 100644 --- a/packages/download-url/package.json +++ b/packages/download-url/package.json @@ -21,12 +21,17 @@ "reformat": "npm run prettier -- --write ." }, "main": "lib/index.js", + "types": "lib/index.d.ts", "exports": { - "require": "./lib/index.js", - "import": "./.esm-wrapper.mjs", - "types": "./lib/index.d.ts" + "require": { + "default": "./lib/index.js", + "types": "./lib/index.d.ts" + }, + "import": { + "default": "./.esm-wrapper.mjs", + "types": "./lib/index.d.ts" + } }, - "typings": "lib/index.d.ts", "bin": { "mongodb-download-url": "bin/mongodb-download-url.js" }, diff --git a/packages/get-os-info/package.json b/packages/get-os-info/package.json index 23ecdda3..a2f6345d 100644 --- a/packages/get-os-info/package.json +++ b/packages/get-os-info/package.json @@ -24,9 +24,14 @@ "license": "Apache-2.0", "main": "dist/index.js", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, "types": "./dist/index.d.ts", "scripts": { diff --git a/packages/mongodb-cloud-info/package.json b/packages/mongodb-cloud-info/package.json index e7d253d6..729e66e3 100644 --- a/packages/mongodb-cloud-info/package.json +++ b/packages/mongodb-cloud-info/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/mongodb-constants/package.json b/packages/mongodb-constants/package.json index 36f9e9a3..3a1f16b3 100644 --- a/packages/mongodb-constants/package.json +++ b/packages/mongodb-constants/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/mongodb-downloader/package.json b/packages/mongodb-downloader/package.json index d8d5e21f..71e8fcef 100644 --- a/packages/mongodb-downloader/package.json +++ b/packages/mongodb-downloader/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/mongodb-redact/package.json b/packages/mongodb-redact/package.json index b750b5ed..e5ffc683 100644 --- a/packages/mongodb-redact/package.json +++ b/packages/mongodb-redact/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/mongodb-runner/package.json b/packages/mongodb-runner/package.json index 9c620bad..2085522d 100644 --- a/packages/mongodb-runner/package.json +++ b/packages/mongodb-runner/package.json @@ -27,14 +27,17 @@ }, "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", "types": "./dist/index.d.ts" } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/mongodb-ts-autocomplete/package.json b/packages/mongodb-ts-autocomplete/package.json index 89100174..4b730fd5 100644 --- a/packages/mongodb-ts-autocomplete/package.json +++ b/packages/mongodb-ts-autocomplete/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/mql-typescript/package.json b/packages/mql-typescript/package.json index a92b26b3..918e3464 100644 --- a/packages/mql-typescript/package.json +++ b/packages/mql-typescript/package.json @@ -27,12 +27,22 @@ }, "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { + ".": { + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } + }, "./schema": { "types": "./out/schema.d.ts" } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/native-machine-id/package.json b/packages/native-machine-id/package.json index 14eb5a6a..8968b1b3 100644 --- a/packages/native-machine-id/package.json +++ b/packages/native-machine-id/package.json @@ -28,9 +28,12 @@ }, "license": "Apache-2.0", "exports": { - ".": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", "types": "./dist/index.d.ts" } }, diff --git a/packages/oidc-http-server-pages/package.json b/packages/oidc-http-server-pages/package.json index 29ece182..e5ab294c 100644 --- a/packages/oidc-http-server-pages/package.json +++ b/packages/oidc-http-server-pages/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/oidc-mock-provider/package.json b/packages/oidc-mock-provider/package.json index ff7d52f2..b856d2d9 100644 --- a/packages/oidc-mock-provider/package.json +++ b/packages/oidc-mock-provider/package.json @@ -28,12 +28,17 @@ }, "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/query-parser/package.json b/packages/query-parser/package.json index 955d8815..9a38e3ef 100644 --- a/packages/query-parser/package.json +++ b/packages/query-parser/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/sbom-tools/package.json b/packages/sbom-tools/package.json index 8f402907..32d3614b 100644 --- a/packages/sbom-tools/package.json +++ b/packages/sbom-tools/package.json @@ -26,12 +26,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/shell-bson-parser/package.json b/packages/shell-bson-parser/package.json index 78af5405..74de0063 100644 --- a/packages/shell-bson-parser/package.json +++ b/packages/shell-bson-parser/package.json @@ -23,9 +23,16 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, "scripts": { "bootstrap": "npm run compile", diff --git a/packages/signing-utils/package.json b/packages/signing-utils/package.json index 3215060b..acbf3c04 100644 --- a/packages/signing-utils/package.json +++ b/packages/signing-utils/package.json @@ -24,12 +24,17 @@ ], "license": "SSPL", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/packages/ts-autocomplete/package.json b/packages/ts-autocomplete/package.json index 6f1dce53..c7b18c24 100644 --- a/packages/ts-autocomplete/package.json +++ b/packages/ts-autocomplete/package.json @@ -23,12 +23,17 @@ ], "license": "Apache-2.0", "main": "dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "require": "./dist/index.js", - "import": "./dist/.esm-wrapper.mjs", - "types": "./dist/index.d.ts" + "require": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "import": { + "default": "./dist/.esm-wrapper.mjs", + "types": "./dist/index.d.ts" + } }, - "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile", diff --git a/scripts/src/create-workspace.js b/scripts/src/create-workspace.js index dad7d37f..da6d9e77 100755 --- a/scripts/src/create-workspace.js +++ b/scripts/src/create-workspace.js @@ -168,11 +168,17 @@ async function main(argv) { files: ['dist'], license: license, main: 'dist/index.js', + types: './dist/index.d.ts', exports: { - require: './dist/index.js', - import: './dist/.esm-wrapper.mjs', + require: { + default: './dist/index.js', + types: './dist/index.d.ts', + }, + import: { + default: './dist/.esm-wrapper.mjs', + types: './dist/index.d.ts', + }, }, - types: './dist/index.d.ts', scripts: { bootstrap: 'npm run compile', prepublishOnly: 'npm run compile',