Skip to content

Commit

Permalink
fix(workspace-tools): Ensure dev is used as default profile
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Aug 27, 2024
1 parent 52ffcec commit f9a49bc
Show file tree
Hide file tree
Showing 9 changed files with 284 additions and 76 deletions.
338 changes: 270 additions & 68 deletions packages/workspace-tools/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default withRunExecutor<CargoBuildExecutorSchema>(
applyDefaultOptions: (options: CargoBuildExecutorSchema) => {
options.outputPath ??= "dist/target/{projectRoot}";
options.toolchain ??= "stable";
options.profile ??= "debug";
options.profile ??= "dev";
options.release ??= false;

return options as CargoBuildExecutorSchema;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"profile": {
"type": "string",
"default": "debug"
"default": "dev"
},
"outputPath": {
"type": "string",
Expand Down Expand Up @@ -48,6 +48,9 @@
"description": "Build all binary targets",
"alias": "all-features"
},
"target": {
"type": "string"
},
"lib": {
"type": "boolean",
"description": "Build the package's library",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default withRunExecutor<CargoCheckExecutorSchema>(
hooks: {
applyDefaultOptions: (options: CargoCheckExecutorSchema) => {
options.toolchain ??= "stable";
options.profile ??= "debug";
options.profile ??= "dev";
options.release ??= false;

return options as CargoCheckExecutorSchema;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"profile": {
"type": "string",
"default": "debug"
"default": "dev"
},
"toolchain": {
"type": "string",
Expand All @@ -40,6 +40,9 @@
"description": "Build all binary targets",
"alias": "all-features"
},
"target": {
"type": "string"
},
"lib": {
"type": "boolean",
"description": "Build the package's library",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default withRunExecutor<CargoClippyExecutorSchema>(
hooks: {
applyDefaultOptions: (options: CargoClippyExecutorSchema) => {
options.toolchain ??= "stable";
options.profile ??= "debug";
options.profile ??= "dev";
options.release ??= false;
options.fix ??= false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"profile": {
"type": "string",
"default": "debug"
"default": "dev"
},
"toolchain": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default withRunExecutor<CargoDocExecutorSchema>(
applyDefaultOptions: (options: CargoDocExecutorSchema) => {
options.outputPath ??= "dist/docs/{projectRoot}";
options.toolchain ??= "stable";
options.release ??= true;
options.release ??= options.profile ? false : true;
options.allFeatures ??= true;
options.lib ??= true;
options.bins ??= true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default withRunExecutor<CargoFormatExecutorSchema>(
applyDefaultOptions: (options: CargoFormatExecutorSchema) => {
options.outputPath ??= "dist/target/{projectRoot}";
options.toolchain ??= "stable";
options.profile ??= "debug";
options.profile ??= "dev";
options.release ??= false;

return options as CargoFormatExecutorSchema;
Expand Down

0 comments on commit f9a49bc

Please sign in to comment.