@opencrvs/create-countryconfig 2.0.2-rc.5a52b2b → 2.0.2-rc.5bcf229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +15 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -179,13 +179,20 @@ function cloneRepository(
|
|
|
179
179
|
)
|
|
180
180
|
process.exit(1)
|
|
181
181
|
}
|
|
182
|
+
return
|
|
182
183
|
}
|
|
183
|
-
|
|
184
|
+
|
|
185
|
+
console.log(
|
|
186
|
+
"Replacing 'origin' remote with 'upstream' in " + targetDir + '...'
|
|
187
|
+
)
|
|
184
188
|
execSync('git remote remove origin', {
|
|
185
189
|
cwd: targetDir,
|
|
186
190
|
stdio: 'inherit'
|
|
187
191
|
})
|
|
188
|
-
|
|
192
|
+
execSync('git remote add upstream ' + repoUrl, {
|
|
193
|
+
cwd: targetDir,
|
|
194
|
+
stdio: 'inherit'
|
|
195
|
+
})
|
|
189
196
|
}
|
|
190
197
|
|
|
191
198
|
const projectName = process.argv[2]
|
|
@@ -273,3 +280,9 @@ console.log(' git init')
|
|
|
273
280
|
console.log(' npm install\n')
|
|
274
281
|
console.log('To get started with the infrastructure:\n')
|
|
275
282
|
console.log(' cd ' + infrastructureDirName)
|
|
283
|
+
console.log(' git remote add origin <your-infrastructure-repo-url>')
|
|
284
|
+
console.log(' git push -u origin ' + ref + '\n')
|
|
285
|
+
console.log(
|
|
286
|
+
'The "upstream" remote points at the official infrastructure repository, ' +
|
|
287
|
+
'so you can pull future releases with `git fetch upstream`.\n'
|
|
288
|
+
)
|