@codedrifters/configulator 0.0.312 → 0.0.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +14 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.js +8 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -9959,6 +9959,20 @@ interface MonorepoProjectOptions extends Omit<TypeScriptProjectOptions$1, "defau
|
|
|
9959
9959
|
* Optionsal options for turborepo config
|
|
9960
9960
|
*/
|
|
9961
9961
|
turboOptions?: TurboRepoOptions;
|
|
9962
|
+
/**
|
|
9963
|
+
* Steps to run in `build.yml` after the projen build, replacing the default
|
|
9964
|
+
* "Build Sub Projects" step that runs `pnpm exec projen build:all`.
|
|
9965
|
+
*
|
|
9966
|
+
* When omitted, behavior is unchanged: a single step runs the root
|
|
9967
|
+
* `build:all` task. Useful for repos whose CI wants a cheaper PR-time
|
|
9968
|
+
* check than the full turbo build (e.g. an Astro `sync` + `check`).
|
|
9969
|
+
*
|
|
9970
|
+
* The follow-on `Upload Turbo runs` artifact step is always emitted and
|
|
9971
|
+
* is a no-op when `.turbo/runs` is absent.
|
|
9972
|
+
*
|
|
9973
|
+
* @default - one step: `pnpm exec projen build:all`
|
|
9974
|
+
*/
|
|
9975
|
+
readonly ciBuildSteps?: Array<JobStep>;
|
|
9962
9976
|
/**
|
|
9963
9977
|
* Enable the reset task that deletes all build artifacts.
|
|
9964
9978
|
*
|
package/lib/index.d.ts
CHANGED
|
@@ -10008,6 +10008,20 @@ interface MonorepoProjectOptions extends Omit<TypeScriptProjectOptions$1, "defau
|
|
|
10008
10008
|
* Optionsal options for turborepo config
|
|
10009
10009
|
*/
|
|
10010
10010
|
turboOptions?: TurboRepoOptions;
|
|
10011
|
+
/**
|
|
10012
|
+
* Steps to run in `build.yml` after the projen build, replacing the default
|
|
10013
|
+
* "Build Sub Projects" step that runs `pnpm exec projen build:all`.
|
|
10014
|
+
*
|
|
10015
|
+
* When omitted, behavior is unchanged: a single step runs the root
|
|
10016
|
+
* `build:all` task. Useful for repos whose CI wants a cheaper PR-time
|
|
10017
|
+
* check than the full turbo build (e.g. an Astro `sync` + `check`).
|
|
10018
|
+
*
|
|
10019
|
+
* The follow-on `Upload Turbo runs` artifact step is always emitted and
|
|
10020
|
+
* is a no-op when `.turbo/runs` is absent.
|
|
10021
|
+
*
|
|
10022
|
+
* @default - one step: `pnpm exec projen build:all`
|
|
10023
|
+
*/
|
|
10024
|
+
readonly ciBuildSteps?: Array<JobStep>;
|
|
10011
10025
|
/**
|
|
10012
10026
|
* Enable the reset task that deletes all build artifacts.
|
|
10013
10027
|
*
|
package/lib/index.js
CHANGED
|
@@ -34121,11 +34121,15 @@ var MonorepoProject = class extends import_typescript3.TypeScriptAppProject {
|
|
|
34121
34121
|
new PnpmWorkspace(this, options.pnpmOptions?.pnpmWorkspaceOptions);
|
|
34122
34122
|
if (options.turbo) {
|
|
34123
34123
|
new TurboRepo(this, options.turboOptions);
|
|
34124
|
+
const defaultBuildSubProjectsStep = {
|
|
34125
|
+
name: "Build Sub Projects",
|
|
34126
|
+
run: `pnpm exec projen ${ROOT_CI_TASK_NAME}`
|
|
34127
|
+
};
|
|
34128
|
+
const buildSubProjectsSteps = options.ciBuildSteps ?? [
|
|
34129
|
+
defaultBuildSubProjectsStep
|
|
34130
|
+
];
|
|
34124
34131
|
this.buildWorkflow?.addPostBuildSteps(
|
|
34125
|
-
|
|
34126
|
-
name: "Build Sub Projects",
|
|
34127
|
-
run: `pnpm exec projen ${ROOT_CI_TASK_NAME}`
|
|
34128
|
-
},
|
|
34132
|
+
...buildSubProjectsSteps,
|
|
34129
34133
|
import_github4.WorkflowSteps.uploadArtifact({
|
|
34130
34134
|
name: "Upload Turbo runs",
|
|
34131
34135
|
if: "always()",
|