mise-projen 0.0.7 → 0.0.9

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/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.7" };
19
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "mise-projen.MiseFile", version: "0.0.9" };
20
20
  /**
21
21
  * Returns the `MiseFile` instance already attached to the given project, if any.
22
22
  */
package/package.json CHANGED
@@ -67,7 +67,7 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "version": "0.0.7",
70
+ "version": "0.0.9",
71
71
  "jest": {
72
72
  "coverageProvider": "v8",
73
73
  "testMatch": [
package/schemas/mise.json CHANGED
@@ -751,14 +751,14 @@
751
751
  }
752
752
  },
753
753
  "auto_update": {
754
- "default": false,
755
- "description": "Automatically update mise before running eligible commands.",
756
- "type": "boolean"
754
+ "description": "[deprecated] Use `self_update.auto` instead.",
755
+ "type": "boolean",
756
+ "deprecated": true
757
757
  },
758
758
  "auto_update_check_duration": {
759
- "default": "7d",
760
- "description": "How often to check for a new mise release when auto-update is enabled.",
761
- "type": "string"
759
+ "description": "[deprecated] Use `self_update.check_duration` instead.",
760
+ "type": "string",
761
+ "deprecated": true
762
762
  },
763
763
  "cache_prune_age": {
764
764
  "default": "30d",
@@ -1389,6 +1389,14 @@
1389
1389
  "type": "string",
1390
1390
  "deprecated": true
1391
1391
  },
1392
+ "install_layout": {
1393
+ "description": "[experimental] Name installations by what they are (`identity`) instead of `installs/<tool>/<version>` (`legacy`).",
1394
+ "type": "string",
1395
+ "enum": [
1396
+ "legacy",
1397
+ "identity"
1398
+ ]
1399
+ },
1392
1400
  "java": {
1393
1401
  "type": "object",
1394
1402
  "unevaluatedProperties": false,
@@ -1466,6 +1474,11 @@
1466
1474
  "description": "Create and read lockfiles for tool versions.",
1467
1475
  "type": "boolean"
1468
1476
  },
1477
+ "lockfile_auto_prune": {
1478
+ "default": true,
1479
+ "description": "Remove lockfile tools that are absent from the active configuration.",
1480
+ "type": "boolean"
1481
+ },
1469
1482
  "lockfile_mode": {
1470
1483
  "description": "Choose incremental merging or complete lockfile generation.",
1471
1484
  "type": "string",
@@ -1775,6 +1788,20 @@
1775
1788
  "description": "Fail when provenance API checks cannot be completed.",
1776
1789
  "type": "boolean"
1777
1790
  },
1791
+ "prune": {
1792
+ "type": "object",
1793
+ "unevaluatedProperties": false,
1794
+ "properties": {
1795
+ "exclude": {
1796
+ "default": [],
1797
+ "description": "Tools that `mise prune` never removes, such as `node` or `aqua:BurntSushi/ripgrep`.",
1798
+ "type": "array",
1799
+ "items": {
1800
+ "type": "string"
1801
+ }
1802
+ }
1803
+ }
1804
+ },
1778
1805
  "pypi": {
1779
1806
  "type": "object",
1780
1807
  "unevaluatedProperties": false,
@@ -2016,6 +2043,16 @@
2016
2043
  "description": "GitHub API base URL used by `mise self-update`.",
2017
2044
  "type": "string"
2018
2045
  },
2046
+ "auto": {
2047
+ "default": false,
2048
+ "description": "Automatically update mise before running eligible commands.",
2049
+ "type": "boolean"
2050
+ },
2051
+ "check_duration": {
2052
+ "default": "7d",
2053
+ "description": "How often to check for a new mise release when `self_update.auto` is enabled.",
2054
+ "type": "string"
2055
+ },
2019
2056
  "minimum_release_age": {
2020
2057
  "description": "Minimum release age for mise itself; inherits minimum_release_age (24h by default).",
2021
2058
  "type": "string"
@@ -2474,6 +2511,17 @@
2474
2511
  "description": "Enable terminal progress indicators (OSC 9;4) for compatible terminals.",
2475
2512
  "type": "boolean"
2476
2513
  },
