Skip to content

Commit fda0e64

Browse files
committed
FIX: Make-boot.r should wrap files marked as a module type into import module code
1 parent 204500f commit fda0e64

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/mezz/codec-json.r

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Red [
1+
Rebol [
22
Title: "JSON codec"
3+
Name: 'JSON
34
Purpose: "Convert Rebol value into JSON format and back."
4-
File: %json.red
5+
File: %codec-json.r
56
Version: 0.1.0
67
Author: [
78
"Gregg Irwin" {

src/tools/make-boot.r

+11-1
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,17 @@ if product = 'view [
960960
foreach section [boot-base boot-sys boot-mezz] [
961961
set section make block! 200
962962
foreach file first mezz-files [
963-
append get section load join %../mezz/ file
963+
file: load/header join %../mezz/ file
964+
append get section either 'module = select file/1 'type [
965+
compose/deep/only [
966+
import module [
967+
Title: (select file/1 'title)
968+
Name: (select file/1 'name)
969+
Version: (select file/1 'version)
970+
Exports: (select file/1 'exports)
971+
] ( next file )
972+
]
973+
][ next file ]
964974
]
965975
remove-tests get section
966976
mezz-files: next mezz-files

0 commit comments

Comments
 (0)