Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: linking CLI version output with package.json #6097

Merged
merged 14 commits into from
Jul 29, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
separating versions
  • Loading branch information
mmaietta committed Jul 28, 2021
commit d71dcbf06bb37b27a8202a503ba063193e871bce
4 changes: 2 additions & 2 deletions packages/electron-builder/src/cli/install-app-deps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env node

import { PACKAGE_VERSION } from "app-builder-lib/out/version"
import { version as VERSION } from "../../package.json"
import { log, use, getArchCliNames } from "builder-util"
import { printErrorAndExit } from "builder-util/out/promise"
import { computeDefaultAppDirectory, getConfig } from "app-builder-lib/out/util/config"
Expand Down Expand Up @@ -36,7 +36,7 @@ export function configureInstallAppDepsCommand(yargs: yargs.Argv): yargs.Argv {
/** @internal */
export async function installAppDeps(args: any) {
try {
log.info({ version: PACKAGE_VERSION }, "electron-builder")
log.info({ version: VERSION }, "electron-builder")
} catch (e) {
// error in dev mode without babel
if (!(e instanceof ReferenceError)) {
Expand Down
3 changes: 2 additions & 1 deletion packages/electron-builder/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../tsconfig-base.json",
"compilerOptions": {
"outDir": "out",
"rootDir": "src"
"rootDir": "."
},
"references": [
{
Expand All @@ -24,6 +24,7 @@
"access": "public"
},
"include": [
"./package.json",
"src/**/*.ts",
"../../typings/*.d.ts"
],
Expand Down