projen 0.98.6 → 0.98.8
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/.jsii +345 -173
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/internal.d.ts +1 -0
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/awscdk/private/feature-flags-v2.const.d.ts +2 -1
- package/lib/awscdk/private/feature-flags-v2.const.js +3 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome-config.d.ts +1 -1
- package/lib/javascript/biome/biome-config.js +1 -1
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +16 -17
- package/lib/javascript/node-project.d.ts +64 -0
- package/lib/javascript/node-project.js +135 -26
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.d.ts +25 -1
- package/lib/javascript/upgrade-dependencies.js +113 -39
- package/lib/javascript/util.d.ts +13 -0
- package/lib/javascript/util.js +24 -1
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.d.ts +10 -2
- package/lib/release/release.js +16 -4
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/package.json +7 -6
|
@@ -11,6 +11,35 @@ import { IgnoreFile, IgnoreFileOptions } from "../ignore-file";
|
|
|
11
11
|
import { NpmConfig, Prettier, PrettierOptions, UpgradeDependencies, UpgradeDependenciesOptions } from "../javascript";
|
|
12
12
|
import { Publisher, Release, ReleaseProjectOptions } from "../release";
|
|
13
13
|
import { Task } from "../task";
|
|
14
|
+
/**
|
|
15
|
+
* Options for security audit configuration.
|
|
16
|
+
*/
|
|
17
|
+
export interface AuditOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Minimum vulnerability level to check for during audit.
|
|
20
|
+
* @default "high"
|
|
21
|
+
*/
|
|
22
|
+
readonly level?: "low" | "moderate" | "high" | "critical";
|
|
23
|
+
/**
|
|
24
|
+
* Only audit production dependencies.
|
|
25
|
+
*
|
|
26
|
+
* When false, both production and development dependencies are audited.
|
|
27
|
+
* This is recommended as build dependencies can also contain security vulnerabilities.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
readonly prodOnly?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* When to run the audit task.
|
|
34
|
+
*
|
|
35
|
+
* - "build": Run during every build (default)
|
|
36
|
+
* - "release": Only run during release workflow
|
|
37
|
+
* - "manual": Create the task but don't run it automatically
|
|
38
|
+
*
|
|
39
|
+
* @default "build"
|
|
40
|
+
*/
|
|
41
|
+
readonly runOn?: "build" | "release" | "manual";
|
|
42
|
+
}
|
|
14
43
|
export interface NodeProjectOptions extends GitHubProjectOptions, NodePackageOptions, ReleaseProjectOptions {
|
|
15
44
|
/**
|
|
16
45
|
* License copyright owner.
|
|
@@ -263,6 +292,21 @@ export interface NodeProjectOptions extends GitHubProjectOptions, NodePackageOpt
|
|
|
263
292
|
* @default - default options
|
|
264
293
|
*/
|
|
265
294
|
readonly biomeOptions?: BiomeOptions;
|
|
295
|
+
/**
|
|
296
|
+
* Run security audit on dependencies.
|
|
297
|
+
*
|
|
298
|
+
* When enabled, creates an "audit" task that checks for known security vulnerabilities
|
|
299
|
+
* in dependencies. By default, runs during every build and checks for "high" severity
|
|
300
|
+
* vulnerabilities or above in all dependencies (including dev dependencies).
|
|
301
|
+
*
|
|
302
|
+
* @default false
|
|
303
|
+
*/
|
|
304
|
+
readonly auditDeps?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Security audit options.
|
|
307
|
+
* @default - default options
|
|
308
|
+
*/
|
|
309
|
+
readonly auditDepsOptions?: AuditOptions;
|
|
266
310
|
}
|
|
267
311
|
/**
|
|
268
312
|
* Build workflow options for NodeProject
|
|
@@ -527,6 +571,26 @@ export declare class NodeProject extends GitHubProject {
|
|
|
527
571
|
* The job ID of the build workflow.
|
|
528
572
|
*/
|
|
529
573
|
get buildWorkflowJobId(): string | undefined;
|
|
574
|
+
/**
|
|
575
|
+
* Adds a security audit task.
|
|
576
|
+
*/
|
|
577
|
+
private addAuditTask;
|
|
578
|
+
/**
|
|
579
|
+
* Gets the appropriate audit command for the package manager.
|
|
580
|
+
*/
|
|
581
|
+
private getAuditCommand;
|
|
582
|
+
/**
|
|
583
|
+
* Gets the threshold value for yarn classic based on vulnerability level.
|
|
584
|
+
*/
|
|
585
|
+
private getYarnClassicThreshold;
|
|
586
|
+
/**
|
|
587
|
+
* Gets the audit level flag for the package manager.
|
|
588
|
+
*/
|
|
589
|
+
private getAuditLevelFlag;
|
|
590
|
+
/**
|
|
591
|
+
* Gets the production-only flag for the package manager.
|
|
592
|
+
*/
|
|
593
|
+
private getAuditProdFlag;
|
|
530
594
|
}
|
|
531
595
|
/**
|
|
532
596
|
* Options for `renderWorkflowSetup()`.
|