👷‍♂️ Include ssn-installer as a dependency

This commit is contained in:
C-3PO 2018-10-08 21:14:15 +02:00
parent cfb6a0fbf9
commit d5fcd19e6a
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
4 changed files with 7 additions and 4 deletions

View file

@ -7,8 +7,6 @@ For this tool to work, `tsc` and `tslint` must be globally available, e.g. by ru
sudo npm install -g typescript tslint sudo npm install -g typescript tslint
``` ```
In addition, the `patch-installer` repository must be present in the parent folder of this repository.
Install dependencies and transpile the TypeScript files to JavaScript by running: Install dependencies and transpile the TypeScript files to JavaScript by running:
```bash ```bash

4
package-lock.json generated
View file

@ -14,6 +14,10 @@
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
}, },
"ssn-installer": {
"version": "git+https://git.jedipedia.net/swtor/ssn-installer.git#88dba8d750a88a7a11a82f77e4bacc624a426ed7",
"from": "git+https://git.jedipedia.net/swtor/ssn-installer.git"
},
"xml-js": { "xml-js": {
"version": "1.6.8", "version": "1.6.8",
"resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.8.tgz", "resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.8.tgz",

View file

@ -8,13 +8,14 @@
}, },
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"start": "rm -rf dist && tsc && cd ../patch-installer && ./build.sh && cd ../ssn && mkdir dist/lib && cp ../patch-installer/patch-installer dist/lib", "start": "rm -rf dist && tsc",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^10.11.4" "@types/node": "^10.11.4"
}, },
"dependencies": { "dependencies": {
"ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git",
"xml-js": "^1.6.8" "xml-js": "^1.6.8"
} }
} }

View file

@ -2,7 +2,7 @@ import * as childProcess from 'child_process';
import * as fs from 'fs'; import * as fs from 'fs';
import * as path from 'path'; import * as path from 'path';
const processPath = path.join(__dirname, '../../lib/patch-installer'); const processPath = path.join(__dirname, 'ssn-installer');
export default function launchProcess( export default function launchProcess(
diskFile: string, diskFile: string,