This repository has been archived by the owner on Jan 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kent C. Dodds
committed
Oct 2, 2019
1 parent
a825e9c
commit 67f21c3
Showing
9 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,15 @@ | |
"name": "cross-env", | ||
"version": "0.0.0-semantically-released", | ||
"description": "Run scripts that set and use environment variables across platforms", | ||
"main": "dist/index.js", | ||
"main": "src/index.js", | ||
"bin": { | ||
"cross-env": "dist/bin/cross-env.js", | ||
"cross-env-shell": "dist/bin/cross-env-shell.js" | ||
"cross-env": "src/bin/cross-env.js", | ||
"cross-env-shell": "src/bin/cross-env-shell.js" | ||
}, | ||
"engines": { | ||
"node": ">=8.0" | ||
}, | ||
"scripts": { | ||
"build": "kcd-scripts build", | ||
"lint": "kcd-scripts lint", | ||
"test": "kcd-scripts test", | ||
"validate": "kcd-scripts validate" | ||
|
@@ -22,7 +21,8 @@ | |
} | ||
}, | ||
"files": [ | ||
"dist" | ||
"src", | ||
"!__tests__" | ||
], | ||
"keywords": [ | ||
"cross-environment", | ||
|
@@ -32,7 +32,6 @@ | |
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/runtime": "^7.6.2", | ||
"cross-spawn": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
|
@@ -41,11 +40,10 @@ | |
"eslintConfig": { | ||
"extends": "./node_modules/kcd-scripts/eslint.js" | ||
}, | ||
"eslintIgnore": [ | ||
"node_modules", | ||
"coverage", | ||
"dist" | ||
], | ||
"// babel 1": "this disables all built-in plugins from kcd-scripts for tests", | ||
"// babel 2": "that way we ensure that the tests run without compilation", | ||
"// babel 3": "because this module is published as-is. It is not compiled.", | ||
"babel": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/kentcdodds/cross-env.git" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import isWindows from '../is-windows' | ||
const isWindows = require('../is-windows') | ||
|
||
const { | ||
platform, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export default () => | ||
module.exports = () => | ||
process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67f21c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you did it?
67f21c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really need to. The only feature we needed to compile was esmodules and we don't get a lot of benefit by using them. And by removing them, we can remove
@babel/runtime
as a dependency :)