lerna-projen 0.1.396 → 0.1.397
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 +2 -2
- package/API.md +0 -45
- package/lib/index.js +2 -2
- package/package.json +4 -4
package/.jsii
CHANGED
|
@@ -959,6 +959,6 @@
|
|
|
959
959
|
"symbolId": "src/utils:AddNxTaskDependencyOptions"
|
|
960
960
|
}
|
|
961
961
|
},
|
|
962
|
-
"version": "0.1.
|
|
963
|
-
"fingerprint": "
|
|
962
|
+
"version": "0.1.397",
|
|
963
|
+
"fingerprint": "741XjydBVP3aodkmMQM20IIrkgwvDbabG8Yhmz36eeA="
|
|
964
964
|
}
|
package/API.md
CHANGED
|
@@ -1,48 +1,3 @@
|
|
|
1
|
-
# lerna-projen
|
|
2
|
-
|
|
3
|
-
Inspired by [projen](https://github.com/projen/projen) and [lerna](https://github.com/lerna/lerna)
|
|
4
|
-
|
|
5
|
-
This is a library to use manage mono repositories using projen.
|
|
6
|
-
|
|
7
|
-
## Getting started
|
|
8
|
-
|
|
9
|
-
To create a new project, run the following command and follow the instructions:
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
console
|
|
13
|
-
$ mkdir my-project
|
|
14
|
-
$ cd my-project
|
|
15
|
-
$ git init
|
|
16
|
-
$ npx projen new --from lerna-projen lerna-project
|
|
17
|
-
🤖 Synthesizing project...
|
|
18
|
-
...
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
The project type can be anything to start with, then in the `projenrc` file, initiate a lerna project and add all of the sub normal projen project to the lerna project.
|
|
22
|
-
|
|
23
|
-
### Example
|
|
24
|
-
```javascript
|
|
25
|
-
const { LernaProject } = require('lerna-projen');
|
|
26
|
-
const { TypeScriptProject } = require('projen');
|
|
27
|
-
|
|
28
|
-
const parentProject = new LernaProject({
|
|
29
|
-
name: 'my-parent-project',
|
|
30
|
-
...
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
const firstProject = new TypeScriptProject({
|
|
34
|
-
name: 'my-first-project',
|
|
35
|
-
parent: parentProject,
|
|
36
|
-
...
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
parentProject.addSubProject(firstProject);
|
|
40
|
-
|
|
41
|
-
parentProject.synth()
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
The rest of the process is taken care of by projen. All of the scripts on the parent project are chained by running the same command from the sub project using lerna.
|
|
45
|
-
|
|
46
1
|
# API Reference <a name="API Reference" id="api-reference"></a>
|
|
47
2
|
|
|
48
3
|
## Constructs <a name="Constructs" id="Constructs"></a>
|
package/lib/index.js
CHANGED
|
@@ -92,7 +92,7 @@ class LernaProject extends projen_1.javascript.NodeProject {
|
|
|
92
92
|
}
|
|
93
93
|
exports.LernaProject = LernaProject;
|
|
94
94
|
_a = JSII_RTTI_SYMBOL_1;
|
|
95
|
-
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.
|
|
95
|
+
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.397" };
|
|
96
96
|
/**
|
|
97
97
|
* @pjid lerna-ts-project
|
|
98
98
|
*/
|
|
@@ -125,7 +125,7 @@ class LernaTypescriptProject extends projen_1.typescript.TypeScriptProject {
|
|
|
125
125
|
}
|
|
126
126
|
exports.LernaTypescriptProject = LernaTypescriptProject;
|
|
127
127
|
_b = JSII_RTTI_SYMBOL_1;
|
|
128
|
-
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.
|
|
128
|
+
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.397" };
|
|
129
129
|
class LernaProjectFactory {
|
|
130
130
|
constructor(project) {
|
|
131
131
|
this.project = project;
|
package/package.json
CHANGED
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
54
|
"jest-junit": "^15",
|
|
55
55
|
"jsii": "5.x",
|
|
56
|
-
"jsii-diff": "^1.
|
|
57
|
-
"jsii-docgen": "^
|
|
58
|
-
"jsii-pacmak": "^1.
|
|
56
|
+
"jsii-diff": "^1.98.0",
|
|
57
|
+
"jsii-docgen": "^10.4.4",
|
|
58
|
+
"jsii-pacmak": "^1.98.0",
|
|
59
59
|
"jsii-rosetta": "5.x",
|
|
60
60
|
"projen": "^0.81.5",
|
|
61
61
|
"standard-version": "^9",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
],
|
|
84
84
|
"main": "lib/index.js",
|
|
85
85
|
"license": "Apache-2.0",
|
|
86
|
-
"version": "0.1.
|
|
86
|
+
"version": "0.1.397",
|
|
87
87
|
"jest": {
|
|
88
88
|
"testMatch": [
|
|
89
89
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|