Skip to content

Commit 6cf598d

Browse files
feat: update terraform providers and limit file writes on renames
1 parent 8731728 commit 6cf598d

File tree

5 files changed

+60
-47
lines changed

5 files changed

+60
-47
lines changed

infrastructure/local-dev/auth0-dev/.terraform.lock.hcl

Lines changed: 30 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/local-dev/auth0-dev/auth0-resources.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ resource "auth0_resource_server" "backend_api_app" {
5757
resource "auth0_resource_server_scopes" "backend_api_app_scopes" {
5858
resource_server_identifier = auth0_resource_server.backend_api_app.identifier
5959

60-
6160
scopes {
6261
name = "read:own"
6362
description = "Read own records"
@@ -86,8 +85,6 @@ resource "auth0_resource_server_scopes" "backend_api_app_scopes" {
8685
resource "auth0_role" "super_user_role" {
8786
name = "SuperUserDeveloper"
8887
description = "This role is able to do everything"
89-
90-
9188
}
9289

9390
resource "auth0_role_permissions" "backend_api_app_role_permissions" {
@@ -131,6 +128,7 @@ resource "auth0_user" "dev_test_basic_user" {
131128
email_verified = true
132129
given_name = "Basic"
133130
family_name = "User"
131+
134132
}
135133

136134
resource "auth0_user" "dev_test_no_email_verified_user" {
@@ -141,6 +139,7 @@ resource "auth0_user" "dev_test_no_email_verified_user" {
141139
email_verified = false
142140
given_name = "NoEmail"
143141
family_name = "Verified"
142+
144143
}
145144

146145
resource "auth0_user" "dev_test_user" {
@@ -185,7 +184,7 @@ output "app_auth0_dev_management_client_secret" {
185184
sensitive = true
186185
}
187186
output "auth0_client_secret" {
188-
value = auth0_client.frontend_spa_app.client_secret
187+
value = auth0_client_credentials.fe_spa_client_credentials.client_secret
189188
sensitive = true
190189
}
191190
output "test_user_username" {

infrastructure/production/auth0-prod/.terraform.lock.hcl

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/production/auth0-prod/auth0-resources.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@ output "app_auth0_prod_management_client_secret" {
130130
sensitive = true
131131
}
132132
output "auth0_client_secret" {
133-
value = auth0_client.frontend_spa_app.client_secret
133+
value = auth0_client_credentials.fe_spa_client_credentials.client_secret
134134
sensitive = true
135135
}

libs/project-setup/setup-helpers.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ const searchFilesForTextAndReplace = async (
8080
dot: true,
8181
gitignore: true,
8282
ignore: [
83+
"*.png",
84+
"*.jpg",
85+
"*.jpeg",
86+
"*.gif",
87+
"*.svg",
88+
"*.ico",
8389
".git/**/*",
8490
"node_modules/**/*",
8591
"dist/**/*",
@@ -91,7 +97,11 @@ const searchFilesForTextAndReplace = async (
9197
const fileContents = fs.readFileSync(file, "utf8");
9298
for (const { search, replace } of replacePatterns) {
9399
const regex = new RegExp(search, "g");
100+
if (!regex.test(fileContents)) {
101+
continue;
102+
}
94103
const newFileContents = fileContents.replace(regex, replace);
104+
console.log(`replacing ${search} with ${replace} in ${file}`);
95105
fs.writeFileSync(file, newFileContents);
96106
}
97107
});

0 commit comments

Comments
 (0)