2514
+ "tool_update": {
2515
+ "type": "object",
2516
+ "unevaluatedProperties": false,
2517
+ "properties": {
2518
+ "check_duration": {
2519
+ "default": "24h",
2520
+ "description": "How often to check for updates to a global tool with `auto_update = true`.",
2521
+ "type": "string"
2522
+ }
2523
+ }
2524
+ },
2477
2525
  "trace": {
2478
2526
  "description": "Sets log level to trace",
2479
2527
  "type": "boolean"
@@ -2578,6 +2626,24 @@
2578
2626
  "description": "Shim file mode for Windows. Options: `exe`, `file`, `hardlink`, `symlink`.",
2579
2627
  "type": "string"
2580
2628
  },
2629
+ "write_targets": {
2630
+ "type": "object",
2631
+ "unevaluatedProperties": false,
2632
+ "properties": {
2633
+ "dotfiles": {
2634
+ "description": "Global config file to create new [dotfiles] entries in. Existing entries stay in the config file that already declares them.",
2635
+ "type": "string"
2636
+ },
2637
+ "packages": {
2638
+ "description": "Global config file to create new [bootstrap.packages] entries in. Existing entries stay in the config file that already declares them.",
2639
+ "type": "string"
2640
+ },
2641
+ "tools": {
2642
+ "description": "Global config file to create new [tools] entries in. Existing entries stay in the config file that already declares them.",
2643
+ "type": "string"
2644
+ }
2645
+ }
2646
+ },
2581
2647
  "yes": {
2582
2648
  "description": "This will automatically answer yes or no to prompts. This is useful for scripting.",
2583
2649
  "type": "boolean"
@@ -3073,6 +3139,17 @@
3073
3139
  },
3074
3140
  {
3075
3141
  "properties": {
3142
+ "auto_update": {
3143
+ "description": "update this tool before it runs when its check is due; true, or a check interval such as \"12h\". Only honored in global config",
3144
+ "oneOf": [
3145
+ {
3146
+ "type": "boolean"
3147
+ },
3148
+ {
3149
+ "type": "string"
3150
+ }
3151
+ ]
3152
+ },
3076
3153
  "install_env": {
3077
3154
  "type": "object",
3078
3155
  "additionalProperties": {
@@ -3653,6 +3730,30 @@
3653
3730
  "description": "expr-lang expression extracting algo:hash from the checksum_url manifest",
3654
3731
  "type": "string"
3655
3732
  },
3733
+ "headers": {
3734
+ "description": "request headers sent with the download, version_list_url and checksum_url requests; values are tera templated (e.g. Bearer {{ env.TOKEN }})",
3735
+ "type": "object",
3736
+ "additionalProperties": {
3737
+ "type": "string"
3738
+ }
3739
+ },
3740
+ "headers_forward": {
3741
+ "description": "hosts each header in headers may follow a redirect to; exact hosts or *.suffix, and a header with no entry is never forwarded",
3742
+ "type": "object",
3743
+ "additionalProperties": {
3744
+ "oneOf": [
3745
+ {
3746
+ "type": "string"
3747
+ },
3748
+ {
3749
+ "type": "array",
3750
+ "items": {
3751
+ "type": "string"
3752
+ }
3753
+ }
3754
+ ]
3755
+ }
3756
+ },
3656
3757
  "size": {
3657
3758
  "description": "expected artifact size in bytes",
3658
3759
  "oneOf": [
@@ -5334,7 +5435,7 @@
5334
5435
  "type": "string"
5335
5436
  },
5336
5437
  {
5337
- "description": "confirmation message before running this task with default value",
5438
+ "description": "confirmation message before running this task with optional default value and custom answer labels",
5338
5439
  "properties": {
5339
5440
  "message": {
5340
5441
  "description": "confirmation message before running this task",
@@ -5351,11 +5452,18 @@
5351
5452
  "false"
5352
5453
  ],
5353
5454
  "type": "string"
5455
+ },
5456
+ "yes": {
5457
+ "description": "custom label for the affirmative answer",
5458
+ "type": "string"
5459
+ },
5460
+ "no": {
5461
+ "description": "custom label for the negative answer",
5462
+ "type": "string"
5354
5463
  }
5355
5464
  },
5356
5465
  "required": [
5357
- "message",
5358
- "default"
5466
+ "message"
5359
5467
  ],
5360
5468
  "unevaluatedProperties": false,
5361
5469
  "type": "object"
@@ -5767,6 +5875,22 @@
5767
5875
  "type": "string"
5768
5876
  },
5769
5877
  "type": "array"
5878
+ },
5879
+ "secrets": {
5880
+ "description": "[experimental] Secret keys this task receives when it starts, e.g. [\"DEPLOY_KEY\"]. Dependencies do not inherit them. See `mise secrets ls`.",
5881
+ "oneOf": [
5882
+ {
5883
+ "type": "string",
5884
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
5885
+ },
5886
+ {
5887
+ "type": "array",
5888
+ "items": {
5889
+ "type": "string",
5890
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
5891
+ }
5892
+ }
5893
+ ]
5770
5894
  }
5771
5895
  },
5772
5896
  "type": "object"
@@ -5783,7 +5907,8 @@
5783
5907
  "interactive": false,
5784
5908
  "quiet": false,
5785
5909
  "raw": false,
5786
- "raw_args": false
5910
+ "raw_args": false,
5911
+ "secrets": false
5787
5912
  }
