@pacaf/wizard-ux 3.4.2 → 3.4.3
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/index.html
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
30
30
|
</style>
|
|
31
|
-
<script type="module" crossorigin src="/assets/index-
|
|
31
|
+
<script type="module" crossorigin src="/assets/index-DJRPvUY4.js"></script>
|
|
32
32
|
</head>
|
|
33
33
|
<body>
|
|
34
34
|
<div id="root"><div id="boot"><div class="ring"></div></div></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pacaf/wizard-ux",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Browser-based setup wizard for Power Apps Code Apps (parallel to @pacaf/wizard CLI).",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react-dom": "^19.0.0",
|
|
39
39
|
"react-resizable-panels": "^2.1.7",
|
|
40
40
|
"react-router-dom": "^7.1.0",
|
|
41
|
-
"@pacaf/wizard": "3.4.
|
|
41
|
+
"@pacaf/wizard": "3.4.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "^19.0.0",
|
|
@@ -194,6 +194,27 @@ export default {
|
|
|
194
194
|
log.info(`Existing appId detected (${preInfo.appId}) — this push is an UPDATE (republish in place).`);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// PRECONDITION (issue #81 follow-up): `pac code push -s` only associates the
|
|
198
|
+
// app with its solution if that UNIQUE name already EXISTS in the target
|
|
199
|
+
// environment. If it does not, pac SILENTLY publishes into the Default
|
|
200
|
+
// solution. On the FIRST push, verify the solution exists FIRST and STOP if
|
|
201
|
+
// it is absent — never let the CREATE land the app outside its solution.
|
|
202
|
+
if (isFirstPush) {
|
|
203
|
+
log.info(`Verifying solution "${solutionUniqueName}" exists in the target environment...`);
|
|
204
|
+
const solCheck = PAC_TARGET.solutionExistsInSelectedEnv({ pac, uniqueName: solutionUniqueName, cwd: projectDir });
|
|
205
|
+
if (solCheck.status === 'absent') {
|
|
206
|
+
throw new Error(`Solution "${solutionUniqueName}" does not exist in the target environment. `
|
|
207
|
+
+ `Running "pac code push -s ${solutionUniqueName}" now would SILENTLY publish the app into the Default solution `
|
|
208
|
+
+ `(the recurring "app not in my solution" failure). Create the solution in this environment (Maker Portal → Solutions → New solution, or reuse an existing one), `
|
|
209
|
+
+ `then re-run this step. Tip: the -s value must be the solution UNIQUE name, not the display name.`);
|
|
210
|
+
}
|
|
211
|
+
if (solCheck.status === 'unknown') {
|
|
212
|
+
log.warn(`Could not confirm solution "${solutionUniqueName}" exists (${solCheck.reason}). Proceeding, but if the app lands in the Default solution, verify the unique name is correct.`);
|
|
213
|
+
} else {
|
|
214
|
+
log.ok(`Solution "${solutionUniqueName}" exists in the target environment — safe to push with -s`);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
197
218
|
const pushResult = await runFileCapture(log, pac, pushArgs, { cwd: projectDir });
|
|
198
219
|
const pushOutput = `${pushResult.stdout}\n${pushResult.stderr}`;
|
|
199
220
|
if (!pushResult.ok || PAC_HTTP_ERROR_RE.test(pushOutput)) throw new Error('pac code push failed. Check the live output above, then retry.');
|