1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

remove --no-lint from next build

Apparently, it causes errors. Which is stupid.
This commit is contained in:
thatmattlove 2024-04-02 16:41:21 -04:00
parent 9d1c6a5e4a
commit be09dbc476

View file

@ -71,9 +71,6 @@ async def node_initial(timeout: int = 180, dev_mode: bool = False) -> str:
if env_timeout is not None and env_timeout > timeout: if env_timeout is not None and env_timeout > timeout:
timeout = env_timeout timeout = env_timeout
all_messages = ()
try:
proc = await asyncio.create_subprocess_shell( proc = await asyncio.create_subprocess_shell(
cmd="pnpm install", cmd="pnpm install",
stdout=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE,
@ -89,12 +86,8 @@ async def node_initial(timeout: int = 180, dev_mode: bool = False) -> str:
raise RuntimeError(f"\nMessages:\n{messages}\nErrors:\n{errors}") raise RuntimeError(f"\nMessages:\n{messages}\nErrors:\n{errors}")
await proc.wait() await proc.wait()
all_messages += (messages,)
except Exception as err: return "\n".join(messages)
raise RuntimeError(str(err)) from err
return "\n".join(all_messages)
async def build_ui(app_path: Path): async def build_ui(app_path: Path):
@ -110,7 +103,7 @@ async def build_ui(app_path: Path):
build_dir = app_path / "static" / "ui" build_dir = app_path / "static" / "ui"
out_dir = ui_dir / "out" out_dir = ui_dir / "out"
build_command = "node_modules/.bin/next build --no-lint" build_command = "node_modules/.bin/next build"
all_messages = [] all_messages = []
try: try: