fix: workover of the monaco update
This commit is contained in:
@@ -6,8 +6,9 @@ defmodule Mix.Tasks.Monaco.Version do
|
||||
|
||||
mix monaco.version
|
||||
|
||||
Reads the version from package-lock.json. The Monaco bundle lives at
|
||||
`priv/static/assets/monaco.js` and is built via `mix esbuild monaco`.
|
||||
Reads the version from package-lock.json. The Monaco main bundle lives at
|
||||
`priv/static/assets/monaco.js`; worker bundles live under
|
||||
`priv/static/assets/monaco/`.
|
||||
"""
|
||||
|
||||
use Mix.Task
|
||||
@@ -30,12 +31,12 @@ defmodule Mix.Tasks.Monaco.Version do
|
||||
v when is_binary(v) -> Mix.shell().info("monaco-editor: #{v}")
|
||||
nil ->
|
||||
Mix.shell().error("Could not find monaco-editor in package-lock.json")
|
||||
System.at_exit(fn _ -> System.halt(1) end)
|
||||
Mix.raise("could not find monaco-editor in package-lock.json")
|
||||
end
|
||||
|
||||
{:error, reason} ->
|
||||
Mix.shell().error("package-lock.json not found: #{reason}")
|
||||
System.at_exit(fn _ -> System.halt(1) end)
|
||||
Mix.raise("package-lock.json not found: #{reason}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user