@flowcore/cli-plugin-iam 1.2.2 → 1.3.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.
- package/.npmrc +1 -0
- package/CHANGELOG.md +20 -0
- package/README.md +5 -5
- package/dist/hooks/jit-preinstall.d.ts +3 -0
- package/dist/hooks/jit-preinstall.js +26 -0
- package/oclif.manifest.json +1 -1
- package/package.json +6 -4
package/.npmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@jsr:registry=https://npm.jsr.io
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.3.0](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.2.3...v1.3.0) (2024-10-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **configuration:** :rocket: added JIT plugin install hook ([14c918b](https://github.com/flowcore-io/cli-plugin-iam/commit/14c918b4de2c0daeaae224937de19f571ba92aae))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **configuration:** :rotating_light: fixed linting errors ([08fe8f1](https://github.com/flowcore-io/cli-plugin-iam/commit/08fe8f182661997a7e05b1a35aa272b98e7e6df7))
|
|
14
|
+
|
|
15
|
+
## [1.2.3](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.2.2...v1.2.3) (2024-10-23)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **configuration:** :rocket: moved back to using jsr ([e3c107c](https://github.com/flowcore-io/cli-plugin-iam/commit/e3c107cedec7962e72eb13333015af9f3525bfd1))
|
|
21
|
+
* include npmrc file in package ([1332d3e](https://github.com/flowcore-io/cli-plugin-iam/commit/1332d3e5b17024ed0a1e6e3cad2d5b8b8d2ee7dc))
|
|
22
|
+
|
|
3
23
|
## [1.2.2](https://github.com/flowcore-io/cli-plugin-iam/compare/v1.2.1...v1.2.2) (2024-10-22)
|
|
4
24
|
|
|
5
25
|
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @flowcore/cli-plugin-iam
|
|
|
18
18
|
$ iam COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ iam (--version)
|
|
21
|
-
@flowcore/cli-plugin-iam/1.
|
|
21
|
+
@flowcore/cli-plugin-iam/1.3.0 linux-x64 node-v20.18.0
|
|
22
22
|
$ iam --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ iam COMMAND
|
|
@@ -53,7 +53,7 @@ DESCRIPTION
|
|
|
53
53
|
Delete a policy
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
_See code: [src/commands/delete/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.
|
|
56
|
+
_See code: [src/commands/delete/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.3.0/src/commands/delete/policy.ts)_
|
|
57
57
|
|
|
58
58
|
## `iam delete role NAME`
|
|
59
59
|
|
|
@@ -76,7 +76,7 @@ DESCRIPTION
|
|
|
76
76
|
Delete a role
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
_See code: [src/commands/delete/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.
|
|
79
|
+
_See code: [src/commands/delete/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.3.0/src/commands/delete/role.ts)_
|
|
80
80
|
|
|
81
81
|
## `iam get policy [NAME]`
|
|
82
82
|
|
|
@@ -99,7 +99,7 @@ DESCRIPTION
|
|
|
99
99
|
Get a policy
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
_See code: [src/commands/get/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.
|
|
102
|
+
_See code: [src/commands/get/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.3.0/src/commands/get/policy.ts)_
|
|
103
103
|
|
|
104
104
|
## `iam get role [NAME]`
|
|
105
105
|
|
|
@@ -122,5 +122,5 @@ DESCRIPTION
|
|
|
122
122
|
Get a role
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
_See code: [src/commands/get/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.
|
|
125
|
+
_See code: [src/commands/get/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.3.0/src/commands/get/role.ts)_
|
|
126
126
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Errors } from "@oclif/core";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
const hook = async (opts) => {
|
|
5
|
+
try {
|
|
6
|
+
const npmrcPath = path.join(opts.config.dataDir, ".npmrc");
|
|
7
|
+
const jsrRegistry = "@jsr:registry=https://npm.jsr.io";
|
|
8
|
+
let npmrcContent = "";
|
|
9
|
+
try {
|
|
10
|
+
npmrcContent = fs.readFileSync(npmrcPath, "utf8");
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
fs.writeFileSync(npmrcPath, "", { flag: "wx" });
|
|
14
|
+
}
|
|
15
|
+
if (!npmrcContent.includes(jsrRegistry)) {
|
|
16
|
+
fs.appendFileSync(npmrcPath, `\n${jsrRegistry}\n`);
|
|
17
|
+
}
|
|
18
|
+
await opts.config.runCommand("plugins:install", [
|
|
19
|
+
`${opts.command.pluginName}@${opts.pluginVersion}`,
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
throw new Errors.CLIError(`Could not install ${opts.command.pluginName}`);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
export default hook;
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@oclif/core": "^4.0.21",
|
|
10
10
|
"@oclif/plugin-help": "^6",
|
|
11
11
|
"@oclif/plugin-plugins": "^5.4.7",
|
|
12
|
-
"@opentf/obj-diff": "
|
|
12
|
+
"@opentf/obj-diff": "npm:@jsr/opentf__obj-diff",
|
|
13
13
|
"add": "^2.0.6",
|
|
14
14
|
"dayjs": "^1.11.10",
|
|
15
15
|
"deepmerge": "^4.3.1",
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
"files": [
|
|
54
54
|
"/bin",
|
|
55
55
|
"/dist",
|
|
56
|
-
"/oclif.manifest.json"
|
|
56
|
+
"/oclif.manifest.json",
|
|
57
|
+
".npmrc"
|
|
57
58
|
],
|
|
58
59
|
"homepage": "https://github.com/flowcore-io/cli-plugin-iam",
|
|
59
60
|
"license": "MIT",
|
|
@@ -69,7 +70,8 @@
|
|
|
69
70
|
"@flowcore/cli-plugin-config"
|
|
70
71
|
],
|
|
71
72
|
"hooks": {
|
|
72
|
-
"register-api": "./dist/hooks/register-apply"
|
|
73
|
+
"register-api": "./dist/hooks/register-apply",
|
|
74
|
+
"jit_plugin_not_installed": "./dist/hooks/jit-preinstall"
|
|
73
75
|
},
|
|
74
76
|
"topicSeparator": " ",
|
|
75
77
|
"topics": {
|
|
@@ -90,7 +92,7 @@
|
|
|
90
92
|
"version": "oclif readme && git add README.md",
|
|
91
93
|
"update-schema": "rover graph introspect https://graph.api.flowcore.io/graphql -o schema.gql"
|
|
92
94
|
},
|
|
93
|
-
"version": "1.
|
|
95
|
+
"version": "1.3.0",
|
|
94
96
|
"bugs": "https://github.com/flowcore-io/cli-plugin-iam/issues",
|
|
95
97
|
"keywords": [
|
|
96
98
|
"oclif"
|