Bundle package into dist/prettier/ (#15825)
This commit is contained in:
1 parent
004e1e0028
commit
377b231a5d
16 files changed
+82
-54
No files matched your search
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user