Skip to content

Commit 1f4e6a9

Browse files
committed
feat(pm): support add package
1 parent 4aeb13e commit 1f4e6a9

64 files changed

Lines changed: 4898 additions & 30 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/vite_error/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ pub enum Error {
133133
#[error("Unrecognized any package manager, please specify the package manager")]
134134
UnrecognizedPackageManager,
135135

136+
#[error("No packages specified. Usage: vite add <packages>...")]
137+
NoPackagesSpecified,
138+
136139
#[error(
137140
"Package manager {name}@{version} in {package_json_path:?} is invalid, expected format: 'package-manager-name@major.minor.patch'"
138141
)]

crates/vite_package_manager/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ reqwest = { workspace = true, features = ["stream", "native-tls-vendored", "json
4141

4242
[target.'cfg(not(target_os = "windows"))'.dependencies]
4343
reqwest = { workspace = true, features = ["stream", "rustls-tls", "json"] }
44+
nix = { workspace = true }
4445

4546
[dev-dependencies]
4647
httpmock = { workspace = true }

0 commit comments

Comments
 (0)