az2aws 1.0.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/lib/paths.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.paths = void 0;
7
+ const os_1 = __importDefault(require("os"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const awsDir = path_1.default.join(os_1.default.homedir(), ".aws");
10
+ exports.paths = {
11
+ awsDir,
12
+ config: process.env.AWS_CONFIG_FILE || path_1.default.join(awsDir, "config"),
13
+ credentials: process.env.AWS_SHARED_CREDENTIALS_FILE || path_1.default.join(awsDir, "credentials"),
14
+ chromium: path_1.default.join(awsDir, "chromium"),
15
+ chromeBin: process.env.BROWSER_CHROME_BIN,
16
+ userDataDir: process.env.BROWSER_USER_DATA_DIR,
17
+ profileDir: process.env.BROWSER_PROFILE_DIR,
18
+ };
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "az2aws",
3
+ "version": "1.0.0",
4
+ "description": "Use Azure AD SSO to log into the AWS CLI.",
5
+ "main": "index.js",
6
+ "author": {
7
+ "name": "az2aws devs",
8
+ "url": "https://github.com/az2aws"
9
+ },
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/az2aws/az2aws.git"
14
+ },
15
+ "bugs": "https://github.com/az2aws/az2aws/issues",
16
+ "engines": {
17
+ "node": ">=22.0"
18
+ },
19
+ "bin": {
20
+ "az2aws": "lib/index.js"
21
+ },
22
+ "scripts": {
23
+ "start": "ts-node-dev src/index.ts",
24
+ "build": "tsc",
25
+ "watch": "tsc -w",
26
+ "eslint": "eslint . --ext .ts",
27
+ "prettier:write": "prettier --write \"src/**/*.{ts,json}\"",
28
+ "prettier:check": "prettier --check \"src/**/*.ts\"",
29
+ "test": "yarn eslint && yarn prettier:check"
30
+ },
31
+ "dependencies": {
32
+ "@aws-sdk/client-sts": "^3.473.0",
33
+ "@smithy/node-http-handler": "^2.5.0",
34
+ "bluebird": "^3.7.2",
35
+ "cheerio": "^1.0.0-rc.10",
36
+ "commander": "^9.5.0",
37
+ "debug": "^4.3.1",
38
+ "ini": "^3.0.1",
39
+ "inquirer": "^8.2.6",
40
+ "lodash": "^4.17.21",
41
+ "mkdirp": "^1.0.4",
42
+ "proxy-agent": "^6.4.0",
43
+ "puppeteer": "^24.34.0",
44
+ "uuid": "^8.3.2"
45
+ },
46
+ "devDependencies": {
47
+ "@types/bluebird": "^3.5.42",
48
+ "@types/cheerio": "^0.22.35",
49
+ "@types/debug": "^4.1.12",
50
+ "@types/ini": "^1.3.34",
51
+ "@types/inquirer": "^8.2.10",
52
+ "@types/lodash": "^4.17.0",
53
+ "@types/mkdirp": "^1.0.2",
54
+ "@types/node": "^20.11.30",
55
+ "@types/uuid": "^8.3.4",
56
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
57
+ "@typescript-eslint/parser": "^6.21.0",
58
+ "eslint": "^8.57.0",
59
+ "eslint-config-prettier": "^8.10.0",
60
+ "prettier": "^2.8.8",
61
+ "ts-node-dev": "^1.1.8",
62
+ "typescript": "^5.4.3"
63
+ }
64
+ }