CHANGE to use semver for browser fork

This commit is contained in:
Norbert de Langen 2020-05-26 11:31:35 +02:00
parent 41c1e10399
commit 73014df7f8
No known key found for this signature in database
GPG Key ID: 976651DA156C2825
20 changed files with 21 additions and 15 deletions

View File

@ -52,7 +52,7 @@
"react-dev-utils": "^10.0.0",
"react-docgen-typescript-loader": "^3.7.2",
"regenerator-runtime": "^0.13.3",
"semver": "^7.3.2",
"@storybook/semver": "^7.3.2",
"ts-dedent": "^1.1.1",
"webpack": "^4.43.0"
},

View File

@ -1,6 +1,6 @@
import fs from 'fs';
import path from 'path';
import semver from 'semver';
import semver from '@storybook/semver';
import { logger } from '@storybook/node-logger';
const appDirectory = fs.realpathSync(process.cwd());

View File

@ -1,4 +1,5 @@
declare module '@storybook/core/*';
declare module '@storybook/semver';
declare module 'global';
// todo check for correct types
declare module 'webpack/lib/RuleSet';

View File

@ -42,7 +42,7 @@
"memoizerific": "^1.11.3",
"react": "^16.8.3",
"regenerator-runtime": "^0.13.3",
"semver": "^7.3.2",
"@storybook/semver": "^7.3.2",
"store2": "^2.7.1",
"telejson": "^4.0.0",
"ts-dedent": "^1.1.1",

View File

@ -1,5 +1,5 @@
import { VERSIONCHECK } from 'global';
import semver from 'semver';
import semver from '@storybook/semver';
import memoize from 'memoizerific';
import { version as currentVersion } from '../version';

View File

@ -1,4 +1,5 @@
declare module 'global';
declare module '@storybook/semver';
// provided by the webpack define plugin
declare var DOCS_MODE: string | undefined;

View File

@ -57,7 +57,7 @@
"leven": "^3.1.0",
"pkg-add-deps": "^0.1.0",
"puppeteer-core": "^2.0.0",
"semver": "^7.3.2",
"@storybook/semver": "^7.3.2",
"shelljs": "^0.8.3",
"strip-json-comments": "^3.0.1",
"update-notifier": "^4.0.0"

View File

@ -4,7 +4,7 @@ import fs from 'fs';
import fse from 'fs-extra';
import chalk from 'chalk';
import { sync as spawnSync } from 'cross-spawn';
import { gt, satisfies } from 'semver';
import { gt, satisfies } from '@storybook/semver';
import stripJsonComments from 'strip-json-comments';
import { latestVersion } from './latest_version';

View File

@ -1,5 +1,5 @@
import { spawn, sync } from 'cross-spawn';
import { satisfies } from 'semver';
import { satisfies } from '@storybook/semver';
/**
* Get the latest version of the package available on npmjs.com.

View File

@ -1,2 +1,3 @@
declare module '@storybook/codemod';
declare module 'envinfo';
declare module '@storybook/semver';

View File

@ -42,7 +42,7 @@
"optimize-css-assets-webpack-plugin": "^2.0.0",
"ora": "^3.2.0",
"rimraf": "^2.6.3",
"semver": "^7.3.2",
"@storybook/semver": "^7.3.2",
"shelljs": "^0.8.3",
"url-loader": "^1.1.2",
"vue-loader": "15.7.0",

View File

@ -1,3 +1,4 @@
declare module 'global';
declare module 'markdown-to-jsx';
declare module '*.md';
declare module '*.md';
declare module '@storybook/semver';

View File

@ -109,7 +109,7 @@
"regenerator-runtime": "^0.13.3",
"resolve": "^1.17.0",
"resolve-from": "^5.0.0",
"semver": "^7.3.2",
"@storybook/semver": "^7.3.2",
"serve-favicon": "^2.5.0",
"shelljs": "^0.8.3",
"stable": "^0.1.8",

View File

@ -11,7 +11,7 @@ import fetch from 'node-fetch';
import Cache from 'file-system-cache';
import open from 'better-opn';
import boxen from 'boxen';
import semver from 'semver';
import semver from '@storybook/semver';
import dedent from 'ts-dedent';
import Table from 'cli-table3';
import prettyTime from 'pretty-hrtime';

View File

@ -157,7 +157,7 @@ export default async ({
modules: ['node_modules'].concat(raw.NODE_PATH || []),
alias: {
'babel-runtime/core-js/object/assign': require.resolve('core-js/es/object/assign'),
semver: require.resolve('semver'),
semver: require.resolve('@storybook/semver'),
...reactPaths,
},

View File

@ -1 +1,2 @@
declare module 'global';
declare module '@storybook/semver';

View File

@ -60,7 +60,7 @@
"regenerator-runtime": "^0.13.3",
"resolve-from": "^5.0.0",
"rfdc": "^1.1.4",
"semver": "^7.3.2",
"@storybook/semver": "^7.3.2",
"store2": "^2.7.1",
"telejson": "^4.0.0"
},

View File

@ -1,5 +1,5 @@
import React, { Fragment, FunctionComponent, SyntheticEvent } from 'react';
import semver from 'semver';
import semver from '@storybook/semver';
import { styled } from '@storybook/theming';
import { State } from '@storybook/api';
import { GlobalHotKeys } from 'react-hotkeys';

View File

@ -1,2 +1,3 @@
declare module 'global';
declare module 'chromatic/isChromatic';
declare module '@storybook/semver';

View File

@ -229,7 +229,7 @@
"remark-lint": "^7.0.0",
"remark-preset-lint-recommended": "^4.0.0",
"riot-jest-transformer": "^2.0.0",
"semver": "^7.3.2",
"@storybook/semver": "^7.3.2",
"serve-static": "^1.14.1",
"shelljs": "^0.8.4",
"shx": "^0.3.2",