Feat(legal): legal notice #8

Open
jakob.scheid wants to merge 20 commits from feature/imprint into main
Showing only changes of commit 100adb40e9 - Show all commits
+7 -3
View File
@@ -15,7 +15,7 @@ limitations under the License.
*/
import { checkFileReadAccess, exists, isDirectory } from './fileAccess.js';
import { copyFile, mkdir, writeFile } from 'node:fs/promises';
import { cp, mkdir, writeFile } from 'node:fs/promises';
import { dirname, join } from 'node:path';
const validateArtifact = function validateArtifact (artifact) {
@@ -71,9 +71,13 @@ export const processArtifact = async function processArtifact (artifact, { srcBa
console.log(`Wrote to ${distPath}`);
} else if (artifact.type === 'copy') {
const srcPath = join(srcBase, artifact.options.source);
await copyFile(
await cp(
srcPath,
distPath
distPath,
{
recursive: true,
force: true
}
);
console.log(`Copied ${srcPath} -> ${distPath}`);
}