Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
prefix package name, add cli shebang and fix cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Jan 27, 2016
1 parent 3243629 commit 4c2e2b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.DS_Store
.idea
node_modules
*.log*
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
scripts
=======
ta-scripts
==========
Reusable shell agnostic scripting so you can get your shtuff done.

## Install

$ npm i @technologyadvice/scripts -D
$ npm i @technologyadvice/ta-scripts -D

## Usage

Expand All @@ -14,7 +14,6 @@ Reusable shell agnostic scripting so you can get your shtuff done.
1. Just like npm scripts, use `--` to pass arguments to a script
1. Make sure the env executing the script has all the env vars used in the script


## Examples

#### Sync FunnelAdvice to S3
Expand Down
4 changes: 3 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

const path = require('path')
const cp = require('child_process')
const argv = require('yargs')
Expand All @@ -19,4 +21,4 @@ if (!program) {
throw new Error(`There is no program assigned to handle the extension "${scriptExt}".`)
}

cp.execSync(`${program} ${scriptPath} ${scriptArgs}`, {stdio: 'inherit'})
cp.execSync(`${program} ${scriptPath} ${scriptArgs}`, {cwd: __dirname, stdio: 'inherit'})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@technologyadvice/scripts",
"name": "@technologyadvice/ta-scripts",
"version": "1.0.0",
"description": "CI/CD scripts",
"main": "index.js",
Expand Down

0 comments on commit 4c2e2b7

Please sign in to comment.