Skip to content

Commit

Permalink
fix: prime default after deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon committed Jan 6, 2025
1 parent 544434b commit 6ba9c5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rockcraft/extensions/expressjs.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _gen_install_app_part(self) -> dict:
"npm-include-node": False,
"source": "app/",
"organize": self._app_organize,
"override-prime": f"rm -rf lib/node_modules/{self._app_name}",
"override-prime": f"rm -rf lib/node_modules/{self._app_name}\ncraftctl default",
"build-packages": ["nodejs", "npm"],
}

Expand Down
3 changes: 2 additions & 1 deletion tests/unit/extensions/test_expressjs.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def test_expressjs_extension_default(
"lib/node_modules/test-expressjs-project/package.json": "app/package.json",
},
"build-packages": ["nodejs", "npm"],
"override-prime": f"rm -rf lib/node_modules/{expressjs_project_name}",
"override-prime": f"rm -rf lib/node_modules/{expressjs_project_name}\ncraftctl "
"default",
},
"expressjs-framework/runtime-debs": {
"plugin": "nil",
Expand Down

0 comments on commit 6ba9c5a

Please sign in to comment.