Skip to content

Commit

Permalink
feat: enable publishing login_app apps
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Mar 21, 2024
1 parent a2ba40d commit 93093ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const publishVersion = require('../lib/publishVersion.js')
const updateManifest = require('../lib/updateManifest.js')
const { handler: pack } = require('./pack.js')

const { isApp } = parseConfig

const isValidServerVersion = (v) => !!/(\d+)\.(\d+)/.exec(v)

const requiredFields = new Set(['id', 'version', 'minDHIS2Version'])
Expand Down Expand Up @@ -171,7 +173,7 @@ const handler = async ({ cwd = process.cwd(), ...params }) => {
params: publishConfig,
})

if (appConfig.type !== 'app') {
if (!isApp(appConfig.type)) {
exit(
1,
'Only publishing apps to the App Hub is currently supported. Please upload other types manually.'
Expand Down

0 comments on commit 93093ca

Please sign in to comment.