@o3r/create 11.5.0-prerelease.8 → 11.6.0-prerelease.0
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/README.md +6 -2
- package/index.js +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -25,14 +25,17 @@ npm create @o3r <project-name> -- [...options]
|
|
|
25
25
|
|
|
26
26
|
### Custom package manager
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
By default, the `npm` package manager will be used to generate the project, but you can generate an environment with a specific package manager using the `--package-manager` option:
|
|
29
29
|
|
|
30
30
|
```shell
|
|
31
31
|
npm create @o3r <project-name> -- --package-manager=yarn [...options]
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
> [!TIP]
|
|
35
|
+
> The option `--package-manager=yarn` can be simplified to `--yarn`.
|
|
36
|
+
|
|
34
37
|
> [!NOTE]
|
|
35
|
-
> At the moment, the
|
|
38
|
+
> At the moment, the `package-manager` option only supports `yarn` and `npm`.
|
|
36
39
|
|
|
37
40
|
### Custom registry
|
|
38
41
|
|
|
@@ -50,5 +53,6 @@ If the specified package manager is `yarn`, it will also configure the `.yarnrc.
|
|
|
50
53
|
The generator accepts all the configurations from the Angular `ng new` command, see the [options list](https://angular.io/cli/new#options).
|
|
51
54
|
On top of them, the following options can be provided to the initializer:
|
|
52
55
|
|
|
56
|
+
- `--yarn`: Enforce `yarn` package manager. This option will be ignored if `--package-manager` is already specified.
|
|
53
57
|
- `--yarn-version`: specify the version of yarn to use (default: `latest`)
|
|
54
58
|
- `--exact-o3r-version`: use a pinned version for [Otter packages](https://github.com/AmadeusITGroup/otter/blob/main/docs/README.md).
|
package/index.js
CHANGED
|
@@ -90,8 +90,8 @@ let defaultPackageManager = supportedPackageManager[0];
|
|
|
90
90
|
if (packageManagerEnv && supportedPackageManager.includes(packageManagerEnv)) {
|
|
91
91
|
defaultPackageManager = packageManagerEnv;
|
|
92
92
|
}
|
|
93
|
-
const argvPackageManager = argv['package-manager'];
|
|
94
|
-
let packageManager = supportedPackageManagerRegExp.test(argvPackageManager) ?
|
|
93
|
+
const argvPackageManager = argv['package-manager'] || (argv.yarn && 'yarn');
|
|
94
|
+
let packageManager = supportedPackageManagerRegExp.test(argvPackageManager) ? argvPackageManager : defaultPackageManager;
|
|
95
95
|
if (argvPackageManager && supportedPackageManagerRegExp.test(argvPackageManager)) {
|
|
96
96
|
packageManager = argvPackageManager;
|
|
97
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/create",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.6.0-prerelease.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare:publish": "prepare-publish ./dist"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@o3r/telemetry": "^11.
|
|
21
|
+
"@o3r/telemetry": "^11.6.0-prerelease.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
24
24
|
"@o3r/telemetry": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@nx/eslint-plugin": "~19.5.0",
|
|
44
44
|
"@nx/jest": "~19.5.0",
|
|
45
45
|
"@nx/js": "~19.5.0",
|
|
46
|
-
"@o3r/build-helpers": "^11.
|
|
47
|
-
"@o3r/eslint-config-otter": "^11.
|
|
48
|
-
"@o3r/eslint-plugin": "^11.
|
|
49
|
-
"@o3r/schematics": "^11.
|
|
50
|
-
"@o3r/test-helpers": "^11.
|
|
46
|
+
"@o3r/build-helpers": "^11.6.0-prerelease.0",
|
|
47
|
+
"@o3r/eslint-config-otter": "^11.6.0-prerelease.0",
|
|
48
|
+
"@o3r/eslint-plugin": "^11.6.0-prerelease.0",
|
|
49
|
+
"@o3r/schematics": "^11.6.0-prerelease.0",
|
|
50
|
+
"@o3r/test-helpers": "^11.6.0-prerelease.0",
|
|
51
51
|
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
|
52
52
|
"@types/jest": "~29.5.2",
|
|
53
53
|
"@types/minimist": "^1.2.2",
|