deployable-awscdk-app-ts 0.1.860 → 0.1.862
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 +4 -4
- package/API.md +60 -3
- package/lib/index.js +1 -1
- package/lib/steps.js +1 -1
- package/package.json +4 -4
package/.jsii
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"constructs": "^10.6.0",
|
|
14
|
-
"projen": "^0.101.
|
|
14
|
+
"projen": "^0.101.11"
|
|
15
15
|
},
|
|
16
16
|
"dependencyClosure": {
|
|
17
17
|
"constructs": {
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
487
|
"docs": {
|
|
488
|
-
"remarks": "1. Call \"this.preSynthesize()\"\n2. Delete all generated files\n3. Synthesize all subprojects\n4. Synthesize all components of this project\n5. Call \"postSynthesize()\" for all components of this project\
|
|
488
|
+
"remarks": "1. Call \"this.preSynthesize()\"\n2. Delete all generated files\n3. Synthesize all subprojects\n4. Synthesize all components of this project\n5. Call \"projectCreation()\" for all components, only if the project is being created for the first time\n6. Call \"postSynthesize()\" for all components of this project\n7. Call \"this.postSynthesize()\"\n8. Call \"postProjectCreation()\" for all components, only if the project is being created for the first time",
|
|
489
489
|
"stability": "stable",
|
|
490
490
|
"summary": "Synthesize all project files into `outdir`."
|
|
491
491
|
},
|
|
@@ -2047,6 +2047,6 @@
|
|
|
2047
2047
|
"symbolId": "src/types:EnvironmentOptions"
|
|
2048
2048
|
}
|
|
2049
2049
|
},
|
|
2050
|
-
"version": "0.1.
|
|
2051
|
-
"fingerprint": "
|
|
2050
|
+
"version": "0.1.862",
|
|
2051
|
+
"fingerprint": "NTBCK/voR7+eZK7kW0jdlUkQAyaCOCq+0Dw6mQ4fT6E="
|
|
2052
2052
|
}
|
package/API.md
CHANGED
|
@@ -255,8 +255,10 @@ Synthesize all project files into `outdir`.
|
|
|
255
255
|
2. Delete all generated files
|
|
256
256
|
3. Synthesize all subprojects
|
|
257
257
|
4. Synthesize all components of this project
|
|
258
|
-
5. Call "
|
|
259
|
-
6. Call "
|
|
258
|
+
5. Call "projectCreation()" for all components, only if the project is being created for the first time
|
|
259
|
+
6. Call "postSynthesize()" for all components of this project
|
|
260
|
+
7. Call "this.postSynthesize()"
|
|
261
|
+
8. Call "postProjectCreation()" for all components, only if the project is being created for the first time
|
|
260
262
|
|
|
261
263
|
##### `tryFindFile` <a name="tryFindFile" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptApp.tryFindFile"></a>
|
|
262
264
|
|
|
@@ -1035,7 +1037,9 @@ the project is being ejected.
|
|
|
1035
1037
|
|
|
1036
1038
|
---
|
|
1037
1039
|
|
|
1038
|
-
#####
|
|
1040
|
+
##### ~~`initProject`~~<sup>Optional</sup> <a name="initProject" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptApp.property.initProject"></a>
|
|
1041
|
+
|
|
1042
|
+
- *Deprecated:* use the `initProject` argument passed to `Component.projectCreation()` instead.
|
|
1039
1043
|
|
|
1040
1044
|
```typescript
|
|
1041
1045
|
public readonly initProject: InitProject;
|
|
@@ -1760,6 +1764,7 @@ const deployableAwsCdkTypeScriptAppOptions: DeployableAwsCdkTypeScriptAppOptions
|
|
|
1760
1764
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.vscode">vscode</a></code> | <code>boolean</code> | Enable VSCode integration. |
|
|
1761
1765
|
| <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
1766
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.allowLibraryDependencies">allowLibraryDependencies</a></code> | <code>boolean</code> | Allow the project to include `peerDependencies` and `bundledDependencies`. |
|
|
1767
|
+
| <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
1768
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorEmail">authorEmail</a></code> | <code>string</code> | Author's e-mail. |
|
|
1764
1769
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorName">authorName</a></code> | <code>string</code> | Author's name. |
|
|
1765
1770
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorOrganization">authorOrganization</a></code> | <code>boolean</code> | Is the author an organization. |
|
|
@@ -1792,6 +1797,7 @@ const deployableAwsCdkTypeScriptAppOptions: DeployableAwsCdkTypeScriptAppOptions
|
|
|
1792
1797
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.packageName">packageName</a></code> | <code>string</code> | The "name" in package.json. |
|
|
1793
1798
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.peerDependencyOptions">peerDependencyOptions</a></code> | <code>projen.javascript.PeerDependencyOptions</code> | Options for `peerDeps`. |
|
|
1794
1799
|
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.peerDeps">peerDeps</a></code> | <code>string[]</code> | Peer dependencies for this module. |
|
|
1800
|
+
| <code><a href="#deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.pnpmOptions">pnpmOptions</a></code> | <code>projen.javascript.PnpmOptions</code> | Options for pnpm. |
|
|
1795
1801
|
| <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
1802
|
| <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
1803
|
| <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 +2306,44 @@ for specifying these.
|
|
|
2300
2306
|
|
|
2301
2307
|
---
|
|
2302
2308
|
|
|
2309
|
+
##### `allowScripts`<sup>Optional</sup> <a name="allowScripts" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.allowScripts"></a>
|
|
2310
|
+
|
|
2311
|
+
```typescript
|
|
2312
|
+
public readonly allowScripts: string[];
|
|
2313
|
+
```
|
|
2314
|
+
|
|
2315
|
+
- *Type:* string[]
|
|
2316
|
+
- *Default:* all install scripts are allowed to run (package manager default)
|
|
2317
|
+
|
|
2318
|
+
List of dependency (package) names that are allowed to run lifecycle install scripts (`preinstall`, `install`, `postinstall`, `prepare`) during dependency installation.
|
|
2319
|
+
|
|
2320
|
+
These scripts can execute arbitrary code, making them a common
|
|
2321
|
+
supply-chain attack vector. Package managers are moving toward
|
|
2322
|
+
blocking them by default and requiring an explicit allowlist.
|
|
2323
|
+
Configuring `allowScripts` sets up that allowlist so scripts only run
|
|
2324
|
+
for the packages you have explicitly reviewed and trust.
|
|
2325
|
+
|
|
2326
|
+
Support for this setting depends on the configured `packageManager`:
|
|
2327
|
+
|
|
2328
|
+
- `NPM`: written to the native `allowScripts` field in `package.json`
|
|
2329
|
+
(requires npm >= 11.16; see https://docs.npmjs.com/cli/v11/commands/npm-approve-scripts).
|
|
2330
|
+
- `BUN`: written to the native `trustedDependencies` field in
|
|
2331
|
+
`package.json` (see https://bun.com/docs/pm/lifecycle).
|
|
2332
|
+
- `PNPM`: written to the `onlyBuiltDependencies` setting in
|
|
2333
|
+
`pnpm-workspace.yaml` (see https://pnpm.io/settings#onlybuiltdependencies).
|
|
2334
|
+
- `YARN2`, `YARN_BERRY`: written to the native
|
|
2335
|
+
`dependenciesMeta.<pkg>.built` allowlist in `package.json`, combined
|
|
2336
|
+
with `enableScripts: false` in `.yarnrc.yml` (see
|
|
2337
|
+
https://yarnpkg.com/features/security#postinstalls). If you set
|
|
2338
|
+
`yarnBerryOptions.yarnRcOptions.enableScripts` explicitly, that value
|
|
2339
|
+
is respected instead of being overridden.
|
|
2340
|
+
- `YARN`, `YARN_CLASSIC`: not supported. Yarn Classic has no native
|
|
2341
|
+
mechanism to allowlist install scripts for specific dependencies.
|
|
2342
|
+
Setting this option with one of these package managers throws an
|
|
2343
|
+
error at synthesis time.
|
|
2344
|
+
|
|
2345
|
+
---
|
|
2346
|
+
|
|
2303
2347
|
##### `authorEmail`<sup>Optional</sup> <a name="authorEmail" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.authorEmail"></a>
|
|
2304
2348
|
|
|
2305
2349
|
```typescript
|
|
@@ -2811,6 +2855,19 @@ test your module against the lowest peer version required.
|
|
|
2811
2855
|
|
|
2812
2856
|
---
|
|
2813
2857
|
|
|
2858
|
+
##### `pnpmOptions`<sup>Optional</sup> <a name="pnpmOptions" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.pnpmOptions"></a>
|
|
2859
|
+
|
|
2860
|
+
```typescript
|
|
2861
|
+
public readonly pnpmOptions: PnpmOptions;
|
|
2862
|
+
```
|
|
2863
|
+
|
|
2864
|
+
- *Type:* projen.javascript.PnpmOptions
|
|
2865
|
+
- *Default:* all default options
|
|
2866
|
+
|
|
2867
|
+
Options for pnpm.
|
|
2868
|
+
|
|
2869
|
+
---
|
|
2870
|
+
|
|
2814
2871
|
##### `pnpmVersion`<sup>Optional</sup> <a name="pnpmVersion" id="deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppOptions.property.pnpmVersion"></a>
|
|
2815
2872
|
|
|
2816
2873
|
```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.
|
|
50
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptApp", version: "0.1.862" };
|
|
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.
|
|
22
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "deployable-awscdk-app-ts.DeployableAwsCdkTypeScriptAppStepsFactory", version: "0.1.862" };
|
|
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.
|
|
34
|
+
"projen": "^0.101.11",
|
|
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.
|
|
42
|
+
"projen": "^0.101.11"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"projen": "^0.101.
|
|
45
|
+
"projen": "^0.101.11",
|
|
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.
|
|
73
|
+
"version": "0.1.862",
|
|
74
74
|
"jest": {
|
|
75
75
|
"coverageProvider": "v8",
|
|
76
76
|
"testMatch": [
|