pinokiod 2.1.45 → 2.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/index.js +4 -0
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -172,6 +172,8 @@ class Bin {
|
|
|
172
172
|
return file.endsWith(".js") && file !== "index.js" && file !== "cmake.js"
|
|
173
173
|
})
|
|
174
174
|
|
|
175
|
+
console.log({ modfiles })
|
|
176
|
+
|
|
175
177
|
|
|
176
178
|
this.mods = []
|
|
177
179
|
for(let filename of modfiles) {
|
|
@@ -183,6 +185,7 @@ class Bin {
|
|
|
183
185
|
let name = path.basename(filename, ".js")
|
|
184
186
|
this.mods.push({ name, mod })
|
|
185
187
|
}
|
|
188
|
+
console.log(">> this.mods = ", this.mods)
|
|
186
189
|
// inject kernel
|
|
187
190
|
for(let i=0; i<this.mods.length; i++) {
|
|
188
191
|
this.mods[i].mod.kernel = this.kernel
|
|
@@ -197,6 +200,7 @@ class Bin {
|
|
|
197
200
|
}
|
|
198
201
|
this.mod[mod.name] = mod.mod
|
|
199
202
|
}
|
|
203
|
+
console.log(">> this.mod", this.mod)
|
|
200
204
|
|
|
201
205
|
|
|
202
206
|
|