@package-json/types
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -572,4 +572,26 @@ /* eslint-disable */ | ||
declare const definePackageJson: (json: JSONSchemaForNPMPackageJsonFiles) => JSONSchemaForNPMPackageJsonFiles; | ||
/** | ||
* The module path prefix that is resolved when the module specifier starts with "name/", set to "./*" to allow external modules to import any subpath. | ||
* | ||
* This interface was referenced by `undefined`'s JSON-Schema definition | ||
* via the `patternProperty` "^\./.+". | ||
*/ | ||
type PatchedPackageExportsEntry = Record<`./${string}` | ({} & string), PackageExportsEntry | PackageExportsFallback>; | ||
/** | ||
* The "exports" field is used to restrict external access to non-exported module files, also enables a module to import itself using "name". | ||
*/ | ||
type PatchedExports = { | ||
/** | ||
* The module path that is resolved when the module specifier matches "name", shadows the "main" field. | ||
*/ | ||
'.'?: PackageExportsEntry | PackageExportsFallback; | ||
'./package.json'?: './package.json'; | ||
} & PatchedPackageExportsEntry | (null | string) | PackageExportsEntryObject1 | PackageExportsFallback1; | ||
export { type Dependency, type FundingUrl, type FundingWay, type JSONSchemaForNPMPackageJsonFiles, type License, type PackageExportsEntry, type PackageExportsEntryObject, type PackageExportsEntryObject1, type PackageExportsEntryPath, type PackageExportsFallback, type PackageExportsFallback1, type JSONSchemaForNPMPackageJsonFiles as PackageJSON, type JSONSchemaForNPMPackageJsonFiles as PackageJson, type Person, type Person1, type ScriptsInstallAfter, type ScriptsPublishAfter, type ScriptsRestart, type ScriptsStart, type ScriptsStop, type ScriptsTest, type ScriptsUninstallBefore, type ScriptsVersionBefore, definePackageJson as default, definePackageJson as definePackageJSON, definePackageJson }; | ||
type PackageJson = { | ||
exports?: PatchedExports; | ||
} & Omit<JSONSchemaForNPMPackageJsonFiles, 'exports'>; | ||
declare const definePackageJson: (json: PackageJson) => PackageJson; | ||
export { type Dependency, type FundingUrl, type FundingWay, type JSONSchemaForNPMPackageJsonFiles, type License, type PackageExportsEntry, type PackageExportsEntryObject, type PackageExportsEntryObject1, type PackageExportsEntryPath, type PackageExportsFallback, type PackageExportsFallback1, type PackageJson as PackageJSON, type PackageJson, type Person, type Person1, type ScriptsInstallAfter, type ScriptsPublishAfter, type ScriptsRestart, type ScriptsStart, type ScriptsStop, type ScriptsTest, type ScriptsUninstallBefore, type ScriptsVersionBefore, definePackageJson as default, definePackageJson as definePackageJSON, definePackageJson }; |
{ | ||
"name": "@package-json/types", | ||
"type": "module", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Auto-generated package.json types.", | ||
@@ -6,0 +6,0 @@ "author": "藍+85CD", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23180
595