mirror of
https://github.com/janet-lang/janet
synced 2025-08-30 17:38:04 +00:00
Add aliases for bundle/module - issue #1486
info.jdn -> bundle/info.jdn bundle.janet -> bundle/init.janet
This commit is contained in:
1
examples/sample-bundle-aliases/aliases-mod.janet
Normal file
1
examples/sample-bundle-aliases/aliases-mod.janet
Normal file
@@ -0,0 +1 @@
|
||||
(defn fun [x] (range x))
|
3
examples/sample-bundle-aliases/bundle.janet
Normal file
3
examples/sample-bundle-aliases/bundle.janet
Normal file
@@ -0,0 +1,3 @@
|
||||
(defn install
|
||||
[manifest &]
|
||||
(bundle/add-file manifest "aliases-mod.janet"))
|
4
examples/sample-bundle-aliases/info.jdn
Normal file
4
examples/sample-bundle-aliases/info.jdn
Normal file
@@ -0,0 +1,4 @@
|
||||
@{
|
||||
:name "sample-bundle-aliases"
|
||||
:dependencies ["sample-dep1" "sample-dep2"]
|
||||
}
|
Reference in New Issue
Block a user