@fjall/deploy-core 0.89.2 → 0.89.4

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.
@@ -15,20 +15,28 @@ export async function resolveOperation(target, workingDirectory) {
15
15
  // Check for organisation-level deployment
16
16
  const normalisedTarget = target.toLowerCase();
17
17
  if (ORGANISATION_TYPE_VALUES.has(normalisedTarget)) {
18
+ const orgPath = join(workingDirectory, "fjall", normalisedTarget);
19
+ if (!(await fileExists(orgPath))) {
20
+ return failure(new Error(`Organisation target "${target}" resolved to fjall/${normalisedTarget}/ but directory not found`));
21
+ }
18
22
  return success({
19
23
  kind: "organisation",
20
24
  type: normalisedTarget,
21
25
  target,
22
- path: workingDirectory
26
+ path: orgPath
23
27
  });
24
28
  }
25
29
  // Check for account-prefixed targets (e.g., "account-prod")
26
30
  if (normalisedTarget.startsWith("account")) {
31
+ const orgPath = join(workingDirectory, "fjall", ORGANISATION_TYPES.ACCOUNT);
32
+ if (!(await fileExists(orgPath))) {
33
+ return failure(new Error(`Organisation target "${target}" resolved to fjall/${ORGANISATION_TYPES.ACCOUNT}/ but directory not found`));
34
+ }
27
35
  return success({
28
36
  kind: "organisation",
29
37
  type: ORGANISATION_TYPES.ACCOUNT,
30
38
  target,
31
- path: workingDirectory
39
+ path: orgPath
32
40
  });
33
41
  }
34
42
  // Validate target before joining into filesystem path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjall/deploy-core",
3
- "version": "0.89.2",
3
+ "version": "0.89.4",
4
4
  "description": "Shared deployment engine for Fjall — used by CLI and webapp worker",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -11,6 +11,7 @@
11
11
  "scripts": {
12
12
  "clean": "rm -rf ./dist",
13
13
  "build": "npm run clean && tsc",
14
+ "watch": "npm run build && tsc --watch --preserveWatchOutput",
14
15
  "typecheck": "tsc --noEmit",
15
16
  "test": "vitest run",
16
17
  "test:watch": "vitest",
@@ -31,12 +32,12 @@
31
32
  "@aws-sdk/client-ram": "^3.1009.0",
32
33
  "@aws-sdk/client-sso-admin": "^3.1009.0",
33
34
  "@aws-sdk/client-sts": "^3.1009.0",
34
- "@fjall/generator": "^0.89.2",
35
- "@fjall/util": "^0.89.2",
35
+ "@fjall/generator": "^0.89.4",
36
+ "@fjall/util": "^0.89.4",
36
37
  "zod": "^4.3.6"
37
38
  },
38
39
  "devDependencies": {
39
40
  "vitest": "^3.2.3"
40
41
  },
41
- "gitHead": "5bb039ff669fbe96d656ae1467e9986cf4327e92"
42
+ "gitHead": "6b2b2d2082b8c07174f4091202cd5bd9862f5556"
42
43
  }