Skip to content

Commit 36c24f3

Browse files
committed
feat: Bumped library version. Added prevent import to action and xcode-tools. Fixed aws-profile for imports
1 parent 3ed5090 commit 36c24f3

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ajv": "^8.12.0",
2424
"ajv-formats": "^2.1.1",
2525
"semver": "^7.6.0",
26-
"codify-plugin-lib": "1.0.137",
26+
"codify-plugin-lib": "1.0.141",
2727
"codify-schemas": "1.0.63",
2828
"chalk": "^5.3.0",
2929
"debug": "^4.3.4",

src/resources/aws-cli/profile/aws-profile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ export class AwsProfileResource extends Resource<AwsProfileConfig> {
8484
profile,
8585
};
8686

87-
if (parameters.region) {
87+
if (parameters.region !== undefined) {
8888
result.region = await this.getAwsConfigureValueOrNull('region', profile);
8989
}
9090

91-
if (parameters.output) {
91+
if (parameters.output !== undefined) {
9292
result.output = await this.getAwsConfigureValueOrNull('output', profile);
9393
}
9494

src/resources/aws-cli/profile/csv-credentials-transformation.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ export const CSVCredentialsTransformation: InputTransformation = {
3838
},
3939

4040
from(output: Partial<AwsProfileConfig>): Partial<AwsProfileConfig> {
41-
delete output.awsAccessKeyId
42-
delete output.awsSecretAccessKey
43-
41+
if (output.csvCredentials) {
42+
delete output.awsAccessKeyId;
43+
delete output.awsSecretAccessKey;
44+
}
45+
4446
return output;
4547
}
4648
};

src/resources/scripting/action.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export class ActionResource extends Resource<ActionConfig> {
1818
schema,
1919
parameterSettings: {
2020
cwd: { type: 'directory' },
21+
},
22+
importAndDestroy: {
23+
preventImport: true,
2124
}
2225
}
2326
}

src/resources/xcode-tools/xcode-tools.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export class XcodeToolsResource extends Resource<XCodeToolsConfig> {
1111
getSettings(): ResourceSettings<XCodeToolsConfig> {
1212
return {
1313
id: 'xcode-tools',
14+
importAndDestroy: {
15+
preventImport: true,
16+
}
1417
}
1518
}
1619

0 commit comments

Comments
 (0)