This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const path = require("path");
2
2
const { existsSync } = require ( "fs" ) ;
3
3
4
4
const {
5
+ APP_DIR ,
5
6
getPackageJson,
6
7
getProjectDir,
7
8
isAngular,
@@ -11,15 +12,15 @@ const {
11
12
} = require ( "./projectHelpers" ) ;
12
13
13
14
const PROJECT_DIR = getProjectDir ( ) ;
14
- const APP_DIR = path . join ( PROJECT_DIR , "app" ) ;
15
+ const APP_PATH = path . join ( PROJECT_DIR , APP_DIR ) ;
15
16
16
17
Object . assign ( exports , require ( './plugins' ) ) ;
17
18
18
19
if ( isAngular ( { projectDir : PROJECT_DIR } ) ) {
19
20
Object . assign ( exports , require ( './plugins/angular' ) ) ;
20
21
}
21
22
22
- exports . getAotEntryModule = function ( appDirectory = APP_DIR ) {
23
+ exports . getAotEntryModule = function ( appDirectory = APP_PATH ) {
23
24
const entry = getPackageJsonEntry ( appDirectory ) ;
24
25
const aotEntry = `${ entry } .aot.ts` ;
25
26
@@ -32,7 +33,7 @@ exports.getAotEntryModule = function (appDirectory = APP_DIR) {
32
33
return aotEntry ;
33
34
}
34
35
35
- exports . getEntryModule = function ( appDirectory = APP_DIR ) {
36
+ exports . getEntryModule = function ( appDirectory = APP_PATH ) {
36
37
const entry = getPackageJsonEntry ( appDirectory ) ;
37
38
38
39
const tsEntryPath = path . resolve ( appDirectory , `${ entry } .ts` ) ;
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ function getAppResourcesPathFromProjectData(data) {
168
168
}
169
169
170
170
module . exports = {
171
+ APP_DIR ,
171
172
getAppPath,
172
173
getAppPathFromProjectData,
173
174
getAppResourcesPathFromProjectData,
You can’t perform that action at this time.
0 commit comments