This repository has been archived by the owner on Dec 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backend): fix conflicting dev & deploy by running them in differe…
…nt contexts (#477)
- Loading branch information
1 parent
c1b27d5
commit 4ebdc90
Showing
59 changed files
with
656 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
import { z } from "zod"; | ||
import { globalOptsSchema } from "../../common.ts"; | ||
import { | ||
computeProjectCachePath, | ||
loadProjectConfigPath, | ||
PROJECT_MANIFEST_PATH, | ||
} from "../../../toolchain/project/mod.ts"; | ||
import { loadProjectConfigPath, PROJECT_MANIFEST_PATH } from "../../../toolchain/project/mod.ts"; | ||
import { dirname, resolve } from "@std/path"; | ||
import { runTask } from "../../task.ts"; | ||
import { backendDataDir } from "../../../toolchain/project/project.ts"; | ||
|
||
export const inputSchema = z.object({}).merge(globalOptsSchema); | ||
|
||
runTask({ | ||
inputSchema, | ||
async run(input) { | ||
// Don't load project since that requires acquiring a lock on the project | ||
inputSchema, | ||
async run(input) { | ||
// Don't load project since that requires acquiring a lock on the project | ||
|
||
const projectRoot = dirname(loadProjectConfigPath(input)); | ||
const cachePath = await computeProjectCachePath(projectRoot); | ||
const manifestPath = resolve(cachePath, PROJECT_MANIFEST_PATH); | ||
console.log(manifestPath); | ||
} | ||
}) | ||
const projectRoot = dirname(loadProjectConfigPath(input)); | ||
const dataDir = backendDataDir(); | ||
const manifestPath = resolve(dataDir, PROJECT_MANIFEST_PATH); | ||
console.log(manifestPath); | ||
}, | ||
}); |
24 changes: 10 additions & 14 deletions
24
packages/backend/cli/tasks/config/output_manifest_path.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
import { z } from "zod"; | ||
import { globalOptsSchema, initProject } from "../../common.ts"; | ||
import { OUTPUT_MANIFEST_PATH } from "../../../toolchain/project/mod.ts"; | ||
import { | ||
computeProjectCachePath, | ||
loadProjectConfigPath, | ||
} from "../../../toolchain/project/project.ts"; | ||
import { backendDataDir, loadProjectConfigPath } from "../../../toolchain/project/project.ts"; | ||
import { dirname, resolve } from "@std/path"; | ||
import { runTask } from "../../task.ts"; | ||
|
||
export const inputSchema = z.object({}).merge(globalOptsSchema); | ||
|
||
runTask({ | ||
inputSchema, | ||
async run(input) { | ||
// Don't load project since that requires acquiring a lock on the project | ||
inputSchema, | ||
async run(input) { | ||
// Don't load project since that requires acquiring a lock on the project | ||
|
||
const projectRoot = dirname(loadProjectConfigPath(input)); | ||
const cachePath = await computeProjectCachePath(projectRoot); | ||
const manifestPath = resolve(cachePath, OUTPUT_MANIFEST_PATH); | ||
console.log(manifestPath); | ||
|
||
} | ||
}) | ||
const projectRoot = dirname(loadProjectConfigPath(input)); | ||
const dataDir = backendDataDir(); | ||
const manifestPath = resolve(dataDir, OUTPUT_MANIFEST_PATH); | ||
console.log(manifestPath); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.