angular/packages/bazel/test/ng_package/example_package.golden
Alan Agius d5cc9d5d71 feat(bazel): remove unused ESM2022 from APF (#57559)
We have removed the `esm2022` directory from the generated package, as it was unused and contributed 7.7 MB to `@angular/core`. The `ng_package` rule still passes `esm2022` to the packager to perform `analyzeFileAndEnsureNoCrossImports`.

A moment of reflection:
You've always been there, full of potential, yet never called upon. Now, we bid you farewell.

PR Close #57559
2024-08-28 08:45:38 -07:00

328 lines
8.3 KiB
Text

README.md
_index.scss
a11y
a11y/index.d.ts
arbitrary-npm-package-main.js
arbitrary_bin.txt
arbitrary_genfiles.txt
extra-styles.css
fesm2022
fesm2022/a11y.mjs
fesm2022/a11y.mjs.map
fesm2022/imports.mjs
fesm2022/imports.mjs.map
fesm2022/secondary.mjs
fesm2022/secondary.mjs.map
fesm2022/waffels.mjs
fesm2022/waffels.mjs.map
imports
imports/index.d.ts
index.d.ts
logo.png
package.json
secondary
secondary/index.d.ts
some-file.txt
--- README.md ---
Angular
=======
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in [Angular documentation](https://angular.dev/overview).
License: MIT
--- _index.scss ---
/// test file which should ship as part of the NPM package.
--- a11y/index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
export declare class A11yModule {
static ɵfac: i0.ɵɵFactoryDeclaration<A11yModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<A11yModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<A11yModule>;
}
export { }
--- arbitrary-npm-package-main.js ---
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const x = 1;
--- arbitrary_bin.txt ---
World
--- arbitrary_genfiles.txt ---
Hello
--- extra-styles.css ---
.special {
color: goldenrod;
}
--- fesm2022/a11y.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { NgModule } from '@angular/core';
class A11yModule {
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: A11yModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0", ngImport: i0, type: A11yModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: A11yModule }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: A11yModule, decorators: [{
type: NgModule,
args: [{}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { A11yModule };
//# sourceMappingURL=a11y.mjs.map
--- fesm2022/imports.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { Injectable } from '@angular/core';
class MySecondService {
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MySecondService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MySecondService, providedIn: 'root' }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MySecondService, decorators: [{
type: Injectable,
args: [{ providedIn: 'root' }]
}] });
class MyService {
constructor(secondService) {
this.secondService = secondService;
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyService, deps: [{ token: MySecondService }], target: i0.ɵɵFactoryTarget.Injectable }); }
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyService, providedIn: 'root' }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyService, decorators: [{
type: Injectable,
args: [{ providedIn: 'root' }]
}], ctorParameters: () => [{ type: MySecondService }] });
/**
* Generated bundle index. Do not edit.
*/
export { MyService };
//# sourceMappingURL=imports.mjs.map
--- fesm2022/secondary.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { NgModule } from '@angular/core';
class SecondaryModule {
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule, decorators: [{
type: NgModule,
args: [{}]
}] });
const a = 1;
/**
* Generated bundle index. Do not edit.
*/
export { SecondaryModule, a };
//# sourceMappingURL=secondary.mjs.map
--- fesm2022/waffels.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { NgModule } from '@angular/core';
class MyModule {
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0", ngImport: i0, type: MyModule }); }
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyModule }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyModule, decorators: [{
type: NgModule,
args: [{}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { MyModule };
//# sourceMappingURL=waffels.mjs.map
--- imports/index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
declare class MySecondService {
static ɵfac: i0.ɵɵFactoryDeclaration<MySecondService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MySecondService>;
}
export declare class MyService {
secondService: MySecondService;
constructor(secondService: MySecondService);
static ɵfac: i0.ɵɵFactoryDeclaration<MyService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MyService>;
}
export { }
--- index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
export declare class MyModule {
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>;
}
export { }
--- logo.png ---
611871c1f492a69a8a5f57e01096b145
--- package.json ---
{
"name": "example",
"version": "0.0.0",
"exports": {
".": {
"sass": "./_index.scss",
"types": "./index.d.ts",
"default": "./fesm2022/waffels.mjs"
},
"./package.json": {
"default": "./package.json"
},
"./a11y": {
"types": "./a11y/index.d.ts",
"default": "./fesm2022/a11y.mjs"
},
"./imports": {
"types": "./imports/index.d.ts",
"default": "./fesm2022/imports.mjs"
},
"./secondary": {
"types": "./secondary/index.d.ts",
"default": "./fesm2022/secondary.mjs"
}
},
"module": "./fesm2022/waffels.mjs",
"typings": "./index.d.ts",
"type": "module"
}
--- secondary/index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
export declare const a = 1;
export declare class SecondaryModule {
static ɵfac: i0.ɵɵFactoryDeclaration<SecondaryModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<SecondaryModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<SecondaryModule>;
}
export { }
--- some-file.txt ---
This file is just copied into the package.