Skip to content

Commit

Permalink
feat(vite): pin Vite version range to patch releases only to avoid co…
Browse files Browse the repository at this point in the history
…nflicts with Angular (#18010)
  • Loading branch information
jaysoo authored Jul 7, 2023
1 parent 5af5e6c commit 3fdc66d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion packages/cypress/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export const cypressViteDevServerVersion = '^2.2.1';
export const cypressVersion = '^12.16.0';
export const cypressWebpackVersion = '^2.0.0';
export const webpackHttpPluginVersion = '^5.5.0';
export const viteVersion = '^4.3.4';
export const viteVersion = '~4.3.9';
export const htmlWebpackPluginVersion = '^5.5.0';
2 changes: 1 addition & 1 deletion packages/storybook/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const tsNodeVersion = '10.9.1';

export const storybookVersion = '^7.0.24';
export const reactVersion = '^18.2.0';
export const viteVersion = '^4.3.4';
export const viteVersion = '~4.3.9';
34 changes: 17 additions & 17 deletions packages/vite/src/generators/init/__snapshots__/init.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ exports[`@nx/vite:init dependencies for package.json should add vite packages an
"devDependencies": {
"@nx/js": "0.0.1",
"@nx/vite": "0.0.1",
"@vitejs/plugin-react": "^4.0.0",
"@vitest/ui": "^0.32.0",
"@vitejs/plugin-react": "~4.0.0",
"@vitest/ui": "~0.32.0",
"existing": "1.0.0",
"prettier": "^2.6.2",
"typescript": "~5.1.3",
"vite": "^4.3.9",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.32.0",
"vite": "~4.3.9",
"vite-tsconfig-paths": "~4.2.0",
"vitest": "~0.32.0",
},
"name": "test-name",
}
Expand All @@ -28,12 +28,12 @@ exports[`@nx/vite:init dependencies for package.json should support --testEnviro
"@edge-runtime/vm": "~3.0.2",
"@nx/js": "0.0.1",
"@nx/vite": "0.0.1",
"@vitest/ui": "^0.32.0",
"@vitest/ui": "~0.32.0",
"prettier": "^2.6.2",
"typescript": "~5.1.3",
"vite": "^4.3.9",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.32.0",
"vite": "~4.3.9",
"vite-tsconfig-paths": "~4.2.0",
"vitest": "~0.32.0",
},
"name": "test-name",
}
Expand All @@ -45,13 +45,13 @@ exports[`@nx/vite:init dependencies for package.json should support --testEnviro
"devDependencies": {
"@nx/js": "0.0.1",
"@nx/vite": "0.0.1",
"@vitest/ui": "^0.32.0",
"@vitest/ui": "~0.32.0",
"happy-dom": "~9.20.3",
"prettier": "^2.6.2",
"typescript": "~5.1.3",
"vite": "^4.3.9",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.32.0",
"vite": "~4.3.9",
"vite-tsconfig-paths": "~4.2.0",
"vitest": "~0.32.0",
},
"name": "test-name",
}
Expand All @@ -63,13 +63,13 @@ exports[`@nx/vite:init dependencies for package.json should support --testEnviro
"devDependencies": {
"@nx/js": "0.0.1",
"@nx/vite": "0.0.1",
"@vitest/ui": "^0.32.0",
"@vitest/ui": "~0.32.0",
"jsdom": "~22.1.0",
"prettier": "^2.6.2",
"typescript": "~5.1.3",
"vite": "^4.3.9",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.32.0",
"vite": "~4.3.9",
"vite-tsconfig-paths": "~4.2.0",
"vitest": "~0.32.0",
},
"name": "test-name",
}
Expand Down
16 changes: 8 additions & 8 deletions packages/vite/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export const nxVersion = require('../../package.json').version;
export const viteVersion = '^4.3.9';
export const vitestVersion = '^0.32.0';
export const vitestUiVersion = '^0.32.0';
export const vitePluginReactVersion = '^4.0.0';
export const vitePluginReactSwcVersion = '^3.3.2';
export const viteTsConfigPathsVersion = '^4.2.0';
export const viteVersion = '~4.3.9';
export const vitestVersion = '~0.32.0';
export const vitestUiVersion = '~0.32.0';
export const vitePluginReactVersion = '~4.0.0';
export const vitePluginReactSwcVersion = '~3.3.2';
export const viteTsConfigPathsVersion = '~4.2.0';
export const jsdomVersion = '~22.1.0';
export const vitePluginDtsVersion = '~2.3.0';
export const happyDomVersion = '~9.20.3';
export const edgeRuntimeVmVersion = '~3.0.2';

// Coverage providers
export const vitestCoverageC8Version = '^0.32.0';
export const vitestCoverageIstanbulVersion = '^0.32.0';
export const vitestCoverageC8Version = '~0.32.0';
export const vitestCoverageIstanbulVersion = '~0.32.0';

1 comment on commit 3fdc66d

@vercel
Copy link

@vercel vercel bot commented on 3fdc66d Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.