Skip to content

Commit 7d7356c

Browse files
committed
feat(nx-internal): add config file option
1 parent 5872246 commit 7d7356c

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

tools/nx-internal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dependencies": {
99
"@swc/helpers": "~0.5.11",
1010
"@ebizbase/nx-devkit": "1.0.0",
11-
"@nx/devkit": "20.1.3",
11+
"@nx/devkit": "^20.1.3",
1212
"semver": "^7.6.3"
1313
},
1414
"devDependencies": {},

tools/nx-internal/src/executors/build-devcontainer-image/executor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const buildExecutor: PromiseExecutor<BuildExecutorSchema> = async (options, cont
6060

6161
const workspaceFolderArgs = [
6262
`--workspace-folder=${join(projectUtils.getProjectRoot(), options.workspaceFolder ?? '.')}`,
63+
`--config=${join(projectUtils.getProjectRoot(), options.configFile ?? 'devcontainer.json')}`,
6364
];
6465
options.tags = (options.tags ?? []).map((tag) =>
6566
tag

tools/nx-internal/src/executors/build-devcontainer-image/schema.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export interface BuildExecutorSchema {
22
workspaceFolder?: string;
3+
configFile?: string;
34
tags: Array<string>;
45
push: boolean;
56
registries: Array<string>;

tools/nx-internal/src/executors/build-devcontainer-image/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"default": ".",
1111
"description": "The workspace folder to build the image (The parrent directory contain .devcontainer/devcontainer.json)"
1212
},
13+
"configFile": {
14+
"type": "string",
15+
"default": "devcontainer.json",
16+
"description": "The path to the devcontainer.json file"
17+
},
1318
"registries": {
1419
"type": "array",
1520
"items": {

0 commit comments

Comments
 (0)