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

Commit 396cd3e

Browse files
committed
fix: rename binary to monorepo
This fits the new sub-command structure better, for example: - `monorepo link` - `monorepo pin`
1 parent 40c8862 commit 396cd3e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Prepare GNU/Linux artifacts
2929
run: |
3030
mkdir -p dist builds/typescript-tools-x86_64-unknown-linux-gnu
31-
cp target/x86_64-unknown-linux-gnu/release/rust_typescript_tools builds/typescript-tools-x86_64-unknown-linux-gnu/monorepo
31+
cp target/x86_64-unknown-linux-gnu/release/monorepo builds/typescript-tools-x86_64-unknown-linux-gnu/
3232
tar -C builds -czvf dist/typescript-tools-x86_64-unknown-linux-gnu.tar.gz typescript-tools-x86_64-unknown-linux-gnu
3333
3434
- name: Upload GNU/Linux artifact
@@ -59,7 +59,7 @@ jobs:
5959
- name: Prepare Mac OS artifacts
6060
run: |
6161
mkdir -p dist builds/typescript-tools-x86_64-apple-darwin
62-
cp target/x86_64-apple-darwin/release/rust_typescript_tools builds/typescript-tools-x86_64-apple-darwin/monorepo
62+
cp target/x86_64-apple-darwin/release/monorepo builds/typescript-tools-x86_64-apple-darwin/
6363
tar -C builds -czvf dist/typescript-tools-x86_64-apple-darwin.tar.gz typescript-tools-x86_64-apple-darwin
6464
6565
- name: Upload Mac OS artifact

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name = "rust_typescript_tools"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[[bin]]
7+
name = "monorepo"
8+
path = "src/main.rs"
9+
610
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
711

812
[dependencies]

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ RUN cargo build --release --target x86_64-unknown-linux-musl && \
2020
COPY ./src ./src
2121

2222
# build for release
23-
RUN rm -f ./target/x86_64-unknown-linux-musl/release/deps/rust_typescript_tools* && \
23+
RUN rm -f ./target/x86_64-unknown-linux-musl/release/deps/monorepo* && \
2424
cargo build --release --target x86_64-unknown-linux-musl
2525

2626
FROM scratch
27-
COPY --from=build-image /rust-implementation/target/x86_64-unknown-linux-musl/release/rust_typescript_tools /usr/bin/typescript-tools
27+
COPY --from=build-image /rust-implementation/target/x86_64-unknown-linux-musl/release/monorepo /usr/bin/monorepo
2828
WORKDIR /workdir
29-
ENTRYPOINT ["/usr/bin/typescript-tools"]
29+
ENTRYPOINT ["/usr/bin/monorepo"]
3030
CMD [""]

0 commit comments

Comments
 (0)