Remove initial .npmrc
Change-Id: I1bd5bb871ff8898d9fd8405c21315912dc6b5cb2
This commit is contained in:
parent
804730573f
commit
2d348483a3
1 changed files with 6 additions and 5 deletions
11
create.js
11
create.js
|
@ -27,11 +27,6 @@ if (!fs.existsSync(appDir)) {
|
|||
fs.mkdirSync(`${appDir}/src`);
|
||||
}
|
||||
|
||||
// rename internal files
|
||||
fs.renameSync(`${rootDir}/source/shared/npmrc`, `${rootDir}/source/shared/.npmrc`);
|
||||
fs.renameSync(`${rootDir}/source/shared/gitignore`, `${rootDir}/source/shared/.gitignore`);
|
||||
fs.renameSync(`${rootDir}/source/shared/prettierrc`, `${rootDir}/source/shared/.prettierrc`);
|
||||
|
||||
// copy folder content
|
||||
try {
|
||||
fs.cpSync(`${rootDir}/source/shared/`, contextDir, {
|
||||
|
@ -46,6 +41,12 @@ try {
|
|||
console.error(err);
|
||||
}
|
||||
|
||||
// rename internal files
|
||||
fs.unlinkSync('.npmrc');
|
||||
fs.renameSync(`${contextDir}/npmrc`, `${contextDir}/.npmrc`);
|
||||
fs.renameSync(`${contextDir}/gitignore`, `${contextDir}/.gitignore`);
|
||||
fs.renameSync(`${contextDir}/prettierrc`, `${contextDir}/.prettierrc`);
|
||||
|
||||
// replace in files
|
||||
replaceInFiles.sync({
|
||||
files: `./${contextDir}/**/*.{ts,tsx}`,
|
||||
|
|
Loading…
Add table
Reference in a new issue