Skip to content

Commit

Permalink
Merge pull request #12 from me-marcel/feat/noticket-add-output-path-p…
Browse files Browse the repository at this point in the history
…arameter

feat: add output path parameter
  • Loading branch information
me-marcel committed Jul 1, 2022
2 parents a063e98 + 1f08cbc commit 54652d5
Show file tree
Hide file tree
Showing 4 changed files with 1,168 additions and 984 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nx-loopback-new",
"version": "0.0.7",
"version": "0.0.8",
"description": "Loopback 4 builder and schematics for Nx monorepos.",
"main": "dist/index.js",
"repository": "https://github.com/me-marcel/nx-loopback-new.git",
Expand Down
1 change: 1 addition & 0 deletions src/builders/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function spawnLb(options: LoopbackBuildBuilderOptions, context: BuilderContext)
return childProcess.spawnSync('npx', [
'lb-tsc',
'-p', `${options.tsConfig}`,
'--outDir', `${options.outputPath}`,
], {
cwd: path.resolve(context.workspaceRoot, options.appPath),
shell: true,
Expand Down
9 changes: 7 additions & 2 deletions src/builders/build/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"type": "object",
"required": [
"appPath",
"tsConfig"
"tsConfig",
"outputPath"
],
"properties": {
"appPath": {
"type": "string",
"description": "path to the application"
"description": "path to the application source"
},
"tsConfig": {
"type": "string",
Expand All @@ -18,6 +19,10 @@
"type": "boolean",
"description": "Clean out the build beforehand",
"default": false
},
"outputPath": {
"type": "string",
"description": "path to the application dist"
}
}
}
Loading

0 comments on commit 54652d5

Please sign in to comment.