lerna-projen 0.1.797 → 0.1.799
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 +150 -46
- package/lib/index.js +2 -2
- package/package.json +9 -3
package/.jsii
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"constructs": "^10.6.0",
|
|
18
|
-
"projen": "^0.99.
|
|
18
|
+
"projen": "^0.99.38"
|
|
19
19
|
},
|
|
20
20
|
"dependencyClosure": {
|
|
21
21
|
"constructs": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"stability": "stable"
|
|
91
91
|
},
|
|
92
92
|
"homepage": "https://github.com/AminFazlMondo/Lerna-Projen.git",
|
|
93
|
-
"jsiiVersion": "5.9.
|
|
93
|
+
"jsiiVersion": "5.9.37 (build 5176c0d)",
|
|
94
94
|
"keywords": [
|
|
95
95
|
"lerna",
|
|
96
96
|
"monorepo",
|
|
@@ -1125,6 +1125,6 @@
|
|
|
1125
1125
|
"symbolId": "src/utils:AddNxTaskDependencyOptions"
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
|
-
"version": "0.1.
|
|
1129
|
-
"fingerprint": "
|
|
1128
|
+
"version": "0.1.799",
|
|
1129
|
+
"fingerprint": "DMaEeqDoumO9+44L0W/SfP+W7+cjSJijb0kNLR/dw9s="
|
|
1130
1130
|
}
|
package/API.md
CHANGED
|
@@ -251,7 +251,7 @@ public runTaskCommand(task: Task): string
|
|
|
251
251
|
Returns the shell command to execute in order to run a task.
|
|
252
252
|
|
|
253
253
|
This will
|
|
254
|
-
typically be `
|
|
254
|
+
typically be `pnpm projen TASK`.
|
|
255
255
|
|
|
256
256
|
###### `task`<sup>Required</sup> <a name="task" id="lerna-projen.LernaProject.runTaskCommand.parameter.task"></a>
|
|
257
257
|
|
|
@@ -376,9 +376,9 @@ Bundled dependencies will be added as normal dependencies as well as to the
|
|
|
376
376
|
Names modules to install.
|
|
377
377
|
|
|
378
378
|
By default, the the dependency will
|
|
379
|
-
be installed in the next `
|
|
380
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
381
|
-
add/
|
|
379
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
380
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
381
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
382
382
|
`module@^7`.
|
|
383
383
|
|
|
384
384
|
---
|
|
@@ -412,9 +412,9 @@ Defines normal dependencies.
|
|
|
412
412
|
Names modules to install.
|
|
413
413
|
|
|
414
414
|
By default, the the dependency will
|
|
415
|
-
be installed in the next `
|
|
416
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
417
|
-
add/
|
|
415
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
416
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
417
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
418
418
|
`module@^7`.
|
|
419
419
|
|
|
420
420
|
---
|
|
@@ -434,9 +434,9 @@ Defines development/test dependencies.
|
|
|
434
434
|
Names modules to install.
|
|
435
435
|
|
|
436
436
|
By default, the the dependency will
|
|
437
|
-
be installed in the next `
|
|
438
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
439
|
-
add/
|
|
437
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
438
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
439
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
440
440
|
`module@^7`.
|
|
441
441
|
|
|
442
442
|
---
|
|
@@ -492,9 +492,9 @@ your code against the minimum version required from your consumers.
|
|
|
492
492
|
Names modules to install.
|
|
493
493
|
|
|
494
494
|
By default, the the dependency will
|
|
495
|
-
be installed in the next `
|
|
496
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
497
|
-
add/
|
|
495
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
496
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
497
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
498
498
|
`module@^7`.
|
|
499
499
|
|
|
500
500
|
---
|
|
@@ -1782,7 +1782,7 @@ public runTaskCommand(task: Task): string
|
|
|
1782
1782
|
Returns the shell command to execute in order to run a task.
|
|
1783
1783
|
|
|
1784
1784
|
This will
|
|
1785
|
-
typically be `
|
|
1785
|
+
typically be `pnpm projen TASK`.
|
|
1786
1786
|
|
|
1787
1787
|
###### `task`<sup>Required</sup> <a name="task" id="lerna-projen.LernaTypescriptProject.runTaskCommand.parameter.task"></a>
|
|
1788
1788
|
|
|
@@ -1907,9 +1907,9 @@ Bundled dependencies will be added as normal dependencies as well as to the
|
|
|
1907
1907
|
Names modules to install.
|
|
1908
1908
|
|
|
1909
1909
|
By default, the the dependency will
|
|
1910
|
-
be installed in the next `
|
|
1911
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
1912
|
-
add/
|
|
1910
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
1911
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
1912
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
1913
1913
|
`module@^7`.
|
|
1914
1914
|
|
|
1915
1915
|
---
|
|
@@ -1943,9 +1943,9 @@ Defines normal dependencies.
|
|
|
1943
1943
|
Names modules to install.
|
|
1944
1944
|
|
|
1945
1945
|
By default, the the dependency will
|
|
1946
|
-
be installed in the next `
|
|
1947
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
1948
|
-
add/
|
|
1946
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
1947
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
1948
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
1949
1949
|
`module@^7`.
|
|
1950
1950
|
|
|
1951
1951
|
---
|
|
@@ -1965,9 +1965,9 @@ Defines development/test dependencies.
|
|
|
1965
1965
|
Names modules to install.
|
|
1966
1966
|
|
|
1967
1967
|
By default, the the dependency will
|
|
1968
|
-
be installed in the next `
|
|
1969
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
1970
|
-
add/
|
|
1968
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
1969
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
1970
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
1971
1971
|
`module@^7`.
|
|
1972
1972
|
|
|
1973
1973
|
---
|
|
@@ -2023,9 +2023,9 @@ your code against the minimum version required from your consumers.
|
|
|
2023
2023
|
Names modules to install.
|
|
2024
2024
|
|
|
2025
2025
|
By default, the the dependency will
|
|
2026
|
-
be installed in the next `
|
|
2027
|
-
in your `package.json` file. You can upgrade manually or using `
|
|
2028
|
-
add/
|
|
2026
|
+
be installed in the next `pnpm projen` run and the version will be recorded
|
|
2027
|
+
in your `package.json` file. You can upgrade manually or using `pnpm
|
|
2028
|
+
add/update`. If you wish to specify a version range use this syntax:
|
|
2029
2029
|
`module@^7`.
|
|
2030
2030
|
|
|
2031
2031
|
---
|
|
@@ -3507,6 +3507,7 @@ const lernaProjectOptions: LernaProjectOptions = { ... }
|
|
|
3507
3507
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.stale">stale</a></code> | <code>boolean</code> | Auto-close of stale issues and pull request. |
|
|
3508
3508
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.staleOptions">staleOptions</a></code> | <code>projen.github.StaleOptions</code> | Auto-close stale issues and pull requests. |
|
|
3509
3509
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.vscode">vscode</a></code> | <code>boolean</code> | Enable VSCode integration. |
|
|
3510
|
+
| <code><a href="#lerna-projen.LernaProjectOptions.property.addPackageManagerToDevEngines">addPackageManagerToDevEngines</a></code> | <code>boolean</code> | Automatically add the resolved `packageManager` to `devEngines.packageManager` in `package.json`, setting `onFail` to `ignore`. |
|
|
3510
3511
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.allowLibraryDependencies">allowLibraryDependencies</a></code> | <code>boolean</code> | Allow the project to include `peerDependencies` and `bundledDependencies`. |
|
|
3511
3512
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.authorEmail">authorEmail</a></code> | <code>string</code> | Author's e-mail. |
|
|
3512
3513
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.authorName">authorName</a></code> | <code>string</code> | Author's name. |
|
|
@@ -3519,9 +3520,11 @@ const lernaProjectOptions: LernaProjectOptions = { ... }
|
|
|
3519
3520
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.bundledDeps">bundledDeps</a></code> | <code>string[]</code> | List of dependencies to bundle into this module. |
|
|
3520
3521
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.bunVersion">bunVersion</a></code> | <code>string</code> | The version of Bun to use if using Bun as a package manager. |
|
|
3521
3522
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.codeArtifactOptions">codeArtifactOptions</a></code> | <code>projen.javascript.CodeArtifactOptions</code> | Options for npm packages using AWS CodeArtifact. |
|
|
3523
|
+
| <code><a href="#lerna-projen.LernaProjectOptions.property.deleteOrphanedLockFiles">deleteOrphanedLockFiles</a></code> | <code>boolean</code> | Automatically delete lockfiles from package managers that are not the active one. |
|
|
3522
3524
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.deps">deps</a></code> | <code>string[]</code> | Runtime dependencies of this module. |
|
|
3523
3525
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.description">description</a></code> | <code>string</code> | The description is just a string that helps people understand the purpose of the package. |
|
|
3524
3526
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.devDeps">devDeps</a></code> | <code>string[]</code> | Build dependencies for this module. |
|
|
3527
|
+
| <code><a href="#lerna-projen.LernaProjectOptions.property.devEngines">devEngines</a></code> | <code>projen.javascript.DevEngines</code> | Configure the `devEngines` field in `package.json`. |
|
|
3525
3528
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.entrypoint">entrypoint</a></code> | <code>string</code> | Module entrypoint (`main` in `package.json`). |
|
|
3526
3529
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.homepage">homepage</a></code> | <code>string</code> | Package's Homepage / Website. |
|
|
3527
3530
|
| <code><a href="#lerna-projen.LernaProjectOptions.property.keywords">keywords</a></code> | <code>string[]</code> | Keywords to include in `package.json`. |
|
|
@@ -4054,6 +4057,19 @@ Enabled by default for root projects. Disabled for non-root projects.
|
|
|
4054
4057
|
|
|
4055
4058
|
---
|
|
4056
4059
|
|
|
4060
|
+
##### `addPackageManagerToDevEngines`<sup>Optional</sup> <a name="addPackageManagerToDevEngines" id="lerna-projen.LernaProjectOptions.property.addPackageManagerToDevEngines"></a>
|
|
4061
|
+
|
|
4062
|
+
```typescript
|
|
4063
|
+
public readonly addPackageManagerToDevEngines: boolean;
|
|
4064
|
+
```
|
|
4065
|
+
|
|
4066
|
+
- *Type:* boolean
|
|
4067
|
+
- *Default:* true
|
|
4068
|
+
|
|
4069
|
+
Automatically add the resolved `packageManager` to `devEngines.packageManager` in `package.json`, setting `onFail` to `ignore`.
|
|
4070
|
+
|
|
4071
|
+
---
|
|
4072
|
+
|
|
4057
4073
|
##### `allowLibraryDependencies`<sup>Optional</sup> <a name="allowLibraryDependencies" id="lerna-projen.LernaProjectOptions.property.allowLibraryDependencies"></a>
|
|
4058
4074
|
|
|
4059
4075
|
```typescript
|
|
@@ -4186,11 +4202,11 @@ added both to the `dependencies` section and `bundledDependencies` section of
|
|
|
4186
4202
|
your `package.json`.
|
|
4187
4203
|
|
|
4188
4204
|
The recommendation is to only specify the module name here (e.g.
|
|
4189
|
-
`express`). This will behave similar to `
|
|
4205
|
+
`express`). This will behave similar to `pnpm add` or `npm install` in the
|
|
4190
4206
|
sense that it will add the module as a dependency to your `package.json`
|
|
4191
4207
|
file with the latest version (`^`). You can specify semver requirements in
|
|
4192
|
-
the same syntax passed to `
|
|
4193
|
-
this will be what
|
|
4208
|
+
the same syntax passed to `pnpm add` or `npm i` (e.g. `express@^2`) and
|
|
4209
|
+
this will be what your `package.json` will eventually include.
|
|
4194
4210
|
|
|
4195
4211
|
---
|
|
4196
4212
|
|
|
@@ -4222,6 +4238,24 @@ This is required if publishing packages to, or installing scoped packages from A
|
|
|
4222
4238
|
|
|
4223
4239
|
---
|
|
4224
4240
|
|
|
4241
|
+
##### `deleteOrphanedLockFiles`<sup>Optional</sup> <a name="deleteOrphanedLockFiles" id="lerna-projen.LernaProjectOptions.property.deleteOrphanedLockFiles"></a>
|
|
4242
|
+
|
|
4243
|
+
```typescript
|
|
4244
|
+
public readonly deleteOrphanedLockFiles: boolean;
|
|
4245
|
+
```
|
|
4246
|
+
|
|
4247
|
+
- *Type:* boolean
|
|
4248
|
+
- *Default:* true
|
|
4249
|
+
|
|
4250
|
+
Automatically delete lockfiles from package managers that are not the active one.
|
|
4251
|
+
|
|
4252
|
+
Only triggered when the lockfile for the configured package
|
|
4253
|
+
manager already exists.
|
|
4254
|
+
|
|
4255
|
+
This is useful when migrating between package managers to avoid conflicts.
|
|
4256
|
+
|
|
4257
|
+
---
|
|
4258
|
+
|
|
4225
4259
|
##### `deps`<sup>Optional</sup> <a name="deps" id="lerna-projen.LernaProjectOptions.property.deps"></a>
|
|
4226
4260
|
|
|
4227
4261
|
```typescript
|
|
@@ -4234,11 +4268,11 @@ public readonly deps: string[];
|
|
|
4234
4268
|
Runtime dependencies of this module.
|
|
4235
4269
|
|
|
4236
4270
|
The recommendation is to only specify the module name here (e.g.
|
|
4237
|
-
`express`). This will behave similar to `
|
|
4271
|
+
`express`). This will behave similar to `pnpm add` or `npm install` in the
|
|
4238
4272
|
sense that it will add the module as a dependency to your `package.json`
|
|
4239
4273
|
file with the latest version (`^`). You can specify semver requirements in
|
|
4240
|
-
the same syntax passed to `
|
|
4241
|
-
this will be what
|
|
4274
|
+
the same syntax passed to `pnpm add` or `npm i` (e.g. `express@^2`) and
|
|
4275
|
+
this will be what your `package.json` will eventually include.
|
|
4242
4276
|
|
|
4243
4277
|
---
|
|
4244
4278
|
|
|
@@ -4280,11 +4314,11 @@ available in your build environment but will not be fetched when this
|
|
|
4280
4314
|
module is consumed.
|
|
4281
4315
|
|
|
4282
4316
|
The recommendation is to only specify the module name here (e.g.
|
|
4283
|
-
`express`). This will behave similar to `
|
|
4317
|
+
`express`). This will behave similar to `pnpm add` or `npm install` in the
|
|
4284
4318
|
sense that it will add the module as a dependency to your `package.json`
|
|
4285
4319
|
file with the latest version (`^`). You can specify semver requirements in
|
|
4286
|
-
the same syntax passed to `
|
|
4287
|
-
this will be what
|
|
4320
|
+
the same syntax passed to `pnpm add` or `npm i` (e.g. `express@^2`) and
|
|
4321
|
+
this will be what your `package.json` will eventually include.
|
|
4288
4322
|
|
|
4289
4323
|
---
|
|
4290
4324
|
|
|
@@ -4295,6 +4329,24 @@ this will be what you `package.json` will eventually include.
|
|
|
4295
4329
|
```
|
|
4296
4330
|
|
|
4297
4331
|
|
|
4332
|
+
##### `devEngines`<sup>Optional</sup> <a name="devEngines" id="lerna-projen.LernaProjectOptions.property.devEngines"></a>
|
|
4333
|
+
|
|
4334
|
+
```typescript
|
|
4335
|
+
public readonly devEngines: DevEngines;
|
|
4336
|
+
```
|
|
4337
|
+
|
|
4338
|
+
- *Type:* projen.javascript.DevEngines
|
|
4339
|
+
|
|
4340
|
+
Configure the `devEngines` field in `package.json`.
|
|
4341
|
+
|
|
4342
|
+
The `devEngines.packageManager` field is automatically populated based on
|
|
4343
|
+
the resolved `packageManager` value. Any fields provided here are merged
|
|
4344
|
+
with the auto-populated `packageManager` entry.
|
|
4345
|
+
|
|
4346
|
+
> [https://docs.npmjs.com/cli/v10/configuring-npm/package-json#devengines](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#devengines)
|
|
4347
|
+
|
|
4348
|
+
---
|
|
4349
|
+
|
|
4298
4350
|
##### `entrypoint`<sup>Optional</sup> <a name="entrypoint" id="lerna-projen.LernaProjectOptions.property.entrypoint"></a>
|
|
4299
4351
|
|
|
4300
4352
|
```typescript
|
|
@@ -4503,7 +4555,7 @@ public readonly packageManager: NodePackageManager;
|
|
|
4503
4555
|
```
|
|
4504
4556
|
|
|
4505
4557
|
- *Type:* projen.javascript.NodePackageManager
|
|
4506
|
-
- *Default:*
|
|
4558
|
+
- *Default:* Detected from the calling process or `YARN_CLASSIC` if detection fails.
|
|
4507
4559
|
|
|
4508
4560
|
The Node Package Manager used to execute scripts.
|
|
4509
4561
|
|
|
@@ -5800,6 +5852,7 @@ const lernaTypescriptProjectOptions: LernaTypescriptProjectOptions = { ... }
|
|
|
5800
5852
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.stale">stale</a></code> | <code>boolean</code> | Auto-close of stale issues and pull request. |
|
|
5801
5853
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.staleOptions">staleOptions</a></code> | <code>projen.github.StaleOptions</code> | Auto-close stale issues and pull requests. |
|
|
5802
5854
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.vscode">vscode</a></code> | <code>boolean</code> | Enable VSCode integration. |
|
|
5855
|
+
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.addPackageManagerToDevEngines">addPackageManagerToDevEngines</a></code> | <code>boolean</code> | Automatically add the resolved `packageManager` to `devEngines.packageManager` in `package.json`, setting `onFail` to `ignore`. |
|
|
5803
5856
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.allowLibraryDependencies">allowLibraryDependencies</a></code> | <code>boolean</code> | Allow the project to include `peerDependencies` and `bundledDependencies`. |
|
|
5804
5857
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.authorEmail">authorEmail</a></code> | <code>string</code> | Author's e-mail. |
|
|
5805
5858
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.authorName">authorName</a></code> | <code>string</code> | Author's name. |
|
|
@@ -5812,9 +5865,11 @@ const lernaTypescriptProjectOptions: LernaTypescriptProjectOptions = { ... }
|
|
|
5812
5865
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.bundledDeps">bundledDeps</a></code> | <code>string[]</code> | List of dependencies to bundle into this module. |
|
|
5813
5866
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.bunVersion">bunVersion</a></code> | <code>string</code> | The version of Bun to use if using Bun as a package manager. |
|
|
5814
5867
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.codeArtifactOptions">codeArtifactOptions</a></code> | <code>projen.javascript.CodeArtifactOptions</code> | Options for npm packages using AWS CodeArtifact. |
|
|
5868
|
+
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.deleteOrphanedLockFiles">deleteOrphanedLockFiles</a></code> | <code>boolean</code> | Automatically delete lockfiles from package managers that are not the active one. |
|
|
5815
5869
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.deps">deps</a></code> | <code>string[]</code> | Runtime dependencies of this module. |
|
|
5816
5870
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.description">description</a></code> | <code>string</code> | The description is just a string that helps people understand the purpose of the package. |
|
|
5817
5871
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.devDeps">devDeps</a></code> | <code>string[]</code> | Build dependencies for this module. |
|
|
5872
|
+
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.devEngines">devEngines</a></code> | <code>projen.javascript.DevEngines</code> | Configure the `devEngines` field in `package.json`. |
|
|
5818
5873
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.entrypoint">entrypoint</a></code> | <code>string</code> | Module entrypoint (`main` in `package.json`). |
|
|
5819
5874
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.homepage">homepage</a></code> | <code>string</code> | Package's Homepage / Website. |
|
|
5820
5875
|
| <code><a href="#lerna-projen.LernaTypescriptProjectOptions.property.keywords">keywords</a></code> | <code>string[]</code> | Keywords to include in `package.json`. |
|
|
@@ -6363,6 +6418,19 @@ Enabled by default for root projects. Disabled for non-root projects.
|
|
|
6363
6418
|
|
|
6364
6419
|
---
|
|
6365
6420
|
|
|
6421
|
+
##### `addPackageManagerToDevEngines`<sup>Optional</sup> <a name="addPackageManagerToDevEngines" id="lerna-projen.LernaTypescriptProjectOptions.property.addPackageManagerToDevEngines"></a>
|
|
6422
|
+
|
|
6423
|
+
```typescript
|
|
6424
|
+
public readonly addPackageManagerToDevEngines: boolean;
|
|
6425
|
+
```
|
|
6426
|
+
|
|
6427
|
+
- *Type:* boolean
|
|
6428
|
+
- *Default:* true
|
|
6429
|
+
|
|
6430
|
+
Automatically add the resolved `packageManager` to `devEngines.packageManager` in `package.json`, setting `onFail` to `ignore`.
|
|
6431
|
+
|
|
6432
|
+
---
|
|
6433
|
+
|
|
6366
6434
|
##### `allowLibraryDependencies`<sup>Optional</sup> <a name="allowLibraryDependencies" id="lerna-projen.LernaTypescriptProjectOptions.property.allowLibraryDependencies"></a>
|
|
6367
6435
|
|
|
6368
6436
|
```typescript
|
|
@@ -6495,11 +6563,11 @@ added both to the `dependencies` section and `bundledDependencies` section of
|
|
|
6495
6563
|
your `package.json`.
|
|
6496
6564
|
|
|
6497
6565
|
The recommendation is to only specify the module name here (e.g.
|
|
6498
|
-
`express`). This will behave similar to `
|
|
6566
|
+
`express`). This will behave similar to `pnpm add` or `npm install` in the
|
|
6499
6567
|
sense that it will add the module as a dependency to your `package.json`
|
|
6500
6568
|
file with the latest version (`^`). You can specify semver requirements in
|
|
6501
|
-
the same syntax passed to `
|
|
6502
|
-
this will be what
|
|
6569
|
+
the same syntax passed to `pnpm add` or `npm i` (e.g. `express@^2`) and
|
|
6570
|
+
this will be what your `package.json` will eventually include.
|
|
6503
6571
|
|
|
6504
6572
|
---
|
|
6505
6573
|
|
|
@@ -6531,6 +6599,24 @@ This is required if publishing packages to, or installing scoped packages from A
|
|
|
6531
6599
|
|
|
6532
6600
|
---
|
|
6533
6601
|
|
|
6602
|
+
##### `deleteOrphanedLockFiles`<sup>Optional</sup> <a name="deleteOrphanedLockFiles" id="lerna-projen.LernaTypescriptProjectOptions.property.deleteOrphanedLockFiles"></a>
|
|
6603
|
+
|
|
6604
|
+
```typescript
|
|
6605
|
+
public readonly deleteOrphanedLockFiles: boolean;
|
|
6606
|
+
```
|
|
6607
|
+
|
|
6608
|
+
- *Type:* boolean
|
|
6609
|
+
- *Default:* true
|
|
6610
|
+
|
|
6611
|
+
Automatically delete lockfiles from package managers that are not the active one.
|
|
6612
|
+
|
|
6613
|
+
Only triggered when the lockfile for the configured package
|
|
6614
|
+
manager already exists.
|
|
6615
|
+
|
|
6616
|
+
This is useful when migrating between package managers to avoid conflicts.
|
|
6617
|
+
|
|
6618
|
+
---
|
|
6619
|
+
|
|
6534
6620
|
##### `deps`<sup>Optional</sup> <a name="deps" id="lerna-projen.LernaTypescriptProjectOptions.property.deps"></a>
|
|
6535
6621
|
|
|
6536
6622
|
```typescript
|
|
@@ -6543,11 +6629,11 @@ public readonly deps: string[];
|
|
|
6543
6629
|
Runtime dependencies of this module.
|
|
6544
6630
|
|
|
6545
6631
|
The recommendation is to only specify the module name here (e.g.
|
|
6546
|
-
`express`). This will behave similar to `
|
|
6632
|
+
`express`). This will behave similar to `pnpm add` or `npm install` in the
|
|
6547
6633
|
sense that it will add the module as a dependency to your `package.json`
|
|
6548
6634
|
file with the latest version (`^`). You can specify semver requirements in
|
|
6549
|
-
the same syntax passed to `
|
|
6550
|
-
this will be what
|
|
6635
|
+
the same syntax passed to `pnpm add` or `npm i` (e.g. `express@^2`) and
|
|
6636
|
+
this will be what your `package.json` will eventually include.
|
|
6551
6637
|
|
|
6552
6638
|
---
|
|
6553
6639
|
|
|
@@ -6589,11 +6675,11 @@ available in your build environment but will not be fetched when this
|
|
|
6589
6675
|
module is consumed.
|
|
6590
6676
|
|
|
6591
6677
|
The recommendation is to only specify the module name here (e.g.
|
|
6592
|
-
`express`). This will behave similar to `
|
|
6678
|
+
`express`). This will behave similar to `pnpm add` or `npm install` in the
|
|
6593
6679
|
sense that it will add the module as a dependency to your `package.json`
|
|
6594
6680
|
file with the latest version (`^`). You can specify semver requirements in
|
|
6595
|
-
the same syntax passed to `
|
|
6596
|
-
this will be what
|
|
6681
|
+
the same syntax passed to `pnpm add` or `npm i` (e.g. `express@^2`) and
|
|
6682
|
+
this will be what your `package.json` will eventually include.
|
|
6597
6683
|
|
|
6598
6684
|
---
|
|
6599
6685
|
|
|
@@ -6604,6 +6690,24 @@ this will be what you `package.json` will eventually include.
|
|
|
6604
6690
|
```
|
|
6605
6691
|
|
|
6606
6692
|
|
|
6693
|
+
##### `devEngines`<sup>Optional</sup> <a name="devEngines" id="lerna-projen.LernaTypescriptProjectOptions.property.devEngines"></a>
|
|
6694
|
+
|
|
6695
|
+
```typescript
|
|
6696
|
+
public readonly devEngines: DevEngines;
|
|
6697
|
+
```
|
|
6698
|
+
|
|
6699
|
+
- *Type:* projen.javascript.DevEngines
|
|
6700
|
+
|
|
6701
|
+
Configure the `devEngines` field in `package.json`.
|
|
6702
|
+
|
|
6703
|
+
The `devEngines.packageManager` field is automatically populated based on
|
|
6704
|
+
the resolved `packageManager` value. Any fields provided here are merged
|
|
6705
|
+
with the auto-populated `packageManager` entry.
|
|
6706
|
+
|
|
6707
|
+
> [https://docs.npmjs.com/cli/v10/configuring-npm/package-json#devengines](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#devengines)
|
|
6708
|
+
|
|
6709
|
+
---
|
|
6710
|
+
|
|
6607
6711
|
##### `entrypoint`<sup>Optional</sup> <a name="entrypoint" id="lerna-projen.LernaTypescriptProjectOptions.property.entrypoint"></a>
|
|
6608
6712
|
|
|
6609
6713
|
```typescript
|
|
@@ -6812,7 +6916,7 @@ public readonly packageManager: NodePackageManager;
|
|
|
6812
6916
|
```
|
|
6813
6917
|
|
|
6814
6918
|
- *Type:* projen.javascript.NodePackageManager
|
|
6815
|
-
- *Default:*
|
|
6919
|
+
- *Default:* Detected from the calling process or `YARN_CLASSIC` if detection fails.
|
|
6816
6920
|
|
|
6817
6921
|
The Node Package Manager used to execute scripts.
|
|
6818
6922
|
|
package/lib/index.js
CHANGED
|
@@ -98,7 +98,7 @@ class LernaProject extends projen_1.javascript.NodeProject {
|
|
|
98
98
|
}
|
|
99
99
|
exports.LernaProject = LernaProject;
|
|
100
100
|
_a = JSII_RTTI_SYMBOL_1;
|
|
101
|
-
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.
|
|
101
|
+
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.799" };
|
|
102
102
|
/**
|
|
103
103
|
* @pjid lerna-ts-project
|
|
104
104
|
*/
|
|
@@ -134,7 +134,7 @@ class LernaTypescriptProject extends projen_1.typescript.TypeScriptProject {
|
|
|
134
134
|
}
|
|
135
135
|
exports.LernaTypescriptProject = LernaTypescriptProject;
|
|
136
136
|
_b = JSII_RTTI_SYMBOL_1;
|
|
137
|
-
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.
|
|
137
|
+
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.799" };
|
|
138
138
|
class LernaProjectFactory {
|
|
139
139
|
constructor(project) {
|
|
140
140
|
this.project = project;
|
package/package.json
CHANGED
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"jsii-docgen": "^10.5.0",
|
|
60
60
|
"jsii-pacmak": "^1.127.0",
|
|
61
61
|
"jsii-rosetta": "5.9.x",
|
|
62
|
-
"projen": "^0.99.
|
|
62
|
+
"projen": "^0.99.38",
|
|
63
63
|
"ts-jest": "^29.4.9",
|
|
64
64
|
"ts-node": "^10.9.2",
|
|
65
65
|
"typescript": "^5.9.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"constructs": "^10.6.0",
|
|
69
|
-
"projen": "^0.99.
|
|
69
|
+
"projen": "^0.99.38"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"commander": "^11.1.0",
|
|
@@ -85,12 +85,18 @@
|
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">= 20.0.0"
|
|
87
87
|
},
|
|
88
|
+
"devEngines": {
|
|
89
|
+
"packageManager": {
|
|
90
|
+
"name": "npm",
|
|
91
|
+
"onFail": "ignore"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
88
94
|
"main": "lib/index.js",
|
|
89
95
|
"license": "Apache-2.0",
|
|
90
96
|
"publishConfig": {
|
|
91
97
|
"access": "public"
|
|
92
98
|
},
|
|
93
|
-
"version": "0.1.
|
|
99
|
+
"version": "0.1.799",
|
|
94
100
|
"jest": {
|
|
95
101
|
"coverageProvider": "v8",
|
|
96
102
|
"testMatch": [
|