Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

expo-env-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-env-cli - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

build/cli.js

@@ -32,7 +32,8 @@ "use strict";

const _$drop = _lodash.default.drop(process.argv, 2),
_$drop2 = _toArray(_$drop),
firstArg = _$drop2[0],
restOfArgs = _$drop2.slice(1);
const allArgs = _lodash.default.drop(process.argv, 2);
const _allArgs = _toArray(allArgs),
firstArg = _allArgs[0],
restOfArgs = _allArgs.slice(1);
if (firstArg === 'publish') {

@@ -49,3 +50,3 @@ (0, _publish.publish)(restOfArgs);

} else {
(0, _executeExpo.executeExpo)([firstArg, ...restOfArgs]);
(0, _executeExpo.executeExpo)(allArgs);
}

@@ -52,0 +53,0 @@ }

{
"name": "expo-env-cli",
"version": "1.0.0",
"version": "1.0.1",
"description": "Environment aware expo-cli wrapper",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,2 +14,17 @@ # expo-env

## Forces the use of `/node_modules'` expo
expo-env fails to run if the local project doesn't have expo installed locally.
Listing the correct expo-cli dependency is important for the project stability.
## Expands expo start
expo-env's start takes additional argument `env`, for example:
```bash
expo-env build:android production --ios
```
The command does the following actions:
- logs into expo using credentials in `expo-env/credentials.json`
- copies expo-env/production.env to .env (if it exists)
- copies expo-env/production.env.json to env.json (if it exists)
- executes expo start --ios
## Expands expo build:android

@@ -16,0 +31,0 @@ expo-env's build:android takes additional argument `env`, for example:

@@ -13,3 +13,4 @@ import _ from 'lodash';

localLogin();
const [firstArg, ...restOfArgs] = _.drop(process.argv, 2);
const allArgs = _.drop(process.argv, 2);
const [firstArg, ...restOfArgs] = allArgs;

@@ -27,3 +28,3 @@ if (firstArg === 'publish') {

} else {
executeExpo([firstArg, ...restOfArgs]);
executeExpo(allArgs);
}

@@ -30,0 +31,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc