Skip to content

Commit

Permalink
feat(nx-internal): add config file option
Browse files Browse the repository at this point in the history
  • Loading branch information
johnitvn committed Nov 24, 2024
1 parent 5872246 commit 7d7356c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/nx-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"@swc/helpers": "~0.5.11",
"@ebizbase/nx-devkit": "1.0.0",
"@nx/devkit": "20.1.3",
"@nx/devkit": "^20.1.3",
"semver": "^7.6.3"
},
"devDependencies": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const buildExecutor: PromiseExecutor<BuildExecutorSchema> = async (options, cont

const workspaceFolderArgs = [
`--workspace-folder=${join(projectUtils.getProjectRoot(), options.workspaceFolder ?? '.')}`,
`--config=${join(projectUtils.getProjectRoot(), options.configFile ?? 'devcontainer.json')}`,
];
options.tags = (options.tags ?? []).map((tag) =>
tag
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export interface BuildExecutorSchema {
workspaceFolder?: string;
configFile?: string;
tags: Array<string>;
push: boolean;
registries: Array<string>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"default": ".",
"description": "The workspace folder to build the image (The parrent directory contain .devcontainer/devcontainer.json)"
},
"configFile": {
"type": "string",
"default": "devcontainer.json",
"description": "The path to the devcontainer.json file"
},
"registries": {
"type": "array",
"items": {
Expand Down

0 comments on commit 7d7356c

Please sign in to comment.