@objectdocs/cli 0.2.7 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @objectdocs/cli
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: use dereference: true when copying .next directory to expand all symlinks
8
+ - @objectdocs/site@0.2.8
9
+
3
10
  ## 0.2.7
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectdocs/cli",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "ObjectDocs CLI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "dotenv": "^16.4.5",
21
21
  "openai": "^4.0.0",
22
22
  "typescript": "^5.9.3",
23
- "@objectdocs/site": "0.2.7"
23
+ "@objectdocs/site": "0.2.8"
24
24
  },
25
25
  "scripts": {
26
26
  "dev": "node ./bin/cli.mjs dev ../../content/docs",
@@ -90,9 +90,9 @@ export function registerBuildCommand(cli) {
90
90
  if (fs.existsSync(destNext)) {
91
91
  fs.rmSync(destNext, { recursive: true, force: true });
92
92
  }
93
- // Use copy instead of symlink to ensure compatibility with Vercel and other deployment platforms
94
- // that might not handle symlinks to node_modules correctly
95
- fs.cpSync(srcNext, destNext, { recursive: true });
93
+ // Use copy instead of symlink to ensure compatibility with Vercel
94
+ // dereference: true ensures we copy the actual files instead of symlinks, preventing broken links
95
+ fs.cpSync(srcNext, destNext, { recursive: true, dereference: true });
96
96
  console.log(`Build successfully copied to: ${destNext}`);
97
97
  } else {
98
98
  console.log(`\nNo 'out' directory generated in ${src}.`);