Skip to content

Commit 33c248b

Browse files
committed
eliminate dependency on glob
glob has restrictions on what node versions it supports
1 parent 9d0d8b1 commit 33c248b

File tree

3 files changed

+23
-91
lines changed

3 files changed

+23
-91
lines changed

fly.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import crypto from 'node:crypto'
22
import fs from 'node:fs'
3-
import { glob } from 'glob'
43
import inquirer from 'inquirer'
54
import path from 'node:path'
65
import { execSync } from 'node:child_process'
@@ -318,7 +317,9 @@ GDF.extend(class extends GDF {
318317

319318
async selectShopifyConfig() {
320319
// Search for both shopify.app.toml and shopify.app.*.toml
321-
const files = await glob('shopify.app{.,.*.}toml')
320+
const files = fs.readdirSync('.')
321+
.filter(file => file.startsWith('shopify.app.') && file.endsWith('.toml'))
322+
.sort()
322323

323324
if (files.length === 0) {
324325
return null

package-lock.json

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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"chalk": "^5.4.1",
2323
"diff": "^7.0.0",
2424
"ejs": "^3.1.10",
25-
"glob": "^10.3.3",
2625
"inquirer": "^12.4.1",
2726
"shell-quote": "^1.8.2",
2827
"yargs": "^17.7.2"

0 commit comments

Comments
 (0)