Remove initial .npmrc

Change-Id: I1bd5bb871ff8898d9fd8405c21315912dc6b5cb2
This commit is contained in:
Roman Jaroš 2023-09-09 20:43:02 +02:00
parent 804730573f
commit 2d348483a3

View file

@ -27,11 +27,6 @@ if (!fs.existsSync(appDir)) {
fs.mkdirSync(`${appDir}/src`); 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 // copy folder content
try { try {
fs.cpSync(`${rootDir}/source/shared/`, contextDir, { fs.cpSync(`${rootDir}/source/shared/`, contextDir, {
@ -46,6 +41,12 @@ try {
console.error(err); 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 // replace in files
replaceInFiles.sync({ replaceInFiles.sync({
files: `./${contextDir}/**/*.{ts,tsx}`, files: `./${contextDir}/**/*.{ts,tsx}`,