mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
remove --no-lint
from next build
Apparently, it causes errors. Which is stupid.
This commit is contained in:
@@ -71,30 +71,23 @@ 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 = ()
|
proc = await asyncio.create_subprocess_shell(
|
||||||
|
cmd="pnpm install",
|
||||||
|
stdout=asyncio.subprocess.PIPE,
|
||||||
|
stderr=asyncio.subprocess.PIPE,
|
||||||
|
cwd=ui_path,
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=timeout)
|
||||||
proc = await asyncio.create_subprocess_shell(
|
messages = stdout.decode("utf-8").strip()
|
||||||
cmd="pnpm install",
|
errors = stderr.decode("utf-8").strip()
|
||||||
stdout=asyncio.subprocess.PIPE,
|
|
||||||
stderr=asyncio.subprocess.PIPE,
|
|
||||||
cwd=ui_path,
|
|
||||||
)
|
|
||||||
|
|
||||||
stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=timeout)
|
if proc.returncode != 0:
|
||||||
messages = stdout.decode("utf-8").strip()
|
raise RuntimeError(f"\nMessages:\n{messages}\nErrors:\n{errors}")
|
||||||
errors = stderr.decode("utf-8").strip()
|
|
||||||
|
|
||||||
if proc.returncode != 0:
|
await proc.wait()
|
||||||
raise RuntimeError(f"\nMessages:\n{messages}\nErrors:\n{errors}")
|
|
||||||
|
|
||||||
await proc.wait()
|
return "\n".join(messages)
|
||||||
all_messages += (messages,)
|
|
||||||
|
|
||||||
except Exception as err:
|
|
||||||
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:
|
||||||
|
Reference in New Issue
Block a user