Skip to content

Commit

Permalink
fix module exports (#147)
Browse files Browse the repository at this point in the history
follow-up to
- #134

## description
- `toolkit.nu` still contained `./src/`
- there was a bad `./src/nu-git-manager/mod.nu` introduced by
#134
  • Loading branch information
amtoine authored Dec 16, 2023
1 parent a402d2c commit 8dd94f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions pkgs/nu-git-manager-sugar/nu-git-manager-sugar/mod.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export module extra.nu
export module git
export module github.nu
3 changes: 0 additions & 3 deletions src/nu-git-manager-sugar/mod.nu

This file was deleted.

6 changes: 4 additions & 2 deletions toolkit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ export def "run" [
}

let sugar_imports = if $sugar != null {
$sugar | each { $"use ./src/nu-git-manager-sugar ($in) *" }
$sugar | each { $"use ./pkgs/nu-git-manager-sugar/nu-git-manager-sugar ($in) *" }
} else {
[]
}
let imports = $sugar_imports | prepend "use ./src/nu-git-manager *" | str join "\n"
let imports = $sugar_imports
| prepend "use ./pkgs/nu-git-manager/nu-git-manager *"
| str join "\n"

let nu_args = [
--env-config $env_file
Expand Down

0 comments on commit 8dd94f3

Please sign in to comment.