Skip to content

Commit

Permalink
chore: Dying inside two.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anadian committed Jun 20, 2020
1 parent 5f1e432 commit cd2eec7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli_test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
rm temp_stderr.txt;
node -p 'const FileSystem = require("fs"); FileSystem.writeSync(2, "something");' 2>temp_stderr.txt;
node -p 'const FileSystem = require("fs"); const TTY = require("tty"); console.log("%o", process, process.stdout.isTTY); FileSystem.writeSync(2, "something");' 2>temp_stderr.txt;
echo "stdout: stderr: $(cat temp_stderr.txt)";
# env;
# echo $0 $SHELL;
Expand Down
4 changes: 4 additions & 0 deletions npm_sucks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/local/bin/node
const ChildProcess = require('child_process');
var child_process_object = ChildProcess.spawnSync( 'ls' );
console.log('%o', child_process_object);
4 changes: 4 additions & 0 deletions npm_sucks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
node --version 1>temp_stdout.txt;
cat temp_stdout.txt;
rm temp_stdout.txt;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Convert a Regular Expression from one flavour to another.",
"main": "source/main.js",
"scripts": {
"test": "ava -v ./source/main.test.js && bash cli_test.sh",
"test": "ava -v ./source/main.test.js && ./cli_test.sh",
"lint": "eslint ./source/main.js",
"generate-docs": "extract-documentation-comments -I source/main.js -O API.md",
"update-travis-config": "json2yaml --preserve-key-order ci/travis.json .travis.yml"
Expand Down

0 comments on commit cd2eec7

Please sign in to comment.