@adamhl8/configs 0.36.0 → 0.37.0

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.
@@ -19,9 +19,8 @@ _prepare:
19
19
  bump-deps: _bump-deps
20
20
  _bump-deps:
21
21
  nub update -L
22
- rm -f lock.yaml
22
+ rm -f nub.lock
23
23
  nub i --no-frozen-lockfile
24
- oxfmt lock.yaml
25
24
 
26
25
  tofu-check: _tofu-check
27
26
  _tofu-check:
@@ -2,15 +2,24 @@ data "local_file" "package_json" {
2
2
  filename = "${path.root}/package.json"
3
3
  }
4
4
 
5
+ data "github_user" "current" {
6
+ username = ""
7
+ }
8
+
5
9
  locals {
6
10
  package_json = jsondecode(data.local_file.package_json.content)
11
+ repo_url = "github.com/${data.github_user.current.login}/${var.repo_name}"
12
+ # a homepage pointing at the repo itself is redundant
13
+ homepage_url = try(strcontains(local.package_json.homepage, local.repo_url) ? null : local.package_json.homepage, null)
7
14
  }
8
15
 
16
+
17
+
9
18
  resource "github_repository" "current" {
10
19
  name = var.repo_name
11
20
  description = local.package_json.description
12
21
  visibility = var.repo_settings.visibility
13
- homepage_url = var.repo_settings.homepage_url
22
+ homepage_url = local.homepage_url
14
23
  topics = try(local.package_json.keywords, [])
15
24
 
16
25
  allow_merge_commit = false
@@ -6,8 +6,7 @@ variable "repo_name" {
6
6
  variable "repo_settings" {
7
7
  description = "The GitHub repository settings"
8
8
  type = object({
9
- visibility = string
10
- homepage_url = optional(string, null)
9
+ visibility = string
11
10
  })
12
11
  }
13
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamhl8/configs",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "My shared configs for TS projects",
5
5
  "homepage": "https://github.com/adamhl8/configs",
6
6
  "bugs": {
@@ -121,5 +121,12 @@
121
121
  "vitest": {
122
122
  "optional": true
123
123
  }
124
+ },
125
+ "devEngines": {
126
+ "packageManager": {
127
+ "name": "nub",
128
+ "version": "^0.4.4",
129
+ "onFail": "warn"
130
+ }
124
131
  }
125
132
  }