Skip to content

Commit

Permalink
chore() publish 6.11.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 25, 2019
1 parent 3a0bc07 commit bc9a89f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ publish-npm-package: prepublish
@docker run -w /nestjs/cli nestjs/cli:$$ARTEFACT_ID \
/bin/sh -c "\
echo //registry.npmjs.org/:_authToken=$$NPM_TOKEN >> .npmrc && \
npm publish --tag next \
npm publish \
"

prepublish:
Expand Down
5 changes: 1 addition & 4 deletions commands/build.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export class BuildCommand extends AbstractCommand {
.action(async (app: string, command: Command) => {
const options: Input[] = [];

let isWebpackEnabled = !!command.webpack;
if (command.tsc) {
isWebpackEnabled = false;
}
let isWebpackEnabled = command.tsc ? false : command.webpack;
options.push({ name: 'webpack', value: isWebpackEnabled });
options.push({ name: 'watch', value: !!command.watch });
options.push({
Expand Down
5 changes: 1 addition & 4 deletions commands/start.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ export class StartCommand extends AbstractCommand {
.action(async (app: string, command: Command) => {
const options: Input[] = [];

let isWebpackEnabled = !!command.webpack;
if (command.tsc) {
isWebpackEnabled = false;
}
let isWebpackEnabled = command.tsc ? false : command.webpack;
options.push({ name: 'webpack', value: isWebpackEnabled });
options.push({ name: 'debug', value: command.debug });
options.push({ name: 'watch', value: !!command.watch });
Expand Down
3 changes: 1 addition & 2 deletions lib/compiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ export class Compiler {
afterDeclarations: [],
},
);
this.reportAfterCompilationDiagnostic(program, emitResult);

const errorsCount = this.reportAfterCompilationDiagnostic(
program,
emitResult,
);
if (errorsCount && !onSuccess) {
if (errorsCount) {
process.exit(1);
} else if (!errorsCount && onSuccess) {
onSuccess();
Expand Down
2 changes: 1 addition & 1 deletion lib/compiler/helpers/get-value-or-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function getValueOrDefault<T = any>(
): T {
const item = options.find(option => option.name === key);
const origValue = item && ((item.value as unknown) as T);
if (origValue) {
if (origValue !== undefined && origValue !== null) {
return origValue as T;
}
if (configuration.projects && configuration.projects[appName]) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/cli",
"version": "6.11.0-next.1",
"version": "6.11.0",
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit bc9a89f

Please sign in to comment.