From 2c0ba9bb267cdb2313242a933023713adb5a6a47 Mon Sep 17 00:00:00 2001 From: Artem Egorov Date: Wed, 22 Nov 2017 22:59:40 +0300 Subject: [PATCH] Fix bug with .envFile (#605) --- CHANGELOG.md | 3 +++ npm-shrinkwrap.json | 2 +- package.json | 49 +++++++++++++++++++++++++++++++++++---------- 3 files changed, 42 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8ad08cbf..5ef72282f 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.5.7 +* Bug fixes + ## 0.5.6 * Bug fixes diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 604f6ad94..03fb23407 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "vscode-react-native", - "version": "0.5.6", + "version": "0.5.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8f3f37d9f..672e30e28 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vscode-react-native", "displayName": "React Native Tools", - "version": "0.5.6", + "version": "0.5.7", "private": true, "publisher": "vsmobile", "icon": "images/icon.png", @@ -303,7 +303,8 @@ }, "envFile": { "type": "string", - "description": "Absolute path to a file containing environment variable definitions." + "description": "Absolute path to a file containing environment variable definitions.", + "default": "${workspaceFolder}/.env" }, "variant": { "type": "string", @@ -346,6 +347,34 @@ "default": [], "scope": "resource" }, + "react-native.ios.env.simulator": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Environment variables passed to the program.", + "default": {}, + "scope": "resource" + }, + "react-native.ios.env.device": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Environment variables passed to the program.", + "default": {}, + "scope": "resource" + }, + "react-native.ios.envFile.simulator": { + "type": "string", + "description": "Absolute path to a file containing environment variable definitions.", + "scope": "resource" + }, + "react-native.ios.envFile.device": { + "type": "string", + "description": "Absolute path to a file containing environment variable definitions.", + "scope": "resource" + }, "react-native.android.runArguments.simulator": { "description": "Run arguments to be passed to 'react-native run-android' command", "type": "array", @@ -367,13 +396,7 @@ "default": {}, "scope": "resource" }, - "react-native.android.envFile.device": { - "type": "string", - "description": "Absolute path to a file containing environment variable definitions.", - "default": "${workspaceFolder}/.env", - "scope": "resource" - }, - "react-native.ios.env.simulator": { + "react-native.android.env.device": { "type": "object", "additionalProperties": { "type": "string" @@ -382,10 +405,14 @@ "default": {}, "scope": "resource" }, - "react-native.ios.envFile.device": { + "react-native.android.envFile.simulator": { + "type": "string", + "description": "Absolute path to a file containing environment variable definitions.", + "scope": "resource" + }, + "react-native.android.envFile.device": { "type": "string", "description": "Absolute path to a file containing environment variable definitions.", - "default": "${workspaceFolder}/.env", "scope": "resource" }, "react-native.packager.port": {