👷‍♂️ Add shebangs

This commit is contained in:
C-3PO 2018-10-21 04:52:36 +02:00
parent 9ea67cdbb6
commit 1b0d87d40f
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
7 changed files with 17 additions and 9 deletions

View file

@ -24,10 +24,10 @@ complete -W 'assets_swtor_de_de assets_swtor_en_us assets_swtor_fr_fr assets_swt
# Usage # Usage
```bash ```bash
node dist/getManifest.js assets_swtor_main dist/getManifest.js assets_swtor_main
node dist/getSolidPkg.js assets_swtor_main 126 127 dist/getSolidPkg.js assets_swtor_main 126 127
node dist/getPatchZip.js --product assets_swtor_main --from 126 --to 127 dist/getPatchZip.js --product assets_swtor_main --from 126 --to 127
node dist/installPatch.js assets_swtor_main 126 127 dist/installPatch.js assets_swtor_main 126 127
swtor_install assets_swtor_main 126 127 swtor_install assets_swtor_main 126 127
``` ```

View file

@ -9,7 +9,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"preinstall": "rm -rf node_modules && rm -f package-lock.json", "preinstall": "rm -rf node_modules && rm -f package-lock.json",
"start": "rm -rf dist && tsc", "start": "rm -rf dist && tsc && chmod +x dist/*.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"dependencies": { "dependencies": {

View file

@ -1,5 +1,7 @@
#!/usr/bin/env node
import { getManifest, IManifest, Product, verifyProductName } from 'ssn'; import { getManifest, IManifest, Product, verifyProductName } from 'ssn';
import failWithError from './failWithError'; import failWithError from './funcs/failWithError';
const failFunction = failWithError.bind(null, 'node dist/getManifest.js <product>'); const failFunction = failWithError.bind(null, 'node dist/getManifest.js <product>');

View file

@ -1,6 +1,8 @@
#!/usr/bin/env node
import { getPatchZip, ISsnFileEntry, Product, verifyProductName } from 'ssn'; import { getPatchZip, ISsnFileEntry, Product, verifyProductName } from 'ssn';
import * as yargsParser from 'yargs-parser'; import * as yargsParser from 'yargs-parser';
import failWithError from './failWithError'; import failWithError from './funcs/failWithError';
const failFunction = failWithError.bind(null, 'node dist/getPatchZip.js --product <product> --from <from> --to <to>'); const failFunction = failWithError.bind(null, 'node dist/getPatchZip.js --product <product> --from <from> --to <to>');

View file

@ -1,5 +1,7 @@
#!/usr/bin/env node
import { getSolidpkg, ISolidSimple, Product, verifyProductName } from 'ssn'; import { getSolidpkg, ISolidSimple, Product, verifyProductName } from 'ssn';
import failWithError from './failWithError'; import failWithError from './funcs/failWithError';
const failFunction = failWithError.bind(null, 'node dist/getSolidpkg.js <product> <from> <to>'); const failFunction = failWithError.bind(null, 'node dist/getSolidpkg.js <product> <from> <to>');

View file

@ -1,5 +1,7 @@
#!/usr/bin/env node
import { getPatch, Product, verifyProductName } from 'ssn'; import { getPatch, Product, verifyProductName } from 'ssn';
import failWithError from './failWithError'; import failWithError from './funcs/failWithError';
const failFunction = failWithError.bind(null, 'node dist/installPatch.js <product> <from> <to>'); const failFunction = failWithError.bind(null, 'node dist/installPatch.js <product> <from> <to>');