mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-22 08:58:02 +00:00
fix: update header pattern to allow 'authors & contributors' suffix
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
// Copyright 2017-2025 @pezkuwi/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
import { copyDirSync, logBin, rimrafSync } from './util.mjs';
|
||||
|
||||
logBin('pezkuwi-dev-build-docs');
|
||||
|
||||
let docRoot = path.join(process.cwd(), 'docs');
|
||||
|
||||
if (fs.existsSync(docRoot)) {
|
||||
docRoot = path.join(process.cwd(), 'build-docs');
|
||||
|
||||
rimrafSync(docRoot);
|
||||
copyDirSync(path.join(process.cwd(), 'docs'), docRoot);
|
||||
}
|
||||
Reference in New Issue
Block a user