@faable/faable 1.5.17-next.20 → 1.5.17-next.21

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.
@@ -28,6 +28,21 @@ const link = {
28
28
  },
29
29
  handler: async (args) => {
30
30
  const workdir = args.workdir || process.cwd();
31
+ const config = Configuration.instance();
32
+ if (config.app_slug) {
33
+ log.info(`This repository is already linked to app: ${config.app_slug}`);
34
+ const { relink } = await prompts({
35
+ type: "toggle",
36
+ name: "relink",
37
+ message: "Do you want to link it to a different app?",
38
+ initial: false,
39
+ active: "yes",
40
+ inactive: "no",
41
+ });
42
+ if (!relink) {
43
+ return;
44
+ }
45
+ }
31
46
  const { api } = await context();
32
47
  log.info("Checking local git repository...");
33
48
  const gitUrl = await getGitRemoteUrl(workdir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "1.5.17-next.20",
3
+ "version": "1.5.17-next.21",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",