@cloud-copilot/cli 0.1.1

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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Optionally print a message and exit the process with the given exit code.
3
+ *
4
+ * @param exitCode the exit code to use
5
+ * @param message the message to print
6
+ */
7
+ export function exit(exitCode, message) {
8
+ if (message) {
9
+ if (exitCode === 0) {
10
+ console.log(message);
11
+ }
12
+ else {
13
+ console.error(message);
14
+ }
15
+ }
16
+ process.exit(exitCode);
17
+ }
18
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,IAAI,CAAC,QAAgB,EAAE,OAA2B;IAChE,IAAI,OAAO,EAAE,CAAC;QACZ,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QACtB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QACxB,CAAC;IACH,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;AACxB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@cloud-copilot/cli",
3
+ "version": "0.1.1",
4
+ "description": "A standardized library for CLI building TypeScript CLI applications",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/cloud-copilot/cli.git"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist/**/*"
17
+ ],
18
+ "types": "dist/cjs/index.d.ts",
19
+ "scripts": {
20
+ "build": "npx tsc -p tsconfig.cjs.json && npx tsc -p tsconfig.esm.json && ./postbuild.sh",
21
+ "clean": "rm -rf dist",
22
+ "test": "npx vitest --run --coverage",
23
+ "release": "npm install && npm run clean && npm run build && npm test && npm run format-check && npm publish",
24
+ "format": "npx prettier --write src/",
25
+ "format-check": "npx prettier --check src/"
26
+ },
27
+ "keywords": [
28
+ "AWS",
29
+ "IAM"
30
+ ],
31
+ "author": "David Kerber <dave@cloudcopilot.io>",
32
+ "license": "MIT",
33
+ "bugs": {
34
+ "url": "https://github.com/cloud-copilot/cli/issues"
35
+ },
36
+ "homepage": "https://github.com/cloud-copilot/cli#readme",
37
+ "devDependencies": {
38
+ "@cloud-copilot/prettier-config": "^0.1.0",
39
+ "@types/node": "^22.5.0",
40
+ "@vitest/coverage-v8": "^2.0.5",
41
+ "typescript": "^5.7.2",
42
+ "vitest": "^2.0.5"
43
+ },
44
+ "prettier": "@cloud-copilot/prettier-config"
45
+ }