Merge pull request #28308 from backstage/rugvip/modules

cli: add support for native ESM in Node.js packages
This commit is contained in:
Patrik Oldsberg
2025-01-16 14:07:54 +01:00
committed by GitHub
96 changed files with 1810 additions and 216 deletions
+2
View File
@@ -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;