Skip to content

Commit 6b65f39

Browse files
authored
Make sure ProAngular components installed are version 20 (#5)
1 parent 523ee76 commit 6b65f39

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Angular specific
2+
dist/
23
/dist/
34

45
# Node modules and dependency files

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@proangular/pro-ject",
3-
"version": "20.0.1",
3+
"version": "20.0.2",
44
"description": "A lightweight Node CLI that guides `ng new` and scaffolds an Angular 20+ workspace with opinionated structure and best-practice defaults.",
55
"author": "Pro Angular <webmaster@proangular.com>",
66
"private": false,

src/steps/postCreatePackages.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ export async function postCreatePackages(
146146
await addHusky(ctx);
147147
}
148148

149-
if (initialPrompts.includeLuxon) {
150-
log("Adding Luxon DateTime support...");
151-
await addLuxon(ctx);
152-
}
153-
154149
if (initialPrompts.includeIoTs) {
155150
log("Adding io-ts for runtime type checking...");
156151
await addIoTs(ctx);
@@ -175,21 +170,22 @@ export async function postCreatePackages(
175170

176171
if (proPackagesPrompts) {
177172
const proPackagesInstall: string[] = [];
173+
const proAngularVersion = "@^20";
178174

179175
if (proPackagesPrompts.includeIoProForm) {
180-
proPackagesInstall.push("@proangular/pro-form");
176+
proPackagesInstall.push(`@proangular/pro-form${proAngularVersion}`);
181177
}
182178

183179
if (proPackagesPrompts.includeIoProTable) {
184-
proPackagesInstall.push("@proangular/pro-table");
180+
proPackagesInstall.push(`@proangular/pro-table${proAngularVersion}`);
185181
}
186182

187183
if (proPackagesPrompts.includeIoNgxScrollTop) {
188-
proPackagesInstall.push("@proangular/ngx-scroll-top");
184+
proPackagesInstall.push(`@proangular/ngx-scroll-top${proAngularVersion}`);
189185
}
190186

191187
if (proPackagesPrompts.includeIoNgxGist) {
192-
proPackagesInstall.push("@proangular/ngx-gist");
188+
proPackagesInstall.push(`@proangular/ngx-gist${proAngularVersion}`);
193189
}
194190

195191
if (proPackagesInstall.length) {
@@ -202,6 +198,11 @@ export async function postCreatePackages(
202198
}
203199
}
204200

201+
if (initialPrompts.includeLuxon) {
202+
log("Adding Luxon DateTime support...");
203+
await addLuxon(ctx);
204+
}
205+
205206
if (structure.createStructure) {
206207
await addOpinionatedStructure(ctx);
207208
} else {

0 commit comments

Comments
 (0)