@@ -126,33 +126,30 @@ const reactScriptsLinked =
126
126
fs . lstatSync ( reactScriptsPath ) . isSymbolicLink ( ) ;
127
127
128
128
// config before publish: we're in ./packages/react-scripts/config/
129
-
130
129
if (
131
130
! reactScriptsLinked &&
132
131
__dirname . indexOf ( path . join ( 'packages' , 'react-scripts' , 'config' ) ) !== - 1
133
132
) {
134
- const template = 'template' ;
135
-
136
133
module . exports = {
137
- dotenv : resolveOwn ( ` ${ template } /.env` ) ,
134
+ dotenv : resolveOwn ( ' template/.env' ) ,
138
135
appPath : resolveApp ( '.' ) ,
139
136
appBuild : resolveOwn ( '../../build' ) ,
140
- appPublic : resolveOwn ( ` ${ template } /public` ) ,
141
- appHtml : resolveOwn ( ` ${ template } /public/index.html` ) ,
142
- appIndexJs : resolveModule ( resolveOwn , ` ${ template } /src/index` ) ,
137
+ appPublic : resolveOwn ( ' template/public' ) ,
138
+ appHtml : resolveOwn ( ' template/public/index.html' ) ,
139
+ appIndexJs : resolveModule ( resolveOwn , ' template/src/index' ) ,
143
140
appPackageJson : resolveOwn ( 'package.json' ) ,
144
- appSrc : resolveOwn ( ` ${ template } /src` ) ,
145
- appTsConfig : resolveOwn ( ` ${ template } /tsconfig.json` ) ,
146
- yarnLockFile : resolveOwn ( ` ${ template } /yarn.lock` ) ,
147
- testsSetup : resolveModule ( resolveOwn , ` ${ template } /src/setupTests` ) ,
148
- proxySetup : resolveOwn ( ` ${ template } /src/setupProxy.js` ) ,
141
+ appSrc : resolveOwn ( ' template/src' ) ,
142
+ appTsConfig : resolveOwn ( ' template/tsconfig.json' ) ,
143
+ yarnLockFile : resolveOwn ( ' template/yarn.lock' ) ,
144
+ testsSetup : resolveModule ( resolveOwn , ' template/src/setupTests' ) ,
145
+ proxySetup : resolveOwn ( ' template/src/setupProxy.js' ) ,
149
146
appNodeModules : resolveOwn ( 'node_modules' ) ,
150
147
publicUrl : getPublicUrl ( resolveOwn ( 'package.json' ) ) ,
151
148
servedPath : getServedPath ( resolveOwn ( 'package.json' ) ) ,
152
149
// These properties only exist before ejecting:
153
150
ownPath : resolveOwn ( '.' ) ,
154
151
ownNodeModules : resolveOwn ( 'node_modules' ) ,
155
- appTypeDeclarations : resolveOwn ( ` ${ template } /src/react-app-env.d.ts` ) ,
152
+ appTypeDeclarations : resolveOwn ( ' template/src/react-app-env.d.ts' ) ,
156
153
ownTypeDeclarations : resolveOwn ( 'lib/react-app.d.ts' ) ,
157
154
} ;
158
155
}
0 commit comments