create-shopify-firebase-app 2.0.5 → 2.0.6
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 +3 -9
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -652,8 +652,6 @@ export async function run(argv) {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
// ── Create / Link app via Shopify CLI ──────────────────────
|
|
655
|
-
// Must `cd` into project dir — Shopify CLI uses process.cwd(),
|
|
656
|
-
// not spawn's cwd option, for TOML generation.
|
|
657
655
|
console.log();
|
|
658
656
|
if (shopifyAction === "create") {
|
|
659
657
|
info(`Creating a new Shopify app: ${c.cyan}${appName}${c.reset}`);
|
|
@@ -663,16 +661,12 @@ export async function run(argv) {
|
|
|
663
661
|
}
|
|
664
662
|
console.log();
|
|
665
663
|
|
|
666
|
-
// Use
|
|
667
|
-
|
|
668
|
-
? `cd /d "${outputDir}" && shopify app config link`
|
|
669
|
-
: `cd "${outputDir}" && shopify app config link`;
|
|
670
|
-
|
|
664
|
+
// Use --path flag so Shopify CLI reads/writes config in the project dir,
|
|
665
|
+
// and pass cwd to ensure process.cwd() matches.
|
|
671
666
|
try {
|
|
672
|
-
await execInteractive(
|
|
667
|
+
await execInteractive(`shopify app config link --path "${outputDir}"`, outputDir);
|
|
673
668
|
} catch {
|
|
674
669
|
// Shopify CLI may exit non-zero even after creating/linking the app
|
|
675
|
-
// (e.g. "directory doesn't have a package.json" warning)
|
|
676
670
|
warn("Shopify CLI exited with a warning");
|
|
677
671
|
}
|
|
678
672
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-shopify-firebase-app",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Create Shopify apps powered by Firebase — multi-page dashboard, App Bridge, Polaris components, TypeScript or JavaScript. Deploy for free.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shopify",
|