mise-projen 0.0.39 → 0.0.41
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/.jsii +847 -560
- package/API.md +192 -2
- package/lib/index.js +1 -1
- package/lib/miseConfig.d.ts +91 -1
- package/lib/miseConfig.js +34 -6
- package/lib/miseFile.js +1 -1
- package/package.json +1 -1
- package/schemas/mise.json +185 -3
package/lib/miseFile.js
CHANGED
|
@@ -16,7 +16,7 @@ const MISE_COMPONENT_ID = 'Mise';
|
|
|
16
16
|
* `TypescriptConfig` lets several components shape a single `tsconfig.json`.
|
|
17
17
|
*/
|
|
18
18
|
class MiseFile extends projen_1.Component {
|
|
19
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "mise-projen.MiseFile", version: "0.0.
|
|
19
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "mise-projen.MiseFile", version: "0.0.41" };
|
|
20
20
|
/**
|
|
21
21
|
* Returns the `MiseFile` instance already attached to the given project, if any.
|
|
22
22
|
*/
|
package/package.json
CHANGED
package/schemas/mise.json
CHANGED
|
@@ -1541,6 +1541,59 @@
|
|
|
1541
1541
|
"minProperties": 1,
|
|
1542
1542
|
"additionalProperties": false
|
|
1543
1543
|
},
|
|
1544
|
+
"launchd_resource_limits": {
|
|
1545
|
+
"type": "object",
|
|
1546
|
+
"description": "resource limits for launchd SoftResourceLimits and HardResourceLimits",
|
|
1547
|
+
"properties": {
|
|
1548
|
+
"core": {
|
|
1549
|
+
"type": "integer",
|
|
1550
|
+
"description": "write Core, the largest core file in bytes",
|
|
1551
|
+
"minimum": 0
|
|
1552
|
+
},
|
|
1553
|
+
"cpu": {
|
|
1554
|
+
"type": "integer",
|
|
1555
|
+
"description": "write CPU, the CPU time in seconds",
|
|
1556
|
+
"minimum": 0
|
|
1557
|
+
},
|
|
1558
|
+
"data": {
|
|
1559
|
+
"type": "integer",
|
|
1560
|
+
"description": "write Data, the data segment size in bytes",
|
|
1561
|
+
"minimum": 0
|
|
1562
|
+
},
|
|
1563
|
+
"file_size": {
|
|
1564
|
+
"type": "integer",
|
|
1565
|
+
"description": "write FileSize, the largest file the program may create in bytes",
|
|
1566
|
+
"minimum": 0
|
|
1567
|
+
},
|
|
1568
|
+
"memory_lock": {
|
|
1569
|
+
"type": "integer",
|
|
1570
|
+
"description": "write MemoryLock, the memory the program may lock in bytes",
|
|
1571
|
+
"minimum": 0
|
|
1572
|
+
},
|
|
1573
|
+
"number_of_files": {
|
|
1574
|
+
"type": "integer",
|
|
1575
|
+
"description": "write NumberOfFiles, the open file descriptors; launchd starts agents with a soft limit of 256",
|
|
1576
|
+
"minimum": 0
|
|
1577
|
+
},
|
|
1578
|
+
"number_of_processes": {
|
|
1579
|
+
"type": "integer",
|
|
1580
|
+
"description": "write NumberOfProcesses, the processes the user may run",
|
|
1581
|
+
"minimum": 0
|
|
1582
|
+
},
|
|
1583
|
+
"resident_set_size": {
|
|
1584
|
+
"type": "integer",
|
|
1585
|
+
"description": "write ResidentSetSize, the resident memory in bytes",
|
|
1586
|
+
"minimum": 0
|
|
1587
|
+
},
|
|
1588
|
+
"stack": {
|
|
1589
|
+
"type": "integer",
|
|
1590
|
+
"description": "write Stack, the stack size in bytes",
|
|
1591
|
+
"minimum": 0
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"minProperties": 1,
|
|
1595
|
+
"additionalProperties": false
|
|
1596
|
+
},
|
|
1544
1597
|
"macos_defaults_value": {
|
|
1545
1598
|
"description": "a property list value: boolean, integer, real, string, or an array or dictionary of these",
|
|
1546
1599
|
"anyOf": [
|
|
@@ -1880,7 +1933,7 @@
|
|
|
1880
1933
|
"type": "boolean"
|
|
1881
1934
|
},
|
|
1882
1935
|
"color_theme": {
|
|
1883
|
-
"default": "
|
|
1936
|
+
"default": "base16",
|
|
1884
1937
|
"description": "Color theme for interactive prompts, such as the task picker in `mise run`.",
|
|
1885
1938
|
"type": "string",
|
|
1886
1939
|
"enum": [
|
|
@@ -2421,6 +2474,11 @@
|
|
|
2421
2474
|
"description": "How often the history watcher fetches from the setup repository.",
|
|
2422
2475
|
"type": "string"
|
|
2423
2476
|
},
|
|
2477
|
+
"lock_wait": {
|
|
2478
|
+
"default": "30s",
|
|
2479
|
+
"description": "How long a command waits for another history operation before failing.",
|
|
2480
|
+
"type": "string"
|
|
2481
|
+
},
|
|
2424
2482
|
"notify": {
|
|
2425
2483
|
"default": true,
|
|
2426
2484
|
"description": "Show a desktop notification when a sync conflict pauses sharing.",
|
|
@@ -3464,6 +3522,13 @@
|
|
|
3464
3522
|
"layer"
|
|
3465
3523
|
]
|
|
3466
3524
|
},
|
|
3525
|
+
"prefer": {
|
|
3526
|
+
"description": "Package managers, in order, that an unprefixed `[bootstrap.packages]` key may use.",
|
|
3527
|
+
"type": "array",
|
|
3528
|
+
"items": {
|
|
3529
|
+
"type": "string"
|
|
3530
|
+
}
|
|
3531
|
+
},
|
|
3467
3532
|
"sudo": {
|
|
3468
3533
|
"default": true,
|
|
3469
3534
|
"description": "Let mise run `sudo` for steps that need root, such as system packages and `mise install --system`.",
|
|
@@ -9602,7 +9667,7 @@
|
|
|
9602
9667
|
},
|
|
9603
9668
|
"packages": {
|
|
9604
9669
|
"type": "object",
|
|
9605
|
-
"description": "system packages to install with `mise bootstrap packages apply`, keyed by \"manager:package\" (e.g. \"apt:libssl-dev\", \"brew:postgresql@17\", \"dnf:openssl-devel\", \"pacman:base-devel\")",
|
|
9670
|
+
"description": "system packages to install with `mise bootstrap packages apply`, keyed by \"manager:package\", or by a bare package name that mise installs with one manager chosen from system_packages.prefer (e.g. \"apt:libssl-dev\", \"brew:postgresql@17\", \"dnf:openssl-devel\", \"pacman:base-devel\")",
|
|
9606
9671
|
"additionalProperties": {
|
|
9607
9672
|
"oneOf": [
|
|
9608
9673
|
{
|
|
@@ -9695,6 +9760,13 @@
|
|
|
9695
9760
|
"absent"
|
|
9696
9761
|
],
|
|
9697
9762
|
"default": "present"
|
|
9763
|
+
},
|
|
9764
|
+
"names": {
|
|
9765
|
+
"type": "object",
|
|
9766
|
+
"description": "package names per manager for a key without a manager prefix, e.g. { apt = \"libssl-dev\", dnf = \"openssl-devel\" }; a manager not listed uses the key as the name",
|
|
9767
|
+
"additionalProperties": {
|
|
9768
|
+
"type": "string"
|
|
9769
|
+
}
|
|
9698
9770
|
}
|
|
9699
9771
|
},
|
|
9700
9772
|
"dependentRequired": {
|
|
@@ -9708,7 +9780,7 @@
|
|
|
9708
9780
|
]
|
|
9709
9781
|
},
|
|
9710
9782
|
"propertyNames": {
|
|
9711
|
-
"pattern": "^[A-Za-z0-9_-]
|
|
9783
|
+
"pattern": "^([A-Za-z0-9_-]+:.+|[^:\\s]+)$"
|
|
9712
9784
|
}
|
|
9713
9785
|
},
|
|
9714
9786
|
"repos": {
|
|
@@ -9953,6 +10025,14 @@
|
|
|
9953
10025
|
"type": "string",
|
|
9954
10026
|
"description": "write StandardErrorPath"
|
|
9955
10027
|
},
|
|
10028
|
+
"soft_resource_limits": {
|
|
10029
|
+
"description": "write SoftResourceLimits, the resource limits the program starts with and may raise up to the hard limits",
|
|
10030
|
+
"$ref": "#/$defs/launchd_resource_limits"
|
|
10031
|
+
},
|
|
10032
|
+
"hard_resource_limits": {
|
|
10033
|
+
"description": "write HardResourceLimits, the ceilings the program cannot raise its soft limits above",
|
|
10034
|
+
"$ref": "#/$defs/launchd_resource_limits"
|
|
10035
|
+
},
|
|
9956
10036
|
"kickstart": {
|
|
9957
10037
|
"type": "boolean",
|
|
9958
10038
|
"description": "run `launchctl kickstart -k` after loading the agent",
|
|
@@ -11409,6 +11489,57 @@
|
|
|
11409
11489
|
}
|
|
11410
11490
|
]
|
|
11411
11491
|
},
|
|
11492
|
+
"ports": {
|
|
11493
|
+
"type": "object",
|
|
11494
|
+
"description": "More named ports, each exported as <NAME>_<PORT>_PORT and moved by the same worktree slot as `port`.",
|
|
11495
|
+
"additionalProperties": {
|
|
11496
|
+
"description": "Port for this named port of the daemon: a fixed port, or an allocation that gives each linked git worktree its own.",
|
|
11497
|
+
"oneOf": [
|
|
11498
|
+
{
|
|
11499
|
+
"type": "integer",
|
|
11500
|
+
"maximum": 65535,
|
|
11501
|
+
"minimum": 1
|
|
11502
|
+
},
|
|
11503
|
+
{
|
|
11504
|
+
"type": "object",
|
|
11505
|
+
"description": "Offset a base port by the same worktree slot the daemon's `port = \"auto\"` uses.",
|
|
11506
|
+
"additionalProperties": false,
|
|
11507
|
+
"properties": {
|
|
11508
|
+
"auto": {
|
|
11509
|
+
"description": "Enable per-worktree allocation of this named port.",
|
|
11510
|
+
"const": true
|
|
11511
|
+
},
|
|
11512
|
+
"base": {
|
|
11513
|
+
"type": "integer",
|
|
11514
|
+
"description": "Port used by the primary checkout.",
|
|
11515
|
+
"minimum": 1,
|
|
11516
|
+
"maximum": 65535
|
|
11517
|
+
},
|
|
11518
|
+
"stride": {
|
|
11519
|
+
"type": "integer",
|
|
11520
|
+
"description": "Distance between consecutive worktree slots. Defaults to 1.",
|
|
11521
|
+
"minimum": 1,
|
|
11522
|
+
"maximum": 65535
|
|
11523
|
+
}
|
|
11524
|
+
},
|
|
11525
|
+
"required": [
|
|
11526
|
+
"auto",
|
|
11527
|
+
"base"
|
|
11528
|
+
]
|
|
11529
|
+
}
|
|
11530
|
+
]
|
|
11531
|
+
},
|
|
11532
|
+
"propertyNames": {
|
|
11533
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
11534
|
+
"not": {
|
|
11535
|
+
"enum": [
|
|
11536
|
+
"port",
|
|
11537
|
+
"container",
|
|
11538
|
+
"runtime"
|
|
11539
|
+
]
|
|
11540
|
+
}
|
|
11541
|
+
}
|
|
11542
|
+
},
|
|
11412
11543
|
"proxy": {
|
|
11413
11544
|
"$ref": "#/$defs/daemon_proxy"
|
|
11414
11545
|
},
|
|
@@ -11480,6 +11611,57 @@
|
|
|
11480
11611
|
"init": {
|
|
11481
11612
|
"$ref": "#/$defs/daemon_init"
|
|
11482
11613
|
},
|
|
11614
|
+
"ports": {
|
|
11615
|
+
"type": "object",
|
|
11616
|
+
"description": "More named ports, each exported as <NAME>_<PORT>_PORT and moved by the same worktree slot as `port`.",
|
|
11617
|
+
"additionalProperties": {
|
|
11618
|
+
"description": "Port for this named port of the daemon: a fixed port, or an allocation that gives each linked git worktree its own.",
|
|
11619
|
+
"oneOf": [
|
|
11620
|
+
{
|
|
11621
|
+
"type": "integer",
|
|
11622
|
+
"maximum": 65535,
|
|
11623
|
+
"minimum": 1
|
|
11624
|
+
},
|
|
11625
|
+
{
|
|
11626
|
+
"type": "object",
|
|
11627
|
+
"description": "Offset a base port by the same worktree slot the daemon's `port = \"auto\"` uses.",
|
|
11628
|
+
"additionalProperties": false,
|
|
11629
|
+
"properties": {
|
|
11630
|
+
"auto": {
|
|
11631
|
+
"description": "Enable per-worktree allocation of this named port.",
|
|
11632
|
+
"const": true
|
|
11633
|
+
},
|
|
11634
|
+
"base": {
|
|
11635
|
+
"type": "integer",
|
|
11636
|
+
"description": "Port used by the primary checkout.",
|
|
11637
|
+
"minimum": 1,
|
|
11638
|
+
"maximum": 65535
|
|
11639
|
+
},
|
|
11640
|
+
"stride": {
|
|
11641
|
+
"type": "integer",
|
|
11642
|
+
"description": "Distance between consecutive worktree slots. Defaults to 1.",
|
|
11643
|
+
"minimum": 1,
|
|
11644
|
+
"maximum": 65535
|
|
11645
|
+
}
|
|
11646
|
+
},
|
|
11647
|
+
"required": [
|
|
11648
|
+
"auto",
|
|
11649
|
+
"base"
|
|
11650
|
+
]
|
|
11651
|
+
}
|
|
11652
|
+
]
|
|
11653
|
+
},
|
|
11654
|
+
"propertyNames": {
|
|
11655
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
11656
|
+
"not": {
|
|
11657
|
+
"enum": [
|
|
11658
|
+
"port",
|
|
11659
|
+
"container",
|
|
11660
|
+
"runtime"
|
|
11661
|
+
]
|
|
11662
|
+
}
|
|
11663
|
+
}
|
|
11664
|
+
},
|
|
11483
11665
|
"proxy": {
|
|
11484
11666
|
"$ref": "#/$defs/daemon_proxy"
|
|
11485
11667
|
},
|