-
Notifications
You must be signed in to change notification settings - Fork 1
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
8ae6c88
commit b6dd307
Showing
14 changed files
with
2,149 additions
and
181 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,11 @@ | ||
[package] | ||
name = "sync-npm-dependencies-with-nix" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
anyhow = "1.0.81" | ||
parse-flake-lock = { git = "https://github.com/DeterminateSystems/flake-checker", branch = "main" } | ||
walkdir = "2.5.0" |
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,26 @@ | ||
use anyhow::Result; | ||
use std::path::Path; | ||
|
||
use parse_flake_lock::{FlakeLock, FlakeLockParseError}; | ||
|
||
use walkdir::WalkDir; | ||
|
||
fn main() -> Result<()> { | ||
for entry in WalkDir::new(".").into_iter().filter_map(|e| e.ok()) { | ||
let f_name = entry.file_name().to_string_lossy(); | ||
|
||
if f_name == "package.json" { | ||
println!("{}", f_name); | ||
} | ||
} | ||
|
||
Ok(()) | ||
} | ||
|
||
// fn main() -> Result<(), FlakeLockParseError> { | ||
// let flake_lock = FlakeLock::new(Path::new("flake.lock"))?; | ||
|
||
// println!("asdf {flake_lock:?}"); | ||
|
||
// Ok(()) | ||
// } |
Oops, something went wrong.