mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 05:09:41 +02:00
Merge branch 'fix/copy-button-path' of github.com:codex-team/codex.docs into fix/copy-button-path
This commit is contained in:
commit
8c88e05469
2 changed files with 13 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "codex.docs",
|
||||
"license": "Apache-2.0",
|
||||
"version": "v2.2.0-rc.3",
|
||||
"version": "v2.2.0-rc.7",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"codex.docs": "dist/backend/app.js"
|
||||
|
|
|
@ -120,11 +120,22 @@ export default async function buildStatic(): Promise<void> {
|
|||
console.log('Static files built');
|
||||
|
||||
console.log('Copy public directory');
|
||||
await fse.copy(path.resolve(dirname, '../../public'), distPath);
|
||||
const publicDir = path.resolve(dirname, '../../public');
|
||||
|
||||
console.log(`Copy from ${publicDir} to ${distPath}`);
|
||||
|
||||
try {
|
||||
await fse.copy(publicDir, distPath);
|
||||
console.log('Public directory copied');
|
||||
} catch (e) {
|
||||
console.log('Error while copying public directory');
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
if (appConfig.uploads.driver === 'local') {
|
||||
console.log('Copy uploads directory');
|
||||
await fse.copy(path.resolve(cwd, appConfig.uploads.local.path), path.resolve(distPath, 'uploads'));
|
||||
console.log('Uploads directory copied');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue