@dhis2/create-app 5.3.0-alpha.1 → 5.3.0-alpha.2
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 +14 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -110,8 +110,6 @@ const command = {
|
|
|
110
110
|
],
|
|
111
111
|
})
|
|
112
112
|
|
|
113
|
-
// pnpm = packageManager === 'pnpm'
|
|
114
|
-
// npm = packageManager === 'npm'
|
|
115
113
|
selectedOptions.packageManager = packageManager
|
|
116
114
|
|
|
117
115
|
const language = await select({
|
|
@@ -306,6 +304,19 @@ const command = {
|
|
|
306
304
|
|
|
307
305
|
reporter.info(`Running '${pkgManager} install'`)
|
|
308
306
|
|
|
307
|
+
reporter.debug(`Upgrading @dhis2 dependencies to latest`)
|
|
308
|
+
await exec({
|
|
309
|
+
cmd: pkgManager,
|
|
310
|
+
args: [
|
|
311
|
+
npm ? 'install --save' : 'upgrade',
|
|
312
|
+
'@dhis2/app-runtime@latest',
|
|
313
|
+
'@dhis2/cli-app-scripts@latest',
|
|
314
|
+
'@dhis2/ui@latest',
|
|
315
|
+
],
|
|
316
|
+
cwd: paths.base,
|
|
317
|
+
pipe: argv.debug,
|
|
318
|
+
})
|
|
319
|
+
|
|
309
320
|
await exec({
|
|
310
321
|
cmd: pkgManager,
|
|
311
322
|
args: ['install'],
|
|
@@ -313,6 +324,7 @@ const command = {
|
|
|
313
324
|
pipe: argv.debug,
|
|
314
325
|
})
|
|
315
326
|
|
|
327
|
+
reporter.debug(`Running '${pkgManager} format'`)
|
|
316
328
|
await exec({
|
|
317
329
|
cmd: pkgManager,
|
|
318
330
|
args: npm ? ['run', 'format'] : ['format'],
|