@mikrojs/firmware 0.14.0-pr-229.gbbf898a → 0.14.0
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/discover.js +5 -0
- package/package.json +3 -3
- package/prebuilds/esp32/bootloader/bootloader.bin +0 -0
- package/prebuilds/esp32/mikrojs.bin +0 -0
- package/prebuilds/esp32c3/bootloader/bootloader.bin +0 -0
- package/prebuilds/esp32c3/mikrojs.bin +0 -0
- package/prebuilds/esp32c5/bootloader/bootloader.bin +0 -0
- package/prebuilds/esp32c5/mikrojs.bin +0 -0
- package/prebuilds/esp32c6/bootloader/bootloader.bin +0 -0
- package/prebuilds/esp32c6/mikrojs.bin +0 -0
- package/prebuilds/esp32s3/bootloader/bootloader.bin +0 -0
- package/prebuilds/esp32s3/mikrojs.bin +0 -0
- package/project.cmake +4 -1
package/discover.js
CHANGED
|
@@ -29,6 +29,11 @@ function findPackageDir(name, startDir) {
|
|
|
29
29
|
* @returns {{components: string, sdkconfigs: string}} Semicolon-separated paths
|
|
30
30
|
*/
|
|
31
31
|
export function discover(projectDir) {
|
|
32
|
+
/* Firmware projects without a package.json (e.g. bare test apps) have no
|
|
33
|
+
* dependencies to scan. */
|
|
34
|
+
if (!existsSync(join(projectDir, 'package.json'))) {
|
|
35
|
+
return {components: '', sdkconfigs: ''}
|
|
36
|
+
}
|
|
32
37
|
const require = createRequire(join(projectDir, 'package.json'))
|
|
33
38
|
const pkg = JSON.parse(readFileSync(join(projectDir, 'package.json'), 'utf8'))
|
|
34
39
|
const dependencies = pkg.dependencies ?? {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikrojs/firmware",
|
|
3
|
-
"version": "0.14.0
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Mikro.js ESP32 firmware: ESP-IDF component, build tools, and project template",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"esp-idf",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"esbuild": "^0.28.0",
|
|
50
|
-
"@mikrojs/native": "0.14.0
|
|
51
|
-
"@mikrojs/quickjs": "0.14.0
|
|
50
|
+
"@mikrojs/native": "0.14.0",
|
|
51
|
+
"@mikrojs/quickjs": "0.14.0"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=24.0.0"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/project.cmake
CHANGED
|
@@ -48,8 +48,11 @@ execute_process(
|
|
|
48
48
|
)
|
|
49
49
|
|
|
50
50
|
# ── Board and driver package discovery ───────────────────────────────
|
|
51
|
+
# Scan the consuming project's package.json (CMAKE_SOURCE_DIR), not this
|
|
52
|
+
# file's directory — while include()d, CMAKE_CURRENT_LIST_DIR is the
|
|
53
|
+
# @mikrojs/firmware package inside node_modules.
|
|
51
54
|
execute_process(
|
|
52
|
-
COMMAND node ${_MIK_RESOLVE} discover ${
|
|
55
|
+
COMMAND node ${_MIK_RESOLVE} discover ${CMAKE_SOURCE_DIR}
|
|
53
56
|
OUTPUT_VARIABLE _BOARD_JSON
|
|
54
57
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
55
58
|
)
|