Skip to content

Commit

Permalink
feat: added copy css task to run
Browse files Browse the repository at this point in the history
  • Loading branch information
BetimBeja committed Apr 30, 2024
1 parent 5b7c519 commit dfb64a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion run.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ function handleExit(code, stderr, errorCallback) {
}

async function run({ watch, dir, silent, command, errorCallback }) {
return new Promise((resolve, reject) => {
return new Promise(async (resolve, reject) => {
if (command !== '') {
if (dir) await execa.command('npx copyfiles -u 1 src/**/*.css ' + dir);

const child = execa.command(command, {
... {
buffer: false,
Expand Down
2 changes: 1 addition & 1 deletion tscfy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function tscfy(options = {}) {
await run({ watch, command, silent, errorCallback });
}

await execa.command('npx copyfiles -u 1 src/**/*.d.ts lib/ts4.2')
await execa.command('npx copyfiles -u 1 src/**/*.d.ts lib/ts4.2');

if (!watch) {
await execa.command('npx downlevel-dts lib/ts4.2 lib/ts3.9 --to=3.9');
Expand Down

0 comments on commit dfb64a7

Please sign in to comment.