File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { existsSync , readdirSync } from 'fs' ;
2+ import { camelCase , upperFirst } from 'lodash-es' ;
23import { env } from 'process' ;
34import webpack from 'webpack' ;
4- import { camelCase , capitalize } from 'lodash-es' ;
55import { readJsonFromVisual } from './utils.js' ;
66
77const ngJson = readJsonFromVisual ( 'angular.json' ) ;
@@ -20,7 +20,7 @@ getDirectories(sourceRoot).forEach(dir => {
2020 const manifestPath = `${ sourceRoot } /${ dir } /manifest.json` ;
2121 if ( existsSync ( manifestPath ) ) {
2222 const manifestJson = readJsonFromVisual ( manifestPath ) ;
23- const exposedModule = capitalize ( camelCase ( manifestJson . name ) ) ;
23+ const exposedModule = upperFirst ( camelCase ( manifestJson . name ) ) ;
2424 exposes [ exposedModule ] = `./${ sourceRoot } /${ dir } ` ;
2525 }
2626} ) ;
You can’t perform that action at this time.
0 commit comments