@notation/cli 0.6.1 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -78,7 +78,18 @@ import { deployApp } from "@notation/core";
78
78
  async function deploy(entryPoint) {
79
79
  await compile(entryPoint);
80
80
  console.log(`Deploying ${entryPoint}`);
81
- await deployApp(entryPoint);
81
+ try {
82
+ await deployApp(entryPoint);
83
+ } catch (err) {
84
+ if (err.name === "CredentialsProviderError") {
85
+ console.log(
86
+ "\nAWS credentials not found.",
87
+ "\n\nEnsure you have a default profile set up in ~/.aws/credentials.",
88
+ "\n\nIf using another profile run AWS_PROFILE=otherProfile notation deploy.\n"
89
+ );
90
+ process.exit(1);
91
+ }
92
+ }
82
93
  }
83
94
 
84
95
  // src/destroy.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@notation/cli",
4
- "version": "0.6.1",
4
+ "version": "0.7.0",
5
5
  "files": [
6
6
  "dist",
7
7
  "templates"
@@ -14,8 +14,8 @@
14
14
  "commander": "^11.0.0",
15
15
  "esbuild": "^0.19.3",
16
16
  "glob": "^10.3.10",
17
- "@notation/core": "0.5.0",
18
- "@notation/esbuild-plugins": "0.4.1",
17
+ "@notation/esbuild-plugins": "0.5.0",
18
+ "@notation/core": "0.6.0",
19
19
  "@notation/dashboard": "0.2.0"
20
20
  },
21
21
  "devDependencies": {