Bundle package into dist/prettier/ (#15825)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-04-09 08:38:46 +08:00
1 parent 004e1e0028
commit 377b231a5d
16 files changed
+82 -54

No files matched your search

+3 -1
View File
@@ -39,7 +39,9 @@ function parseArguments() {
);
}
if (!path.join(DIST_DIR, result.saveAs).startsWith(DIST_DIR)) {
// TODO: Support package name
const distDirectory = path.join(DIST_DIR, "prettier");
if (!path.join(distDirectory, result.saveAs).startsWith(distDirectory)) {
throw new Error("'--save-as' can only relative path");
}
}