node-modules-tools 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/index.mjs +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/chunks/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -117,7 +117,7 @@ function analyzePackageModuleType(pkgJson) {
|
|
|
117
117
|
if (cjs && type === "module") {
|
|
118
118
|
esm = true;
|
|
119
119
|
}
|
|
120
|
-
if (cjs ===
|
|
120
|
+
if (cjs === void 0 && esm === void 0) {
|
|
121
121
|
if (type === "module" || main && /\.mjs$/.test(main)) {
|
|
122
122
|
esm = true;
|
|
123
123
|
} else if (main) {
|
|
@@ -313,6 +313,7 @@ async function resolvePackage(_packageManager, pkg, _options) {
|
|
|
313
313
|
engines: json.engines,
|
|
314
314
|
license: json.license,
|
|
315
315
|
author: typeof json.author === "string" ? json.author : json.author?.url,
|
|
316
|
+
funding: json.funding,
|
|
316
317
|
repository,
|
|
317
318
|
homepage: json.homepage,
|
|
318
319
|
installSize: await getPackageInstallSize(_pkg)
|