Skip to content

Commit

Permalink
fix(publish): pack when file param is unused
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Jul 1, 2021
1 parent c1cd6c0 commit cc4c802
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions cli/src/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,18 @@ const handler = async ({ cwd = process.cwd(), ...params }) => {
)
}

// update build/app manifests after prepare for release
updateManifest({ version: appBundle.version }, paths)
if (!publishConfig.file) {
// update build/app manifests after prepare for release
updateManifest({ version: appBundle.version }, paths)

const bundle = path.parse(appBundle.path)
const bundle = path.parse(appBundle.path)

// update bundle archive
await pack({
destination: path.resolve(cwd, bundle.dir),
filename: bundle.base,
})
// update bundle archive
await pack({
destination: path.resolve(cwd, bundle.dir),
filename: bundle.base,
})
}

const client = createClient({
baseUrl: publishConfig.baseUrl,
Expand Down

0 comments on commit cc4c802

Please sign in to comment.