@qmuse/qmuse-cli 1.0.3-dev.6 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import/limits.js +2 -2
- package/package.json +1 -1
package/dist/import/limits.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const MAX_IMPORT_ARCHIVE_BYTES =
|
|
1
|
+
export const MAX_IMPORT_ARCHIVE_BYTES = 50 * 1024 * 1024;
|
|
2
2
|
export function assertImportArchiveSize(sizeBytes) {
|
|
3
3
|
if (sizeBytes > MAX_IMPORT_ARCHIVE_BYTES) {
|
|
4
|
-
throw new Error(`源码压缩包超过
|
|
4
|
+
throw new Error(`源码压缩包超过 50 MiB 上传上限:当前 ${(sizeBytes / 1024 / 1024).toFixed(2)} MiB(${sizeBytes} 字节)。请将不参与运行的生成产物加入 .gitignore 后重试`);
|
|
5
5
|
}
|
|
6
6
|
}
|