@dhis2/create-app 5.3.0-alpha.7 → 5.3.0-alpha.8
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/package.json +1 -1
- package/src/index.js +4 -0
- package/templates/gitignore +5 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -171,8 +171,12 @@ const command = {
|
|
|
171
171
|
appRootWrapperFile: path.join(cwd, 'src/AppWrapper.tsx'),
|
|
172
172
|
initYarnLock: path.join(__dirname, '../templates/yarn.lock'),
|
|
173
173
|
initNpmLock: path.join(__dirname, '../templates/package-lock.json'),
|
|
174
|
+
initGitIgnore: path.join(__dirname, '../templates/gitignore'),
|
|
174
175
|
}
|
|
175
176
|
|
|
177
|
+
// .gitignore file seems to be removed from the published npm package, so copying it separately here
|
|
178
|
+
fs.copyFileSync(paths.initGitIgnore, path.join(cwd, '.gitignore'))
|
|
179
|
+
|
|
176
180
|
const pnpm = selectedOptions.packageManager === 'pnpm'
|
|
177
181
|
const npm = selectedOptions.packageManager === 'npm'
|
|
178
182
|
const yarn = selectedOptions.packageManager === 'yarn'
|