@patternfly/patternfly-doc-core 1.0.7 → 1.0.8

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/cli/cli.ts CHANGED
@@ -66,6 +66,12 @@ program.command('build').action(async () => {
66
66
  )
67
67
  return
68
68
  }
69
+
70
+ if (!config.outputDir) {
71
+ console.error("No outputDir found in config file, an output directory must be defined in your config file e.g. 'dist'")
72
+ return
73
+ }
74
+
69
75
  build({ root: astroRoot, outDir: join(currentDir, config.outputDir) })
70
76
  })
71
77
 
package/dist/cli/cli.js CHANGED
@@ -45,6 +45,10 @@ program.command('build').action(async () => {
45
45
  console.error('No config found, please run the `setup` command or manually create a pf-docs.config.mjs file');
46
46
  return;
47
47
  }
48
+ if (!config.outputDir) {
49
+ console.error("No outputDir found in config file, an output directory must be defined in your config file e.g. 'dist'");
50
+ return;
51
+ }
48
52
  build({ root: astroRoot, outDir: join(currentDir, config.outputDir) });
49
53
  });
50
54
  program.command('serve').action(async () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/patternfly-doc-core",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "description": "PatternFly Core Documentation",
6
6
  "publishConfig": {
7
7
  "access": "public"