Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,384 changes: 3,207 additions & 177 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@oclif/core": "^4",
"@oclif/plugin-help": "^6",
"@oclif/plugin-plugins": "^5",
"@shopify/cli-kit": "^3.80.7",
"chokidar": "^4.0.3",
"deepmerge": "^4.3.1",
"fs-extra": "^11.3.0",
Expand All @@ -43,7 +44,7 @@
"@types/chai": "^4",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.10",
"@types/node": "^18",
"@types/node": "^18.19.110",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"chai": "^4",
Expand Down
6 changes: 3 additions & 3 deletions src/commands/theme/component/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* - Runs 'shopify theme dev' on the temporary development directory to preview your work
*/

import { downloadGitRepository } from '@shopify/cli-kit/node/git'
import chokidar from 'chokidar'
import path from 'node:path'
import { URL } from 'node:url'
Expand All @@ -15,7 +16,6 @@ import Args from '../../../utilities/args.js'
import BaseCommand from '../../../utilities/base-command.js'
import { cleanDir, syncFiles } from '../../../utilities/files.js'
import Flags from '../../../utilities/flags.js'
import { cloneTheme } from '../../../utilities/git.js'
import { copySetupComponentFiles } from '../../../utilities/setup.js'
import GenerateTemplateMap from '../generate/template-map.js'
import Install from './install.js'
Expand Down Expand Up @@ -80,7 +80,7 @@ export default class Dev extends BaseCommand {
// Get theme directory
const themeDir = await this.getThemeDirectory(devDir)

this.log(`Building theme in ${devDir}...`)
this.log(`Building theme...`)

const buildThemeParams: BuildThemeParams = {
componentSelector,
Expand Down Expand Up @@ -158,7 +158,7 @@ export default class Dev extends BaseCommand {
if (host === 'github.com' || host.endsWith('.github.com')) {
const themeDir = path.join(devDir, '.repo')
this.log(`Cloning theme from ${this.flags[Flags.THEME_DIR]} into dev directory ${devDir}`)
await cloneTheme(this.flags[Flags.THEME_DIR], themeDir)
await downloadGitRepository({ destination: themeDir, repoUrl: this.flags[Flags.THEME_DIR] })
return themeDir
}

Expand Down
Loading