Merge pull request #28308 from backstage/rugvip/modules
cli: add support for native ESM in Node.js packages
This commit is contained in:
@@ -72,6 +72,8 @@ export interface BackstagePackageJson {
|
||||
[key: string]: string;
|
||||
};
|
||||
// (undocumented)
|
||||
type?: 'module' | 'commonjs';
|
||||
// (undocumented)
|
||||
types?: string;
|
||||
// (undocumented)
|
||||
typesVersions?: Record<string, Record<string, string[]>>;
|
||||
|
||||
@@ -43,6 +43,8 @@ export interface BackstagePackageJson {
|
||||
// that the package bundles all of its dependencies in its build output.
|
||||
bundled?: boolean;
|
||||
|
||||
type?: 'module' | 'commonjs';
|
||||
|
||||
backstage?: {
|
||||
role?: PackageRole;
|
||||
moved?: string;
|
||||
|
||||
Reference in New Issue
Block a user