Skip to content

Commit

Permalink
fix(check-project): avoid unnecessary files (#26)
Browse files Browse the repository at this point in the history
* fix(check-project): install only deps into temporary virtual environment

* fix(check-project): ignore copying node_modules if existing in project folder

* bump version to 1.1.6
  • Loading branch information
DavidVujic authored Jan 6, 2023
1 parent af547fd commit bfa4af2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poetry_multiproject_plugin/components/deps/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def ensure_reusable_venv():

def run_install_command(is_verbose):
quiet = [] if is_verbose else ["--quiet"]
subprocess.run(["poetry", "install", "--only", "main"] + quiet)
subprocess.run(["poetry", "install", "--only", "main", "--no-root"] + quiet)


def navigate_to(path: Path):
Expand Down
2 changes: 1 addition & 1 deletion poetry_multiproject_plugin/components/project/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def copy_project(project_file: Path, destination: Path) -> Path:
res = shutil.copytree(
source,
destination,
ignore=shutil.ignore_patterns("*.pyc", "__pycache__", ".venv", ".mypy_cache"),
ignore=shutil.ignore_patterns("*.pyc", "__pycache__", ".venv", ".mypy_cache", "node_modules"),
dirs_exist_ok=True,
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-multiproject-plugin"
version = "1.1.5"
version = "1.1.6"
description = "A Poetry plugin that makes it possible to use relative package includes."
authors = ["David Vujic"]
homepage = "https://github.com/davidvujic/poetry-multiproject-plugin"
Expand Down

0 comments on commit bfa4af2

Please sign in to comment.