mirror of
https://github.com/janet-lang/janet
synced 2025-09-06 12:58:04 +00:00
Add bundle/prune
and support for :auto-remove.
This allows dependencies to be marked such that they are not primary dependencies installed by the users - rather, they are dependencies of dependencies. This distinction is important when a user installs a package that itself has dependencies. This also interacts with new features to prevent a user from breaking their installation by installing needed packages or installing/uninstalling bundles out of order.
This commit is contained in:
3
examples/sample-bundle/bundle/info.jdn
Normal file
3
examples/sample-bundle/bundle/info.jdn
Normal file
@@ -0,0 +1,3 @@
|
||||
@{
|
||||
:dependencies ["spork"]
|
||||
}
|
3
examples/sample-bundle/bundle/init.janet
Normal file
3
examples/sample-bundle/bundle/init.janet
Normal file
@@ -0,0 +1,3 @@
|
||||
(defn install
|
||||
[manifest &]
|
||||
(bundle/add-file manifest "mymod.janet"))
|
3
examples/sample-bundle/mymod.janet
Normal file
3
examples/sample-bundle/mymod.janet
Normal file
@@ -0,0 +1,3 @@
|
||||
(defn myfn
|
||||
[x]
|
||||
(+ x x))
|
Reference in New Issue
Block a user