Skip to content

Commit

Permalink
fix: set nodelix as a production dependency
Browse files Browse the repository at this point in the history
consumers were missing nodelix tasks because it was only listed for dev/test
  • Loading branch information
sheerlox committed Dec 1, 2023
1 parent 2a5655a commit a49d5c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/mix/tasks/semantic_release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ defmodule Mix.Tasks.SemanticRelease do
def run(args) do
Logger.debug("Running Semantic Release ...")

Mix.Task.run(
"nodelix",
Mix.Tasks.Nodelix.run(
[
SemanticRelease.bin_path()
] ++ args
Expand Down
5 changes: 2 additions & 3 deletions lib/mix/tasks/semantic_release.install.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ defmodule Mix.Tasks.SemanticRelease.Install do
def run(_) do
Logger.debug("Installing dependencies ...")

Mix.Task.run(
"nodelix.npm",
Mix.Tasks.Nodelix.Npm.run(
[
"install",
"--silent",
Expand All @@ -38,7 +37,7 @@ defmodule Mix.Tasks.SemanticRelease.Install do

Logger.debug("Auditing signatures ...")

Mix.Task.run("nodelix.npm", [
Mix.Tasks.Nodelix.Npm.run([
"audit",
"signatures",
"--silent",
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule SemanticRelease.MixProject do

defp deps do
[
{:nodelix, "1.0.0-alpha.8", only: [:dev, :test], runtime: false},
{:nodelix, "1.0.0-alpha.8", runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
Expand Down

0 comments on commit a49d5c8

Please sign in to comment.