deployable-awscdk-app-ts 0.1.860 → 0.1.861

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 CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "constructs": "^10.6.0",
14
- "projen": "^0.101.6"
14
+ "projen": "^0.101.8"
15
15
  },
16
16
  "dependencyClosure": {
17
17
  "constructs": {
@@ -2047,6 +2047,6 @@
2047
2047
  "symbolId": "src/types:EnvironmentOptions"
2048
2048
  }
2049
2049
  },
2050
- "version": "0.1.860",
2051
- "fingerprint": "ifbW32PazGsx7tqaGRm3jz24CpHOzhpOIErTEMxJzqc="
2050
+ "version": "0.1.861",
2051
+ "fingerprint": "iJKmoyZP25tsGhdu16S2sKciaBKL8ILFOmtbwYbULdU="
2052
2052
  }
package/API.md CHANGED
@@ -1760,6 +1760,7 @@ const deployableAwsCdkTypeScriptAppOptions: DeployableAwsCdkTypeScriptAppOptions
1760
1760
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.vscode">vscode</a></code> | <code>boolean</code> | Enable VSCode integration. |
1761
1761
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.addPackageManagerToDevEngines">addPackageManagerToDevEngines</a></code> | <code>boolean</code> | Automatically add the resolved `packageManager` to `devEngines.packageManager` in `package.json`, setting `onFail` to `ignore`. |
1762
1762
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.allowLibraryDependencies">allowLibraryDependencies</a></code> | <code>boolean</code> | Allow the project to include `peerDependencies` and `bundledDependencies`. |
1763
+ | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.allowScripts">allowScripts</a></code> | <code>string[]</code> | List of dependency (package) names that are allowed to run lifecycle install scripts (`preinstall`, `install`, `postinstall`, `prepare`) during dependency installation. |
1763
1764
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorEmail">authorEmail</a></code> | <code>string</code> | Author's e-mail. |
1764
1765
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorName">authorName</a></code> | <code>string</code> | Author's name. |
1765
1766
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorOrganization">authorOrganization</a></code> | <code>boolean</code> | Is the author an organization. |
@@ -1792,6 +1793,7 @@ const deployableAwsCdkTypeScriptAppOptions: DeployableAwsCdkTypeScriptAppOptions
1792
1793
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.packageName">packageName</a></code> | <code>string</code> | The "name" in package.json. |
1793
1794
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.peerDependencyOptions">peerDependencyOptions</a></code> | <code>projen.javascript.PeerDependencyOptions</code> | Options for `peerDeps`. |
1794
1795
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.peerDeps">peerDeps</a></code> | <code>string[]</code> | Peer dependencies for this module. |
1796
+ | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.pnpmOptions">pnpmOptions</a></code> | <code>projen.javascript.PnpmOptions</code> | Options for pnpm. |
1795
1797
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.pnpmVersion">pnpmVersion</a></code> | <code>string</code> | The version of PNPM to use if using PNPM as a package manager. |
1796
1798
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.repository">repository</a></code> | <code>string</code> | The repository is the location where the actual code for your package lives. |
1797
1799
  | <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.repositoryDirectory">repositoryDirectory</a></code> | <code>string</code> | If the package.json for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives. |
@@ -2300,6 +2302,44 @@ for specifying these.
2300
2302
 
2301
2303
  ---
2302
2304
 
