Files
Craigory Coppola 3f7e152685 feat(dotnet): add initial draft of .NET plugin (#32869)
## Current Behavior
@nx-dotnet/core is recommended plugin for .NET

## Expected Behavior
@nx/dotnet is new .NET plugin

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

---------

Co-authored-by: Vijay Ramakrishnan <vramak@microsoft.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-18 01:46:46 -04:00

29 lines
643 B
JavaScript

//@ts-check
const { mkdirSync, copySync } = require('fs-extra');
const glob = require('tinyglobby');
const { join, basename } = require('path');
const p = process.argv[2];
const args = process.argv.slice(2);
const dest = args[args.length - 1];
const from = args.slice(0, args.length - 1);
try {
mkdirSync(dest, {
recursive: true,
});
} catch {}
for (const f of from) {
const matchingFiles = glob.globSync(f, {
cwd: process.cwd(),
onlyDirectories: true,
});
for (const file of matchingFiles) {
const destFile = join(dest, basename(file));
console.log(file, '=>', destFile);
copySync(file, destFile);
}
}