@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.
|
@@ -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 =
|
|
22
|
+
homepage_url = local.homepage_url
|
|
14
23
|
topics = try(local.package_json.keywords, [])
|
|
15
24
|
|
|
16
25
|
allow_merge_commit = false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "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
|
}
|