vladx 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/vladpm.js +8 -8
- package/package.json +1 -1
package/bin/vladpm.js
CHANGED
|
@@ -56,7 +56,7 @@ class VladPM {
|
|
|
56
56
|
const packageFile = join(process.cwd(), 'vladx.json');
|
|
57
57
|
|
|
58
58
|
if (existsSync(packageFile)) {
|
|
59
|
-
this.logger.info('
|
|
59
|
+
this.logger.info('vladx.json уже существует');
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -112,7 +112,7 @@ class VladPM {
|
|
|
112
112
|
const packageFile = join(process.cwd(), 'vladx.json');
|
|
113
113
|
|
|
114
114
|
if (!existsSync(packageFile)) {
|
|
115
|
-
throw new Error('
|
|
115
|
+
throw new Error('vladx.json не найден. Запустите "vladpm init"');
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
const packageJson = JSON.parse(readFileSync(packageFile, 'utf-8'));
|
|
@@ -174,10 +174,10 @@ class VladPM {
|
|
|
174
174
|
* Удалить локально
|
|
175
175
|
*/
|
|
176
176
|
uninstallLocal(packageName, isDev = false) {
|
|
177
|
-
const packageFile = join(process.cwd(), '
|
|
177
|
+
const packageFile = join(process.cwd(), 'vladx.json');
|
|
178
178
|
|
|
179
179
|
if (!existsSync(packageFile)) {
|
|
180
|
-
throw new Error('
|
|
180
|
+
throw new Error('vladx.json не найден');
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
const packageJson = JSON.parse(readFileSync(packageFile, 'utf-8'));
|
|
@@ -332,10 +332,10 @@ class VladPM {
|
|
|
332
332
|
* Список локальных пакетов
|
|
333
333
|
*/
|
|
334
334
|
listLocal() {
|
|
335
|
-
const packageFile = join(process.cwd(), '
|
|
335
|
+
const packageFile = join(process.cwd(), 'vladx.json');
|
|
336
336
|
|
|
337
337
|
if (!existsSync(packageFile)) {
|
|
338
|
-
this.logger.info('
|
|
338
|
+
this.logger.info('vladx.json не найден');
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
341
|
|
|
@@ -399,10 +399,10 @@ class VladPM {
|
|
|
399
399
|
* Публикация пакета
|
|
400
400
|
*/
|
|
401
401
|
async publish(options = {}) {
|
|
402
|
-
const packageFile = join(process.cwd(), '
|
|
402
|
+
const packageFile = join(process.cwd(), 'vladx.json');
|
|
403
403
|
|
|
404
404
|
if (!existsSync(packageFile)) {
|
|
405
|
-
throw new Error('
|
|
405
|
+
throw new Error('vladx.json не найден');
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
const packageJson = JSON.parse(readFileSync(packageFile, 'utf-8'));
|