2305
+ ##### `allowScripts`<sup>Optional</sup> <a name="allowScripts" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.allowScripts"></a>
2306
+
2307
+ ```typescript
2308
+ public readonly allowScripts: string[];
2309
+ ```
2310
+
2311
+ - *Type:* string[]
2312
+ - *Default:* all install scripts are allowed to run (package manager default)
2313
+
2314
+ List of dependency (package) names that are allowed to run lifecycle install scripts (`preinstall`, `install`, `postinstall`, `prepare`) during dependency installation.
2315
+
2316
+ These scripts can execute arbitrary code, making them a common
2317
+ supply-chain attack vector. Package managers are moving toward
2318
+ blocking them by default and requiring an explicit allowlist.
2319
+ Configuring `allowScripts` sets up that allowlist so scripts only run
2320
+ for the packages you have explicitly reviewed and trust.
2321
+
2322
+ Support for this setting depends on the configured `packageManager`:
2323
+
2324
+ - `NPM`: written to the native `allowScripts` field in `package.json`
2325
+ (requires npm >= 11.16; see https://docs.npmjs.com/cli/v11/commands/npm-approve-scripts).
2326
+ - `BUN`: written to the native `trustedDependencies` field in
2327
+ `package.json` (see https://bun.com/docs/pm/lifecycle).
2328
+ - `PNPM`: written to the `onlyBuiltDependencies` setting in
2329
+ `pnpm-workspace.yaml` (see https://pnpm.io/settings#onlybuiltdependencies).
2330
+ - `YARN2`, `YARN_BERRY`: written to the native
2331
+ `dependenciesMeta.<pkg>.built` allowlist in `package.json`, combined
2332
+ with `enableScripts: false` in `.yarnrc.yml` (see
2333
+ https://yarnpkg.com/features/security#postinstalls). If you set
2334
+ `yarnBerryOptions.yarnRcOptions.enableScripts` explicitly, that value
2335
+ is respected instead of being overridden.
2336
+ - `YARN`, `YARN_CLASSIC`: not supported. Yarn Classic has no native
2337
+ mechanism to allowlist install scripts for specific dependencies.
2338
+ Setting this option with one of these package managers throws an
2339
+ error at synthesis time.
2340
+
2341
+ ---
2342
+
2303
2343
  ##### `authorEmail`<sup>Optional</sup> <a name="authorEmail" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorEmail"></a>
2304
2344
 
2305
2345
  ```typescript
@@ -2811,6 +2851,19 @@ test your module against the lowest peer version required.
2811
2851
 
2812
2852
  ---
2813
2853
 
2854
+ ##### `pnpmOptions`<sup>Optional</sup> <a name="pnpmOptions" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.pnpmOptions"></a>
2855
+
2856
+ ```typescript
2857
+ public readonly pnpmOptions: PnpmOptions;
2858
+ ```
2859
+
2860
+ - *Type:* projen.javascript.PnpmOptions
2861
+ - *Default:* all default options
2862
+
2863
+ Options for pnpm.
2864
+
2865
+ ---
2866
+
2814
2867
  ##### `pnpmVersion`<sup>Optional</sup> <a name="pnpmVersion" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.pnpmVersion"></a>
2815
2868
 
2816
2869
  ```typescript
package/lib/index.js CHANGED
@@ -47,7 +47,7 @@ __exportStar(require("./types"), exports);
47
47
  exports.utils = __importStar(require("./utils"));
48
48
  __exportStar(require("./steps"), exports);
49
49
  class DeployableAwsCdkTypeScriptApp extends projen_1.awscdk.AwsCdkTypeScriptApp {
50
- static [JSII_RTTI_SYMBOL_1] = { fqn: "deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptApp", version: "0.1.860" };
50
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptApp", version: "0.1.861" };
51
51
  /**
52
52
  * If the diff output is enabled, adds a script and a job step to generate the CDK diff output to a file in cdk.out
53
53
  * @returns void
package/lib/steps.js CHANGED
@@ -19,7 +19,7 @@ const formattedDiffAnnotationCommentStepId = 'formatted_diff_annotation_comment'
19
19
  class DeployableAwsCdkTypeScriptAppStepsFactory {
20
20
  project;
21
21
  props;
22
- static [JSII_RTTI_SYMBOL_1] = { fqn: "deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppStepsFactory", version: "0.1.860" };
22
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppStepsFactory", version: "0.1.861" };
23
23
  /**
24
24
  * Validate that the provided environment deployment dependencies are valid
25
25
  * @param deployOptions The deployment options
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "jsii-docgen": "^10.5.0",
32
32
  "jsii-pacmak": "^1.138.0",
33
33
  "jsii-rosetta": "5.9.x",
34
- "projen": "^0.101.6",
34
+ "projen": "^0.101.8",
35
35
  "ts-jest": "^29.4.11",
36
36
  "ts-node": "^10.9.2",
37
37
  "typescript": "^5.9.3",
@@ -39,10 +39,10 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "constructs": "^10.6.0",
42
- "projen": "^0.101.6"
42
+ "projen": "^0.101.8"
43
43
  },
44
44
  "dependencies": {
45
- "projen": "^0.101.6",
45
+ "projen": "^0.101.8",
46
46
  "semver": "^7.8.5"
47
47
  },
48
48
  "bundledDependencies": [
@@ -70,7 +70,7 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "version": "0.1.860",
73
+ "version": "0.1.861",
74
74
  "jest": {
75
75
  "coverageProvider": "v8",
76
76
  "testMatch": [