5788
5913
  }
5789
5914
  ],
@@ -6159,6 +6284,23 @@
6159
6284
  }
6160
6285
  ]
6161
6286
  },
6287
+ "secrets": {
6288
+ "description": "[experimental] Sources for mise secrets: values resolved only when mise starts a task or `mise x` command that was granted them. Project config only.",
6289
+ "type": "object",
6290
+ "properties": {
6291
+ "fnox": {
6292
+ "description": "Use fnox (fnox.toml discovered from this config's directory). https://mise.jdx.dev/environments/secrets/fnox.html",
6293
+ "type": "object",
6294
+ "additionalProperties": false,
6295
+ "properties": {
6296
+ "profile": {
6297
+ "type": "string",
6298
+ "description": "fnox profile (fnox -P); defaults to FNOX_PROFILE, then \"default\""
6299
+ }
6300
+ }
6301
+ }
6302
+ }
6303
+ },
6162
6304
  "redactions": {
6163
6305
  "description": "env or vars keys to redact from logs",
6164
6306
  "type": "array",
@@ -6465,6 +6607,10 @@
6465
6607
  "type": "string",
6466
6608
  "description": "comment prefix for edit marker lines; inferred from the file extension when omitted"
6467
6609
  },
6610
+ "merge": {
6611
+ "type": "boolean",
6612
+ "description": "edit entry: set the keys of source on a JSON, TOML, or YAML target and leave the target's other keys to the application that also writes it; the format comes from the target's extension"
6613
+ },
6468
6614
  "variants": {
6469
6615
  "type": "array",
6470
6616
  "description": "OS/profile variants: history streams for track mode, or optional destinations for deployment modes",
@@ -6501,6 +6647,44 @@
6501
6647
  }
6502
6648
  },
