@smapiot/pilet-template-angular 0.15.4 → 0.15.5
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/lib/index.js +2 -0
- package/package.json +3 -3
- package/src/index.ts +2 -0
package/lib/index.js
CHANGED
|
@@ -1441,6 +1441,8 @@ var src_default = (0, import_template_utils.createPiletTemplateFactory)(root, (p
|
|
|
1441
1441
|
}
|
|
1442
1442
|
if (typeof args.ngVersion !== "number") {
|
|
1443
1443
|
args.ngVersion = detectNgVersion(piralInstance);
|
|
1444
|
+
} else if (args.ngVersion !== detectNgVersion(piralInstance)) {
|
|
1445
|
+
args.standalone = true;
|
|
1444
1446
|
}
|
|
1445
1447
|
const ngVersion = `^${args.ngVersion}`;
|
|
1446
1448
|
const packageJson = args.standalone ? getStandalonePackageJson(details.cliVersion, ngVersion) : getStandardPackageJson(details.cliVersion, ngVersion);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smapiot/pilet-template-angular",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.5",
|
|
4
4
|
"description": "Official scaffolding template for pilets: 'angular'.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral-cli",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@smapiot/template-utils": "^0.15.
|
|
57
|
+
"@smapiot/template-utils": "^0.15.5"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "65157b5b9c648b8f2ec324c19e2fb0cdc18c91ff"
|
|
60
60
|
}
|
package/src/index.ts
CHANGED
|
@@ -19,6 +19,8 @@ export default createPiletTemplateFactory<AngularPiletArgs>(root, (projectRoot,
|
|
|
19
19
|
|
|
20
20
|
if (typeof args.ngVersion !== 'number') {
|
|
21
21
|
args.ngVersion = detectNgVersion(piralInstance);
|
|
22
|
+
} else if (args.ngVersion !== detectNgVersion(piralInstance)) {
|
|
23
|
+
args.standalone = true;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
const ngVersion = `^${args.ngVersion}`;
|