UNPKG
@rnm/tscx
Version:
latest (0.3.10)
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
A tsc wrapper with many convenient features.
github.com/rnmjs/tscx
rnmjs/tscx
@rnm/tscx
/
src
/
cmd
/
copyfiles.cli.mts
12 lines
(9 loc)
•
288 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env node
import
process
from
"node:process"
;
import
{ copyfiles }
from
"./copyfiles.ts"
;
const
rootDir = process.
argv
[
2
];
const
outDir = process.
argv
[
3
];
if
(!rootDir || !outDir) {
throw
new
Error
(
"`rootDir` and `outDir` are required"
); }
await
copyfiles
(rootDir, outDir);