Skip to content

Commit 48cfefb

Browse files
committed
refactor: Update bbdev script to use pnpm instead of npx and adjust workflow directory path
1 parent f50caa0 commit 48cfefb

File tree

4 files changed

+5
-62
lines changed

4 files changed

+5
-62
lines changed

bbdev

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import requests
1111

1212
from utils import find_available_port
1313

14-
workflow_dir = os.path.dirname(os.path.abspath(__file__))
14+
workflow_dir = os.path.dirname(os.path.abspath(__file__)) + "/api"
1515

1616

1717
def parse_args(argv: list[str]) -> argparse.Namespace:
@@ -362,7 +362,7 @@ if __name__ == "__main__":
362362
if cmd_info["command"] == "start":
363363
print(f"Starting dev server on port {args.port}")
364364
subprocess.run(
365-
["npx", "motia", "dev", "--port", str(args.port)],
365+
["pnpm", "dev", "--port", str(args.port)],
366366
cwd=workflow_dir,
367367
check=True,
368368
)
@@ -449,7 +449,7 @@ if __name__ == "__main__":
449449
available_port = find_available_port(start_port=5100, end_port=5500)
450450
print(f"Starting server on port {available_port}...")
451451
proc = subprocess.Popen(
452-
["npx", "motia", "dev", "--port", str(available_port)], cwd=workflow_dir
452+
["pnpm", "dev", "--port", str(available_port)], cwd=workflow_dir
453453
)
454454

455455
# Wait for service to start

flake.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
pkgs = import nixpkgs { inherit system overlays; };
1414
in
1515
{
16-
# nix build
17-
packages.bbdev = pkgs.bbdevCli;
18-
packages.default = pkgs.bbdevCli;
19-
2016
devShells.default = pkgs.mkShell {
2117
buildInputs = with pkgs; [
2218
# Node.js runtime (Motia is a Node.js framework)

nix/bbdev-install.nix

Lines changed: 0 additions & 52 deletions
This file was deleted.

nix/overlay.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# bbdev overlay
2-
# Provides bbdev CLI package and Python dependencies
1+
# Motia Python dependencies overlay
2+
# Provides Python packages needed by the project
33
final: prev: {
44
bbdevPythonPkgs = final.python312.withPackages (ps: with ps; [
55
pydantic
66
requests
77
]);
8-
bbdevCli = final.callPackage ./bbdev-install.nix { };
98
}

0 commit comments

Comments
 (0)