6503
6649
  "allOf": [
6650
+ {
6651
+ "if": {
6652
+ "required": [
6653
+ "merge"
6654
+ ],
6655
+ "properties": {
6656
+ "merge": {
6657
+ "const": true
6658
+ }
6659
+ }
6660
+ },
6661
+ "then": {
6662
+ "required": [
6663
+ "source"
6664
+ ],
6665
+ "properties": {
6666
+ "mode": false,
6667
+ "content": false,
6668
+ "permissions": false,
6669
+ "exclude": false,
6670
+ "include": false,
6671
+ "manifest": false,
6672
+ "autosave": false,
6673
+ "encrypt": false,
6674
+ "allow_plaintext": false,
6675
+ "variants": false,
6676
+ "enabled": false,
6677
+ "remove_empty": false,
6678
+ "relative": false,
6679
+ "dot_prefix": false,
6680
+ "group": false,
6681
+ "block": false,
6682
+ "line": false,
6683
+ "position": false,
6684
+ "comment": false
6685
+ }
6686
+ }
6687
+ },
6504
6688
  {
6505
6689
  "anyOf": [
6506
6690
  {
@@ -6831,6 +7015,80 @@
6831
7015
  ]
6832
7016
  }
6833
7017
  },
7018
+ "dotfile_groups": {
7019
+ "type": "object",
7020
+ "description": "named directory trees of dotfiles, applied with `mise dotfiles apply` or `mise bootstrap` while [bootstrap] dotfile_groups selects them (or is unset)",
7021
+ "propertyNames": {
7022
+ "pattern": "^[A-Za-z0-9_.-]+$"
7023
+ },
7024
+ "additionalProperties": {
7025
+ "type": "object",
7026
+ "additionalProperties": false,
7027
+ "required": [
7028
+ "root"
7029
+ ],
7030
+ "properties": {
7031
+ "root": {
7032
+ "type": "string",
7033
+ "description": "the directory tree the group deploys; a relative path resolves against dotfiles.root"
7034
+ },
7035
+ "target": {
7036
+ "type": "string",
7037
+ "description": "target directory, absolute or starting with ~/",
7038
+ "default": "~"
7039
+ },
7040
+ "mode": {
7041
+ "type": "string",
7042
+ "description": "how the tree is deployed",
7043
+ "enum": [
7044
+ "symlink-each",
7045
+ "copy",
7046
+ "symlink"
7047
+ ],
7048
+ "default": "symlink-each"
7049
+ },
7050
+ "exclude": {
7051
+ "type": "array",
7052
+ "description": "glob patterns of source paths to skip, as for [dotfiles] exclude",
7053
+ "items": {
7054
+ "type": "string"
7055
+ }
7056
+ },
7057
+ "dot_prefix": {
7058
+ "type": "boolean",
7059
+ "default": false,
7060
+ "description": "deploy each source path component named \"dot-<name>\" as \".<name>\", like GNU Stow's --dotfiles"
7061
+ },
7062
+ "manifest": {
7063
+ "type": "string",
7064
+ "description": "source manifest used to select managed files from the tree",
7065
+ "enum": [
7066
+ "git"
7067
+ ]
7068
+ },
7069
+ "relative": {
7070
+ "type": "boolean",
7071
+ "description": "link by a path relative to the link's directory; overrides the dotfiles.relative_symlinks setting (ignored on Windows)"
7072
+ },
7073
+ "entries": {
7074
+ "type": "object",
7075
+ "description": "whole-file entries for parts of the tree, keyed by target path inside the group's target and written like [dotfiles] entries; each is cut out of the walk. A missing source is found under the root at the entry's path inside the target, and a relative source starts at the root",
7076
+ "additionalProperties": {
7077
+ "oneOf": [
7078
+ {
7079
+ "type": "string",
7080
+ "description": "source path, relative to the group root"
7081
+ },
7082
+ {
7083
+ "type": "object",
7084
+ "description": "whole-file entry, as in [dotfiles]"
7085
+ }
7086
+ ]
7087
+ }
7088
+ }
7089
+ }
7090
+ }
7091
+ },
6834
7092
  "bootstrap": {
6835
7093
  "type": "object",
6836
7094
  "description": "machine-global bootstrapping (system packages, repos, macOS defaults, launchd agents, login shell)",
@@ -7005,6 +7263,14 @@
7005
7263
  "additionalProperties": false
7006
7264
  }
7007
7265
  },
7266
+ "dotfile_groups": {
7267
+ "type": "array",
7268
+ "description": "the dotfile groups this machine applies; when unset, every group applies. Entries without a group always apply, and a more local config's list replaces the others",
7269
+ "items": {
7270
+ "type": "string",
7271
+ "pattern": "^[A-Za-z0-9_.-]+$"
7272
+ }
7273
+ },
7008
7274
  "config_roots": {
7009
7275
  "deprecated": true,
7010
7276
  "type": "array",
@@ -7195,7 +7461,8 @@
7195
7461
  "builtin": {
7196
7462
  "type": "string",
7197
7463
  "enum": [
7198
- "history-watch"
7464
+ "history-watch",
7465
+ "tool-update"
7199
7466
  ],
7200
7467
  "description": "A mise-provided user service"
7201
7468
  },
@@ -7233,6 +7500,154 @@
7233
7500
  "additionalProperties": false
7234
7501
  }
7235
7502
  },
