cloudhop 0.0.1 → 0.1.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/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "cloudhop",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "Hop between cloud accounts, roles and regions with one command. Automatic login, no copied credentials.",
5
5
  "keywords": [
6
6
  "cli",
7
7
  "aws",
8
8
  "sso",
9
9
  "iam-identity-center",
10
+ "aws-login",
10
11
  "multi-account",
11
12
  "profiles",
12
13
  "credentials",
@@ -17,20 +18,32 @@
17
18
  "homepage": "https://github.com/dayepesb/cloudhop#readme",
18
19
  "repository": {
19
20
  "type": "git",
20
- "url": "git+https://github.com/dayepesb/cloudhop.git"
21
+ "url": "git+https://github.com/dayepesb/cloudhop.git",
22
+ "directory": "packages/cli"
21
23
  },
22
24
  "bugs": {
23
25
  "url": "https://github.com/dayepesb/cloudhop/issues"
24
26
  },
25
27
  "type": "module",
26
28
  "bin": {
27
- "cloudhop": "bin/cloudhop.js",
28
- "hop": "bin/cloudhop.js"
29
+ "cloudhop": "dist/cli.js",
30
+ "hop": "dist/cli.js"
29
31
  },
30
32
  "files": [
31
- "bin"
33
+ "dist"
32
34
  ],
33
35
  "engines": {
34
36
  "node": ">=20"
37
+ },
38
+ "devDependencies": {
39
+ "@clack/prompts": "^1.8.1",
40
+ "@cloudhop/core": "0.0.0",
41
+ "@cloudhop/adapters-node": "0.0.0",
42
+ "@cloudhop/ui": "0.0.0",
43
+ "@cloudhop/provider-aws": "0.0.0"
44
+ },
45
+ "scripts": {
46
+ "build": "tsup",
47
+ "dev": "tsup --watch"
35
48
  }
36
- }
49
+ }
package/bin/cloudhop.js DELETED
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env node
2
- import { readFileSync } from 'node:fs';
3
-
4
- const { version } = JSON.parse(
5
- readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
6
- );
7
-
8
- const arg = process.argv[2];
9
-
10
- if (arg === '--version' || arg === '-v') {
11
- console.log(version);
12
- process.exit(0);
13
- }
14
-
15
- console.log(`cloudhop v${version}
16
-
17
- Hop between cloud accounts, roles and regions with one command.
18
-
19
- This is an early preview: the CLI is under active development.
20
- Follow progress at https://github.com/dayepesb/cloudhop
21
-
22
- Usage (coming soon):
23
- cloudhop add Add an AWS SSO portal or personal account
24
- cloudhop <alias> <args...> Run the aws CLI as <alias>
25
- hop <alias> <args...> Short alias for cloudhop
26
- `);