From fcf680e9bdeb7e3991bd5f7fcd61aeb19be4f012 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 12 Dec 2016 10:42:02 -0800 Subject: [PATCH] automatically detect/add missing package references in project --- pxtarget.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pxtarget.json b/pxtarget.json index 1ad4ad50..355eb417 100644 --- a/pxtarget.json +++ b/pxtarget.json @@ -43,11 +43,19 @@ "microbit-serial": "" } }, + { + "type": "missingPackage", + "map": { + "radio\\s*\\.": "radio", + "bluetooth\\s*\\.": "bluetooth", + "devices\\s*\\.": "devices" + } + }, { "type": "api", "map": { - "bluetooth\\.uartRead\\((.*?)\\)": "bluetooth.uartReadUntil($1)", - "bluetooth\\.uartWrite\\((.*?)\\)": "bluetooth.uartWriteUntil($1)" + "bluetooth\\s*\\.uartRead\\s*\\((.*?)\\)": "bluetooth.uartReadUntil($1)", + "bluetooth\\s*\\.uartWrite\\s*\\((.*?)\\)": "bluetooth.uartWriteUntil($1)" } } ]