7503
+ "compose": {
7504
+ "type": "object",
7505
+ "description": "Docker Compose projects managed with `mise bootstrap compose`, keyed by project name. Text fields support Tera templates.",
7506
+ "additionalProperties": {
7507
+ "type": "object",
7508
+ "properties": {
7509
+ "project_dir": {
7510
+ "type": "string",
7511
+ "minLength": 1,
7512
+ "description": "absolute directory containing the Compose project"
7513
+ },
7514
+ "files": {
7515
+ "type": "array",
7516
+ "description": "Compose file paths relative to project_dir unless absolute",
7517
+ "items": {
7518
+ "type": "string"
7519
+ }
7520
+ },
7521
+ "env_files": {
7522
+ "type": "array",
7523
+ "description": "environment file paths relative to project_dir unless absolute",
7524
+ "items": {
7525
+ "type": "string"
7526
+ }
7527
+ },
7528
+ "project_name": {
7529
+ "type": "string",
7530
+ "description": "optional Compose project name"
7531
+ },
7532
+ "profiles": {
7533
+ "type": "array",
7534
+ "items": {
7535
+ "type": "string"
7536
+ }
7537
+ },
7538
+ "services": {
7539
+ "type": "array",
7540
+ "items": {
7541
+ "type": "string"
7542
+ }
7543
+ },
7544
+ "oneshot": {
7545
+ "type": "array",
7546
+ "items": {
7547
+ "type": "string"
7548
+ }
7549
+ },
7550
+ "state": {
7551
+ "type": "string",
7552
+ "enum": [
7553
+ "running",
7554
+ "stopped",
7555
+ "absent"
7556
+ ],
7557
+ "default": "running"
7558
+ },
7559
+ "pull": {
7560
+ "type": "string",
7561
+ "enum": [
7562
+ "always",
7563
+ "missing",
7564
+ "never"
7565
+ ],
7566
+ "default": "missing"
7567
+ },
7568
+ "build": {
7569
+ "type": "string",
7570
+ "enum": [
7571
+ "auto",
7572
+ "always",
7573
+ "never"
7574
+ ],
7575
+ "default": "auto"
7576
+ },
7577
+ "recreate": {
7578
+ "type": "string",
7579
+ "enum": [
7580
+ "auto",
7581
+ "always",
7582
+ "never"
7583
+ ],
7584
+ "default": "auto"
7585
+ },
7586
+ "wait": {
7587
+ "type": "boolean",
7588
+ "default": true
7589
+ },
7590
+ "wait_timeout": {
7591
+ "type": "integer",
7592
+ "minimum": 0,
7593
+ "description": "wait timeout in seconds"
7594
+ },
7595
+ "timeout": {
7596
+ "type": "integer",
7597
+ "minimum": 0,
7598
+ "description": "Compose shutdown timeout in seconds"
7599
+ },
7600
+ "remove_orphans": {
7601
+ "type": "boolean",
7602
+ "default": true
7603
+ },
7604
+ "renew_anonymous_volumes": {
7605
+ "type": "boolean",
7606
+ "default": false
7607
+ },
7608
+ "down_volumes": {
7609
+ "type": "boolean",
7610
+ "default": false
7611
+ },
7612
+ "down_images": {
7613
+ "type": "string",
7614
+ "enum": [
7615
+ "local",
7616
+ "all"
7617
+ ]
7618
+ },
7619
+ "sudo": {
7620
+ "type": "boolean",
7621
+ "default": false
7622
+ },
7623
+ "command": {
7624
+ "type": "array",
7625
+ "description": "standalone Compose command",
7626
+ "items": {
7627
+ "type": "string"
7628
+ }
7629
+ },
7630
+ "engine_command": {
7631
+ "type": "array",
7632
+ "description": "container engine command",
7633
+ "items": {
7634
+ "type": "string"
7635
+ }
7636
+ },
7637
+ "depends_on": {
7638
+ "type": "array",
7639
+ "description": "bootstrap resource dependencies",
7640
+ "items": {
7641
+ "type": "string"
7642
+ }
7643
+ }
7644
+ },
7645
+ "required": [
7646
+ "project_dir"
7647
+ ],
7648
+ "additionalProperties": false
7649
+ }
7650
+ },
7236
7651
  "plugins": {
7237
7652
  "type": "object",
7238
7653
  "description": "package manager plugins to install with `mise bootstrap plugins apply`, keyed by manager name",