cli: update

This commit is contained in:
Koushik Dutta
2022-12-05 07:28:26 -08:00
parent 0cf7b5d367
commit aa44f05954
5 changed files with 20 additions and 19 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "scrypted",
"version": "1.0.50",
"version": "1.0.53",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "scrypted",
"version": "1.0.50",
"version": "1.0.53",
"license": "ISC",
"dependencies": {
"@scrypted/types": "^0.0.6",
@@ -393,9 +393,9 @@
}
},
"node_modules/minimatch": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dependencies": {
"brace-expansion": "^1.1.7"
},
@@ -876,9 +876,9 @@
}
},
"minimatch": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"requires": {
"brace-expansion": "^1.1.7"
}

View File

@@ -1,6 +1,6 @@
{
"name": "scrypted",
"version": "1.0.50",
"version": "1.0.53",
"description": "",
"main": "./dist/packages/cli/src/main.js",
"bin": {

View File

@@ -142,7 +142,7 @@ async function main() {
await serveMain(installVersion);
}
else if (process.argv[2] === 'install-server') {
const installDir = await installServe('latest');
const installDir = await installServe(process.argv[3] || 'latest');
console.log('server installation successful:', installDir);
}
else if (process.argv[2] === 'login') {

View File

@@ -92,7 +92,7 @@ export async function serveMain(installVersion?: string) {
const { installDir, volume } = cwdInstallDir();
if (!fs.existsSync('node_modules/@scrypted/server')) {
install = true;
installVersion = 'latest';
installVersion ||= 'latest';
console.log('Package @scrypted/server not found. Installing.');
}
if (install) {

View File

@@ -1,14 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "ESNext",
"noImplicitAny": true,
"outDir": "./dist",
"esModuleInterop": true,
"sourceMap": true,
"declaration": true
"resolveJsonModule": true,
"module": "commonjs",
"target": "ESNext",
"noImplicitAny": true,
"outDir": "./dist",
"esModuleInterop": true,
"sourceMap": true,
"declaration": true
},
"include": [
"src/**/*"
"src/**/*"
],
}