@o3r/mobile 13.0.0-prerelease.2 → 13.0.0-prerelease.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/mobile",
3
- "version": "13.0.0-prerelease.2",
3
+ "version": "13.0.0-prerelease.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  "otter-module"
27
27
  ],
28
28
  "dependencies": {
29
- "@o3r/schematics": "^13.0.0-prerelease.2",
29
+ "@o3r/schematics": "^13.0.0-prerelease.4",
30
30
  "commander": "^14.0.0",
31
31
  "form-data": "^4.0.0",
32
32
  "node-fetch": "^3.0.0",
@@ -42,10 +42,10 @@
42
42
  "@capacitor/device": "^7.0.0",
43
43
  "@capacitor/preferences": "^7.0.0",
44
44
  "@ngrx/store": "^20.0.0",
45
- "@o3r/core": "^13.0.0-prerelease.2",
46
- "@o3r/logger": "^13.0.0-prerelease.2",
47
- "@o3r/schematics": "^13.0.0-prerelease.2",
48
- "@o3r/store-sync": "^13.0.0-prerelease.2",
45
+ "@o3r/core": "^13.0.0-prerelease.4",
46
+ "@o3r/logger": "^13.0.0-prerelease.4",
47
+ "@o3r/schematics": "^13.0.0-prerelease.4",
48
+ "@o3r/store-sync": "^13.0.0-prerelease.4",
49
49
  "@schematics/angular": "^20.0.0",
50
50
  "fast-deep-equal": "^3.1.3",
51
51
  "rxjs": "^7.8.1",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAwElB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAoClB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
@@ -29,40 +29,9 @@ const devDependenciesToInstall = [];
29
29
  */
30
30
  function ngAddFn(options) {
31
31
  /* ng add rules */
32
- return (tree, context) => {
33
- const depsInfo = (0, schematics_2.getO3rPeerDeps)(path.resolve(__dirname, '..', '..', 'package.json'));
34
- const workspaceProject = options.projectName ? (0, schematics_2.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
35
- const projectDirectory = workspaceProject?.root || '.';
36
- const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
37
- const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
38
- acc[dep] = {
39
- inManifest: [{
40
- range: `${options.exactO3rVersion ? '' : '~'}${depsInfo.packageVersion}`,
41
- types: (0, schematics_2.getProjectNewDependenciesTypes)(workspaceProject)
42
- }],
43
- ngAddOptions: { exactO3rVersion: options.exactO3rVersion }
44
- };
45
- return acc;
46
- }, (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
47
- const externalDependenciesInfo = (0, schematics_2.getExternalDependenciesInfo)({
48
- devDependenciesToInstall,
49
- dependenciesToInstall,
50
- projectType: workspaceProject?.projectType,
51
- projectPackageJson,
52
- o3rPackageJsonPath: packageJsonPath
53
- }, context.logger);
54
- return (0, schematics_1.chain)([
55
- (0, schematics_2.removePackages)(['@otter/mobile']),
56
- (0, schematics_2.setupDependencies)({
57
- projectName: options.projectName,
58
- dependencies: {
59
- ...dependencies,
60
- ...externalDependenciesInfo
61
- },
62
- ngAddToRun: depsInfo.o3rPeerDeps
63
- })
64
- ]);
65
- };
32
+ return (0, schematics_1.chain)([
33
+ (0, schematics_2.ngAddDependenciesRule)(options, packageJsonPath, { dependenciesToInstall, devDependenciesToInstall })
34
+ ]);
66
35
  }
67
36
  /**
68
37
  * Add Otter mobile to an Angular Project
@@ -1,8 +1,4 @@
1
- import type { SchematicOptionObject } from '@o3r/schematics';
2
- export interface NgAddSchematicsSchema extends SchematicOptionObject {
3
- /** Project name */
4
- projectName?: string | undefined;
5
- /** Use a pinned version for otter packages */
6
- exactO3rVersion?: boolean;
1
+ import type { NgAddOptions, SchematicOptionObject } from '@o3r/schematics';
2
+ export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
7
3
  }
8
4
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,qBAAqB;CAAG"}