layero 0.11.4 → 0.11.5
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/README.md +1 -1
- package/dist/pack.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -357,7 +357,7 @@ Full reference: <https://docs.layero.ru/cli/json-events>
|
|
|
357
357
|
|
|
358
358
|
`layero deploy` honours `.gitignore` and `.layeroignore`. Always excluded:
|
|
359
359
|
`node_modules`, `.git`, `dist`, `build`, `.next`, `.env*`, `.DS_Store`, and
|
|
360
|
-
the rule files themselves. Maximum archive size is
|
|
360
|
+
the rule files themselves. Maximum archive size is 500 MB.
|
|
361
361
|
|
|
362
362
|
## Config
|
|
363
363
|
|
package/dist/pack.js
CHANGED
|
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
|
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { create as tarCreate } from "tar";
|
|
6
6
|
import ignore from "ignore";
|
|
7
|
-
const MAX_BYTES =
|
|
7
|
+
const MAX_BYTES = 500 * 1024 * 1024;
|
|
8
8
|
const DEFAULT_IGNORE = [
|
|
9
9
|
"node_modules",
|
|
10
10
|
".git",
|
|
@@ -176,7 +176,7 @@ export async function packDirectory(targetDir, projectName) {
|
|
|
176
176
|
const fst = await fs.stat(archivePath);
|
|
177
177
|
if (fst.size > MAX_BYTES) {
|
|
178
178
|
await fs.unlink(archivePath).catch(() => undefined);
|
|
179
|
-
throw new Error(`archive is ${(fst.size / (1024 * 1024)).toFixed(1)}MB — over the
|
|
179
|
+
throw new Error(`archive is ${(fst.size / (1024 * 1024)).toFixed(1)}MB — over the ${MAX_BYTES / (1024 * 1024)}MB limit. ` +
|
|
180
180
|
"Trim the build output or skip large files (`.layeroignore`).");
|
|
181
181
|
}
|
|
182
182
|
const sha256 = await sha256OfFile(archivePath);
|
|
@@ -206,7 +206,7 @@ export async function packCwd(cwd, projectName) {
|
|
|
206
206
|
const stat = await fs.stat(archivePath);
|
|
207
207
|
if (stat.size > MAX_BYTES) {
|
|
208
208
|
await fs.unlink(archivePath).catch(() => undefined);
|
|
209
|
-
throw new Error(`archive is ${(stat.size / (1024 * 1024)).toFixed(1)}MB — over the
|
|
209
|
+
throw new Error(`archive is ${(stat.size / (1024 * 1024)).toFixed(1)}MB — over the ${MAX_BYTES / (1024 * 1024)}MB limit. ` +
|
|
210
210
|
"Add large directories to .layeroignore.");
|
|
211
211
|
}
|
|
212
212
|
const sha256 = await sha256OfFile(archivePath);
|
package/package.json
CHANGED