Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit 6dbde94

Browse files
committed
feat: split crate into a library and a binary
1 parent ac5b866 commit 6dbde94

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ edition = "2021"
77
name = "monorepo"
88
path = "src/main.rs"
99

10+
[lib]
11+
name = "typescript_tools"
12+
path = "src/lib.rs"
13+
1014
[dependencies]
1115
anyhow = "1.0.57"
1216
askama = "0.11.1"

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#![forbid(unsafe_code)]
22

3-
mod configuration_file;
43
mod io;
5-
mod monorepo_manifest;
6-
mod package_manifest;
74
mod typescript_config;
85

6+
pub mod configuration_file;
97
pub mod link;
108
pub mod lint;
119
pub mod make_depend;
10+
pub mod monorepo_manifest;
1211
pub mod opts;
12+
pub mod package_manifest;
1313
pub mod pin;
1414
pub mod query;

src/monorepo_manifest.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ use std::collections::HashMap;
22
use std::path::{Path, PathBuf};
33

44
use anyhow::{Context, Result};
5-
65
use globwalk::{FileType, GlobWalkerBuilder};
7-
86
use indoc::formatdoc;
9-
use serde::Deserialize;
10-
117
use pariter::IteratorExt;
8+
use serde::Deserialize;
129

1310
use crate::configuration_file::ConfigurationFile;
1411
use crate::io::read_json_from_file;

0 commit comments

Comments
 (0)