Skip to content

Commit

Permalink
fix(checker): fix how often to check for stencil updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jul 10, 2020
1 parent e831574 commit eb0da10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/check-version.ts
Expand Up @@ -2,7 +2,7 @@ import type { Config } from '../declarations';
import { isFunction } from '@utils';

export const startCheckVersion = async (config: Config, currentVersion: string) => {
if (config.devMode && !config.flags.ci && isFunction(config.sys.checkVersion)) {
if (config.devMode && !config.flags.ci && !currentVersion.includes('-dev.') && isFunction(config.sys.checkVersion)) {
return config.sys.checkVersion(config.logger, currentVersion);
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/sys/node/node-stencil-version-checker.ts
Expand Up @@ -6,7 +6,7 @@ import semiver from 'semiver';
import { tmpdir } from 'os';

const REGISTRY_URL = `https://registry.npmjs.org/@stencil/core`;
const CHECK_INTERVAL = 1; //1000 * 60 * 60 * 24 * 7;
const CHECK_INTERVAL = 1000 * 60 * 60 * 24 * 7;

export async function checkVersion(logger: Logger, currentVersion: string): Promise<() => void> {
try {
Expand Down

0 comments on commit eb0da10

Please sign in to comment.