Skip to content

Commit 836d69f

Browse files
committed
Remove git command from package function
1 parent e345d13 commit 836d69f

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ target/
3131
/priv/native/
3232
baml_client/
3333
baml_client.tmp
34-
/lib/baml_elixir/test.ex
3534
/priv

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Now create a BAML client module:
6464

6565
```elixir
6666
defmodule MyApp.BamlClient do
67-
use BamlElixir.Client, path: "priv/baml_src"
67+
use BamlElixir.Client, path: Application.app_dir(:my_app, "priv/baml_src")
6868
end
6969
```
7070

@@ -153,7 +153,7 @@ Add baml_elixir to your mix.exs:
153153
```elixir
154154
def deps do
155155
[
156-
{:baml_elixir, "~> 1.0.0-pre.10"}
156+
{:baml_elixir, "~> 1.0.0-pre.11"}
157157
]
158158
end
159159
```

mix.exs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule BamlElixir.MixProject do
22
use Mix.Project
33

4-
@version "1.0.0-pre.10"
4+
@version "1.0.0-pre.11"
55

66
def project do
77
[
@@ -32,21 +32,13 @@ defmodule BamlElixir.MixProject do
3232
end
3333

3434
defp package do
35-
{output, 0} = System.cmd("git", ["ls-files", "lib"])
36-
37-
lib_files =
38-
output
39-
|> String.trim()
40-
|> String.split("\n")
41-
4235
[
43-
files:
44-
lib_files ++
45-
[
46-
"checksum-*.exs",
47-
"mix.exs",
48-
"LICENSE"
49-
],
36+
files: [
37+
"lib",
38+
"checksum-*.exs",
39+
"mix.exs",
40+
"LICENSE"
41+
],
5042
licenses: ["Apache-2.0"],
5143
links: %{"GitHub" => "https://github.com/emilsoman/baml_elixir"},
5244
maintainers: ["Emil Soman"]

0 commit comments

Comments
 (0)