Skip to content

Commit

Permalink
fix(pack): use the built app config
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Jun 30, 2021
1 parent e1d5c64 commit e22d186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cli/src/commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const path = require('path')
const { reporter, chalk, exit } = require('@dhis2/cli-helpers-engine')
const fs = require('fs-extra')
const makeBundle = require('../lib/makeBundle.js')
const parseConfig = require('../lib/parseConfig.js')
const makePaths = require('../lib/paths.js')

exports.command = 'pack [folder]'
Expand Down Expand Up @@ -31,7 +30,7 @@ exports.handler = async argv => {
const { cwd = process.cwd(), folder, destination, filename } = argv

const paths = makePaths(cwd)
const config = parseConfig(paths)
const config = fs.readJsonSync(paths.buildAppConfigJson)

let inputPath, outputPath
if (config.type === 'app') {
Expand Down
2 changes: 2 additions & 0 deletions examples/simple-app/d2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const config = {

dataStoreNamespace: 'testapp-namespace',
customAuthorities: ['testapp-authority'],

minDHIS2Version: '2.35',
}

module.exports = config

0 comments on commit e22d186

Please sign in to comment.