We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12df110 commit 3fb3385Copy full SHA for 3fb3385
src/app.ts
@@ -1,5 +1,6 @@
1
import { Command } from 'commander';
2
import { Config, getConfig, resetConfig } from './config.js';
3
+import * as output from './utils/output.js';
4
import { fileURLToPath } from 'node:url';
5
import path from 'node:path';
6
import fs from 'fs-extra';
@@ -43,6 +44,12 @@ export const PUP_VERSION = getVersion();
43
44
export function createApp(): Command {
45
resetConfig();
46
47
+ const config = getConfig();
48
+ if (config.hasInvalidPuprc()) {
49
+ output.error('There is a .puprc file in this directory, but it could not be parsed.');
50
+ output.error(`JSON Error: ${config.getPuprcParseError()}`);
51
+ }
52
+
53
const program = new Command();
54
program
55
.name('pup')
0 commit comments