Skip to content

Commit

Permalink
Only include packages containing a deps.edn file
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Nov 5, 2024
1 parent 87ec605 commit cb6a2e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/kmono-core/src/k16/kmono/core/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@
"Package config is invalid"
{:package-path (str package-path)}))

package-config))
(when deps-edn
package-config)))
5 changes: 3 additions & 2 deletions packages/kmono-core/src/k16/kmono/core/packages.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

(defn- create-package [project-root workspace-config package-path]
(let [config (core.config/resolve-package-config package-path)]
(when-not (or (:excluded config)
(fs/same-file? project-root package-path))
(when (and config
(not (:excluded config))
(not (fs/same-file? project-root package-path)))
(let [relative-path (str (fs/relativize project-root package-path))
package (merge {:name (symbol (fs/file-name package-path))}
(select-keys workspace-config [:group])
Expand Down
Empty file.

0 comments on commit cb6a2e0

Please sign in to comment.