Support esnext in storybook
This commit is contained in:
parent
468ca256e6
commit
19279cfebd
16 changed files with 1088 additions and 434 deletions
3
ts/OS.ts
3
ts/OS.ts
|
@ -1,7 +1,6 @@
|
|||
// Copyright 2018 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import is from '@sindresorhus/is';
|
||||
import os from 'os';
|
||||
import semver from 'semver';
|
||||
|
||||
|
@ -14,7 +13,7 @@ export const isWindows = (minVersion?: string): boolean => {
|
|||
return false;
|
||||
}
|
||||
|
||||
return is.undefined(minVersion) ? true : semver.gte(osRelease, minVersion);
|
||||
return minVersion === undefined ? true : semver.gte(osRelease, minVersion);
|
||||
};
|
||||
|
||||
// Windows 10 and above
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue