Socket
Socket
Sign inDemoInstall

if-env

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

if-env - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

package.json
{
"name": "if-env",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simplify npm scripts with \"if-env ... && npm run this || npm run that\"",

@@ -12,7 +12,7 @@ "bin": "bin/if-env.js",

"publish": "npm-run-all publish:git publish:npm",
"publish:git": "git push && git push --tags",
"publish:git": "git push origin master --tags",
"publish:npm": "npm publish",
"test": "NODE_ENV=test mocha",
"version": "npm run changelog",
"version:ammend": "git commit --amend -m \"Release v${npm_package_version}\" && npm run release"
"version:amend": "git commit --amend -m \"Release v${npm_package_version}\" && npm run release"
},

@@ -19,0 +19,0 @@ "repository": {

@@ -7,2 +7,6 @@ # if-env

**I recommend switching to [`per-env`](https://github.com/ericclemmons/per-env), which is much simpler and much more powerful!**
- - -
Suppose you want to simplify development and be able to run `npm start`

@@ -27,3 +31,3 @@ in all environments & run the correct scripts.

"scripts": {
"start": "if-env NODE_ENV=production && npm run start:prod || npm start:dev",
"start": "if-env NODE_ENV=production && npm run start:prod || npm run start:dev",
"start:dev": "webpack",

@@ -30,0 +34,0 @@ "start:prod": "start-cluster"

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