rework misskey-js build to preserve original package structure

This commit is contained in:
Hazelnoot 2025-10-01 15:55:45 -04:00
parent b8a3bd6182
commit 2faeabe79c
7 changed files with 55 additions and 15 deletions

View file

@ -1,5 +1,8 @@
import { rm } from 'fs/promises';
import { outDir } from './_common.mjs';
import {buildDir, outDir} from './_common.mjs';
console.log(`Cleaning ${outDir}...`);
console.log(`Cleaning working directory ${buildDir}...`);
await rm(buildDir, { recursive: true, force: true });
console.log(`Cleaning output directory ${outDir}...`);
await rm(outDir, { recursive: true, force: true });