@ms-cloudpack/common-types
Advanced tools
Comparing version
export { allFeatures } from './allFeatures.js'; | ||
export type { GetPackageDefinitionOptions, PackageDefinitionTransform, PackageDefinitionTransformFactory, PackageDefinitionsCache, PackageImporterContext, } from './PackageDefinitionsCache.js'; | ||
export type { LiteralOrString, PackageJson, PackageJsonDependencies, PackageJsonExportCondition, PackageJsonExports, PackageJsonExportsObject, GeneratedExports, PackageJsonExportsValue, } from './PackageJson.js'; | ||
export type { LiteralOrString, PackageJson, PackageJsonCloudpackMeta, PackageJsonDependencies, PackageJsonExportCondition, PackageJsonExports, PackageJsonExportsObject, GeneratedExports, PackageJsonExportsValue, } from './PackageJson.js'; | ||
export type { BundleContext } from './BundleContext.js'; | ||
@@ -5,0 +5,0 @@ export type { BundleMessage } from './BundleMessage.js'; |
@@ -58,7 +58,15 @@ import type { BundleMode } from './BundleMode.js'; | ||
*/ | ||
cloudpack?: Omit<PackageSettings, 'match' | 'exports' | 'includedDependencies' | 'excludedDependencies' | 'bundlerType'> & { | ||
mode: BundleMode; | ||
}; | ||
cloudpack?: PackageJsonCloudpackMeta; | ||
}; | ||
/** | ||
* Cached merged package settings (user and generated) for this package (excluding properties | ||
* that are fully handled by `createPackageSettingsTransform`), plus other info. | ||
* | ||
* See `PackageJson.cloudpack` for details of when this can be used. | ||
*/ | ||
export interface PackageJsonCloudpackMeta extends Omit<PackageSettings, 'match' | 'exports' | 'includedDependencies' | 'excludedDependencies' | 'bundlerType'> { | ||
/** Controls how the package is bundled. */ | ||
mode: BundleMode; | ||
} | ||
/** | ||
* Union type which has intellisense for specific keys but also allows arbitrary strings. | ||
@@ -65,0 +73,0 @@ * This is a workaround for a [TypeScript issue](https://github.com/Microsoft/TypeScript/issues/29729) |
{ | ||
"name": "@ms-cloudpack/common-types", | ||
"version": "0.24.2", | ||
"version": "0.24.3", | ||
"description": "Common types for Cloudpack.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
262228
0.33%3953
0.2%0
-100%7
-12.5%