build: roll up to named .js files rather than 'index.js' (#19190)
PR Close #19190
This commit is contained in:
14
packages/compiler/compiler.ts
Normal file
14
packages/compiler/compiler.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. 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
|
||||
*/
|
||||
|
||||
// This file is not used to build this module. It is only used during editing
|
||||
// by the TypeScript language service and during build for verification. `ngc`
|
||||
// replaces this file with production index.ts when it rewrites private symbol
|
||||
// names.
|
||||
|
||||
export * from './public_api';
|
@ -11,4 +11,4 @@
|
||||
// replaces this file with production index.ts when it rewrites private symbol
|
||||
// names.
|
||||
|
||||
export * from './public_api';
|
||||
export * from './compiler';
|
||||
|
@ -3,9 +3,9 @@
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"description": "Angular - the compiler library",
|
||||
"main": "./bundles/compiler.umd.js",
|
||||
"module": "./esm5/index.js",
|
||||
"es2015": "./esm15/index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./esm5/compiler.js",
|
||||
"es2015": "./esm2015/compiler.js",
|
||||
"typings": "./compiler.d.ts",
|
||||
"author": "angular",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -16,7 +16,7 @@ const globals = {
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../dist/packages-dist/compiler/esm5/index.js',
|
||||
entry: '../../dist/packages-dist/compiler/esm5/compiler.js',
|
||||
dest: '../../dist/packages-dist/compiler/bundles/compiler.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@angular/compiler/testing",
|
||||
"typings": "./index.d.ts",
|
||||
"typings": "./testing.d.ts",
|
||||
"main": "../bundles/compiler-testing.umd.js",
|
||||
"module": "../esm5/testing/index.js",
|
||||
"es2015": "../esm15/testing/index.js"
|
||||
"module": "../esm5/testing.js",
|
||||
"es2015": "../esm2015/testing.js"
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ const globals = {
|
||||
};
|
||||
|
||||
export default {
|
||||
entry: '../../../dist/packages-dist/compiler/esm5/testing/index.js',
|
||||
entry: '../../../dist/packages-dist/compiler/esm5/testing.js',
|
||||
dest: '../../../dist/packages-dist/compiler/bundles/compiler-testing.umd.js',
|
||||
format: 'umd',
|
||||
exports: 'named',
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
"angularCompilerOptions": {
|
||||
"annotateForClosureCompiler": true,
|
||||
"flatModuleOutFile": "index.js",
|
||||
"flatModuleOutFile": "testing.js",
|
||||
"flatModuleId": "@angular/compiler/testing"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user