-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37c92c2
commit e6230a1
Showing
3 changed files
with
24 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
packages/qwik/src/cli/migrate-v2/tools/visit-not-ignored-files.spec.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { getPackageManager, readPackageJson } from './../utils/utils'; | ||
import { installDeps } from '../utils/install-deps'; | ||
|
||
export async function updateDependencies() { | ||
// TODO: workspaceRoot | ||
const packageJson = await readPackageJson(process.cwd()); | ||
// TODO: should come from elsewhere? | ||
const newVersion = '2.0.0'; | ||
(packageJson.devDependencies ??= {})['@qwik.dev/qwik'] = newVersion; | ||
(packageJson.devDependencies ??= {})['@qwik.dev/city'] = newVersion; | ||
delete packageJson.dependencies?.['@builder.io/qwik']; | ||
delete packageJson.dependencies?.['@builder.io/qwik-city']; | ||
const { install } = installDeps(getPackageManager(), process.cwd()); | ||
const passed = await install; | ||
if (!passed) { | ||
throw new Error('Failed to install dependencies'); | ||
} | ||
} |