export const nxVersion = require('../../package.json').version;

// Always pull the latest version until we merge rspack plugin into the repo.
export const nxRspackVersion = '*';

export const reactVersion = '18.2.0';
export const reactDomVersion = '18.2.0';
export const reactIsVersion = '18.2.0';
export const swcLoaderVersion = '0.1.15';
export const babelLoaderVersion = '^9.1.2';
export const typesReactVersion = '18.2.14';
export const typesReactDomVersion = '18.2.6';
export const typesReactIsVersion = '18.2.1';

export const typesNodeVersion = '18.14.2';

export const babelPresetReactVersion = '^7.14.5';
export const babelCoreVersion = '^7.14.5';

export const styledComponentsVersion = '5.3.6';
export const typesStyledComponentsVersion = '5.1.26';

export const emotionStyledVersion = '11.11.0';
export const emotionReactVersion = '11.11.1';
export const emotionBabelPlugin = '11.11.0';

// WARNING: This needs to be in sync with Next.js' dependency or else there might be issues.
export const styledJsxVersion = '5.1.2';

export const reactRouterDomVersion = '6.11.2';

export const testingLibraryReactVersion = '14.0.0';

export const reduxjsToolkitVersion = '1.9.3';
export const reactReduxVersion = '8.0.5';
export const reactTestRendererVersion = '18.2.0';

export const eslintPluginImportVersion = '2.27.5';
export const eslintPluginJsxA11yVersion = '6.7.1';
export const eslintPluginReactVersion = '7.32.2';
export const eslintPluginReactHooksVersion = '4.6.0';

export const babelPluginStyledComponentsVersion = '1.10.7';

export const tsLibVersion = '^2.3.0';

export const postcssVersion = '8.4.21';
export const tailwindcssVersion = '3.2.7';
export const autoprefixerVersion = '10.4.13';

// SSR and Module Federation
export const expressVersion = '~4.18.2';
export const typesExpressVersion = '4.17.17';
export const isbotVersion = '^3.6.5';
export const corsVersion = '~2.8.5';
export const typesCorsVersion = '~2.8.12';
export const moduleFederationNodeVersion = '~0.9.9';

// style preprocessors
export const lessVersion = '3.12.2';
export const sassVersion = '^1.55.0';
export const stylusVersion = '^0.59.0';

// rollup plugins (if needed)
export const rollupPluginUrlVersion = '^7.0.0';
export const svgrRollupVersion = '^8.0.1';

export const swcPluginStyledJsxVersion = '^1.5.67';
export const swcPluginEmotionVersion = '^2.5.67';
export const swcPluginStyledComponentsVersion = '^1.5.67';
