@ionic/angular 7.5.5-dev.11699997410.16566960 → 7.5.5-dev.11700239837.1925bbdb

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": "@ionic/angular",
3
- "version": "7.5.5-dev.11699997410.16566960",
3
+ "version": "7.5.5-dev.11700239837.1925bbdb",
4
4
  "description": "Angular specific wrappers for @ionic/core",
5
5
  "keywords": [
6
6
  "ionic",
@@ -56,7 +56,7 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@ionic/core": "7.5.5-dev.11699997410.16566960",
59
+ "@ionic/core": "7.5.5-dev.11700239837.1925bbdb",
60
60
  "ionicons": "^7.0.0",
61
61
  "jsonc-parser": "^3.0.0",
62
62
  "tslib": "^2.3.0"
@@ -105,14 +105,16 @@ function addIonicons(projectName, projectSourceRoot) {
105
105
  return host;
106
106
  };
107
107
  }
108
- function addIonicConfig() {
108
+ function addIonicConfig(projectSourceRoot) {
109
109
  return (host) => {
110
- const ionicConfig = `ionic.config.json`;
110
+ const ionicConfig = 'ionic.config.json';
111
111
  if (!host.exists(ionicConfig)) {
112
+ const hasAppModule = host.exists(`${projectSourceRoot}/app/app.module.ts`);
113
+ const type = hasAppModule ? 'angular' : 'angular-standalone';
112
114
  host.create(ionicConfig, JSON.stringify({
113
115
  name: 'ionic-app',
114
116
  app_id: '',
115
- type: 'angular',
117
+ type,
116
118
  integrations: {},
117
119
  }, null, 2));
118
120
  }
@@ -175,7 +177,7 @@ function ngAdd(options) {
175
177
  addIonicBuilder(options.project),
176
178
  addIonicStyles(options.project, sourcePath),
177
179
  addIonicons(options.project, sourcePath),
178
- addIonicConfig(),
180
+ addIonicConfig(sourcePath),
179
181
  (0, schematics_1.mergeWith)(rootTemplateSource),
180
182
  // install freshly added dependencies
181
183
  installNodeDeps(),
@@ -78,6 +78,10 @@ function addArchitectBuilder(host, projectName, builderName, builderOpts) {
78
78
  writeConfig(host, config);
79
79
  }
80
80
  exports.addArchitectBuilder = addArchitectBuilder;
81
+ /**
82
+ * Updates the angular.json to add an additional schematic collection
83
+ * to the CLI configuration.
84
+ */
81
85
  function addCli(host, collectionName) {
82
86
  const angularJson = readConfig(host);
83
87
  if (angularJson.cli === undefined) {
@@ -90,6 +94,7 @@ function addCli(host, collectionName) {
90
94
  writeConfig(host, angularJson);
91
95
  }
92
96
  exports.addCli = addCli;
97
+ // TODO can remove [property: string]: any; when upgrading @angular/cli dev-dep to v16 or later
93
98
  function addSchematics(host, schematicName, schematicOpts) {
94
99
  const angularJson = readConfig(host);
95
100
  if (angularJson.schematics === undefined) {