@objectdocs/cli 0.2.7 → 0.2.9
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 +14 -0
- package/package.json +2 -2
- package/src/commands/build.mjs +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @objectdocs/cli
|
|
2
2
|
|
|
3
|
+
## 0.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @objectdocs/site@0.2.9
|
|
9
|
+
|
|
10
|
+
## 0.2.8
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- fix: use dereference: true when copying .next directory to expand all symlinks
|
|
15
|
+
- @objectdocs/site@0.2.8
|
|
16
|
+
|
|
3
17
|
## 0.2.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectdocs/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
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.
|
|
23
|
+
"@objectdocs/site": "0.2.9"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"dev": "node ./bin/cli.mjs dev ../../content/docs",
|
package/src/commands/build.mjs
CHANGED
|
@@ -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
|
|
94
|
-
//
|
|
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}.`);
|