@clidey/dory 0.17.0 โ†’ 0.18.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/dory.js CHANGED
@@ -14,21 +14,15 @@ const commands = {
14
14
  build: () => {
15
15
  console.log('๐ŸŸ Dory is ready to build your docs!');
16
16
 
17
- const currentDir = process.cwd();
18
- const userDocsDir = resolve(currentDir, 'docs');
19
- const hasUserDocs = existsSync(userDocsDir);
20
-
21
- // Use different temp directory if user has their own docs folder
22
- const tempDirName = hasUserDocs ? '.dory-build-temp' : 'docs';
23
- const docsDir = resolve(__dirname, '..', tempDirName);
24
-
25
- // Clear the temp build folder if it exists
17
+ // Clear the docs folder if it exists
18
+ const docsDir = resolve(__dirname, '..', 'docs');
26
19
  if (existsSync(docsDir)) {
27
20
  console.log('๐Ÿงน Tidying up the workspace...');
28
21
  rmSync(docsDir, { recursive: true, force: true });
29
22
  }
30
23
 
31
24
  // Check if dory.json exists in current directory
25
+ const currentDir = process.cwd();
32
26
  const doryConfigPath = resolve(currentDir, 'dory.json');
33
27
 
34
28
  if (!existsSync(doryConfigPath)) {
@@ -59,9 +53,8 @@ const commands = {
59
53
  }
60
54
  };
61
55
 
62
- // Copy all files and directories except node_modules, dist, .git, and temp build dir
63
- // Don't exclude 'docs' if user has their own docs folder - we need to copy it
64
- const excludeDirs = ['node_modules', 'dist', '.git', 'pnpm-lock.yaml', tempDirName];
56
+ // Copy all files and directories except node_modules, dist, and .git
57
+ const excludeDirs = ['node_modules', 'dist', '.git', 'docs', 'pnpm-lock.yaml'];
65
58
 
66
59
  const items = readdirSync(currentDir);
67
60
  for (const item of items) {
@@ -95,7 +88,7 @@ const commands = {
95
88
  }
96
89
  rmSync(distDir, { recursive: true, force: true });
97
90
 
98
- // Clean up temp build folder (but preserve user's docs folder if it exists)
91
+ // Revert docs folder back to original state
99
92
  console.log('๐Ÿงน Cleaning up...');
100
93
  rmSync(docsDir, { recursive: true, force: true });
101
94
  console.log('โœ… All done!');
package/k8s/Dockerfile CHANGED
@@ -7,7 +7,7 @@ RUN apk add --no-cache git
7
7
 
8
8
  COPY ./k8s/config/nginx-default.conf /app/k8s/config/nginx-default.conf
9
9
 
10
- RUN npm install -g @clidey/dory@0.17.0
10
+ RUN npm install -g @clidey/dory@0.18.0
11
11
  EXPOSE 3000
12
12
 
13
13
  CMD ["dory", "preview"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clidey/dory",
3
3
  "private": false,
4
- "version": "0.17.0",
4
+ "version": "0.18.0",
5
5
  "type": "module",
6
6
  "description": "A CLI tool for building and previewing documentation sites",
7
7
  "keywords": [