vovk-cli 0.0.1-draft.360 → 0.0.1-draft.361

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.
@@ -9,6 +9,7 @@ export default async function createConfig({ root, log, options: { validationLib
9
9
  const dir = (await getFileSystemEntryType(dotConfigPath)) === FileSystemEntryType.DIRECTORY ? dotConfigPath : root;
10
10
  const isModule = await fs
11
11
  .readFile(path.join(root, 'package.json'), 'utf-8')
12
+ .catch(() => '{}')
12
13
  .then((content) => JSON.parse(content).type === 'module');
13
14
  const configAbsolutePath = path.join(dir, isModule ? 'vovk.config.mjs' : 'vovk.config.js');
14
15
  const typeTemplates = {
@@ -173,10 +173,10 @@ export class Init {
173
173
  });
174
174
  }
175
175
  if (!(await getFileSystemEntryType(path.join(root, 'package.json')))) {
176
- log.warn(`package.json not found at ${root}. Run "npx create-next-app" to create a new Next.js project.`);
176
+ log.warn(`${chalkHighlightThing('package.json')} not found at ${chalkHighlightThing(root)}. Run "npx create-next-app" to create a new Next.js project.`);
177
177
  }
178
178
  else if (pkgJson && !(await getFileSystemEntryType(path.join(root, 'tsconfig.json')))) {
179
- log.warn(`tsconfig.json not found at ${root}. Run "npx tsc --init" to create a new tsconfig.json file.`);
179
+ log.warn(`${chalkHighlightThing('tsconfig.json')} not found at ${chalkHighlightThing(root)}. Run "npx tsc --init" to create a new tsconfig.json file.`);
180
180
  }
181
181
  if (configPaths.length) {
182
182
  if (!(await confirm({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.360",
3
+ "version": "0.0.1-draft.361",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },