@ng-shangjc/cli 1.0.2-beta → 1.0.3-beta
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/dist/commands/install.js
CHANGED
|
@@ -171,7 +171,9 @@ async function installComponent(componentName, options) {
|
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
try {
|
|
174
|
-
// Install
|
|
174
|
+
// Install the component package itself first
|
|
175
|
+
await installComponentPackage(componentName);
|
|
176
|
+
// Install dependencies after component package is available
|
|
175
177
|
if (dependencies.includes('utils')) {
|
|
176
178
|
await installUtils();
|
|
177
179
|
}
|
|
@@ -180,8 +182,6 @@ async function installComponent(componentName, options) {
|
|
|
180
182
|
if (externalDeps.length > 0) {
|
|
181
183
|
await installExternalDependencies(externalDeps, componentName);
|
|
182
184
|
}
|
|
183
|
-
// Install the component package itself
|
|
184
|
-
await installComponentPackage(componentName);
|
|
185
185
|
// Create destination directory
|
|
186
186
|
const destDir = path.join(process.cwd(), componentsPath, componentName);
|
|
187
187
|
await fs.ensureDir(destDir);
|
package/package.json
CHANGED
package/src/commands/install.ts
CHANGED
|
@@ -163,7 +163,10 @@ export async function installComponent(
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
try {
|
|
166
|
-
// Install
|
|
166
|
+
// Install the component package itself first
|
|
167
|
+
await installComponentPackage(componentName);
|
|
168
|
+
|
|
169
|
+
// Install dependencies after component package is available
|
|
167
170
|
if (dependencies.includes('utils')) {
|
|
168
171
|
await installUtils();
|
|
169
172
|
}
|
|
@@ -174,9 +177,6 @@ export async function installComponent(
|
|
|
174
177
|
await installExternalDependencies(externalDeps, componentName);
|
|
175
178
|
}
|
|
176
179
|
|
|
177
|
-
// Install the component package itself
|
|
178
|
-
await installComponentPackage(componentName);
|
|
179
|
-
|
|
180
180
|
// Create destination directory
|
|
181
181
|
const destDir = path.join(process.cwd(), componentsPath, componentName);
|
|
182
182
|
await fs.ensureDir(destDir);
|