Skip to content

Commit ac57f1a

Browse files
committed
Merge branch 'main' into dependabot-npm_and_yarn-packages-ui-extensions-server-kit-vite-6.3.6
2 parents 3c48130 + e670c33 commit ac57f1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1570
-801
lines changed

.changeset/heavy-berries-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/app': patch
3+
---
4+
5+
Show IDs next to organization names when there are duplicates

.changeset/poor-ghosts-mix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/app': patch
3+
---
4+
5+
Modify app access config update message for legacy install flow

.github/workflows/shopify-cli.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ on:
3535
branches:
3636
- main
3737
- stable/3.*
38+
paths-ignore:
39+
- '**.md'
40+
- 'docs/**'
41+
- 'RELEASE_NOTES/**'
3842
pull_request:
43+
paths-ignore:
44+
- '**.md'
45+
- 'docs/**'
46+
- 'RELEASE_NOTES/**'
3947
merge_group:
4048

4149

@@ -205,14 +213,15 @@ jobs:
205213
with:
206214
node-version: ${{ matrix.node }}
207215
- name: Post the knip results
216+
if: github.event.pull_request.user.login != 'dependabot[bot]'
208217
uses: codex-/knip-reporter@f717532b6707d95de06b9bb2eb8ece46393f018f # pin@v2
209218
with:
210219
verbose: true
211220

212221
pr-platform-agnostic-graphql-schema:
213222
name: '[PR] Check graphql-codegen has been run'
214223
runs-on: ${{ matrix.os }}
215-
if: ${{ github.event_name == 'pull_request' }}
224+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]' }}
216225
timeout-minutes: 30
217226
strategy:
218227
matrix:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Learn more in the [commands docs](./packages/cli/README.md#commands).
1313

1414
<p>&nbsp;</p>
1515

16-
### Before you begin ###
16+
## Before you begin
1717

1818
Install the latest version of [Node.js](https://nodejs.org/en/download/) and [npm](https://docs.npmjs.com/getting-started) (or another package manager of your choice).
1919

docs-shopify.dev/generated/generated_static_pages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"type": "Generic",
9696
"anchorLink": "help",
9797
"title": "Where to get help",
98-
"sectionContent": "\n- [Shopify Community Forums](https://community.shopify.com/) - Visit our forums to connect with the community and learn more about Shopify CLI development.\n- [Open a GitHub issue](https://github.com/shopify/cli/issues) - To report bugs or request new features, open an issue in the Shopify CLI repository.\n"
98+
"sectionContent": "\n- [Shopify Community Forums](https://community.shopify.dev/c/shopify-cli-libraries/14) - Visit our forums to connect with the community and learn more about Shopify CLI development.\n- [Open a GitHub issue](https://github.com/shopify/cli/issues) - To report bugs or request new features, open an issue in the Shopify CLI repository.\n"
9999
},
100100
{
101101
"type": "Resource",

docs-shopify.dev/static/cli.doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Or, run the \`help\` command to get this information right in your terminal.
109109
anchorLink: 'help',
110110
title: 'Where to get help',
111111
sectionContent: `
112-
- [Shopify Community Forums](https://community.shopify.com/) - Visit our forums to connect with the community and learn more about Shopify CLI development.
112+
- [Shopify Community Forums](https://community.shopify.dev/c/shopify-cli-libraries/14) - Visit our forums to connect with the community and learn more about Shopify CLI development.
113113
- [Open a GitHub issue](https://github.com/shopify/cli/issues) - To report bugs or request new features, open an issue in the Shopify CLI repository.
114114
`,
115115
},

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@graphql-codegen/near-operation-file-preset": "3.0.0",
4545
"@graphql-codegen/typed-document-node": "5.0.11",
4646
"@graphql-codegen/typescript-operations": "4.6.1",
47-
"@nx/eslint-plugin": "21.1.2",
48-
"@nx/workspace": "21.1.2",
47+
"@nx/eslint-plugin": "21.5.2",
48+
"@nx/workspace": "21.5.2",
4949
"@octokit/rest": "22.0.0",
5050
"@shopify/eslint-plugin-cli": "file:packages/eslint-plugin-cli",
5151
"@shopify/generate-docs": "0.15.6",
@@ -69,7 +69,7 @@
6969
"knip": "5.59.1",
7070
"liquidjs": "10.20.1",
7171
"node-fetch": "^3.3.2",
72-
"nx": "21.1.2",
72+
"nx": "21.5.2",
7373
"oclif": "4.20.1",
7474
"octokit-plugin-create-pull-request": "^3.12.2",
7575
"pathe": "1.1.1",

packages/app/src/cli/api/graphql/app-management/generated/specifications.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export type FetchSpecificationsQuery = {
1616
uidStrategy:
1717
| {appModuleLimit: number; isClientProvided: boolean}
1818
| {appModuleLimit: number; isClientProvided: boolean}
19+
| {appModuleLimit: number; isClientProvided: boolean}
1920
validationSchema?: {jsonSchema: string} | null
2021
}[]
2122
}

packages/app/src/cli/models/app/app.test-data.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ export async function testAppConfigExtensions(emptyConfig = false, directory?: s
325325
export async function testAppAccessConfigExtension(
326326
emptyConfig = false,
327327
directory?: string,
328+
useLegacyInstallFlow = true,
328329
): Promise<ExtensionInstance> {
329330
const configuration = emptyConfig
330331
? ({} as unknown as BaseConfigType)
@@ -334,7 +335,7 @@ export async function testAppAccessConfigExtension(
334335
},
335336
access_scopes: {
336337
scopes: 'read_products,write_products',
337-
use_legacy_install_flow: true,
338+
use_legacy_install_flow: useLegacyInstallFlow,
338339
},
339340
auth: {
340341
redirect_urls: ['https://example.com/auth/callback'],

packages/app/src/cli/models/extensions/extension-instance.ts

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ export const CONFIG_EXTENSION_IDS: string[] = [
4545
WebhooksSpecIdentifier,
4646
]
4747

48-
type BuildMode = 'theme' | 'function' | 'ui' | 'flow' | 'tax_calculation' | 'none'
49-
5048
/**
5149
* Class that represents an instance of a local extension
5250
* Before creating this class we've validated that:
@@ -342,7 +340,7 @@ export class ExtensionInstance<TConfiguration extends BaseConfigType = BaseConfi
342340
}
343341

344342
async build(options: ExtensionBuildOptions): Promise<void> {
345-
const mode = this.buildMode(options)
343+
const mode = this.specification.buildConfig.mode
346344

347345
switch (mode) {
348346
case 'theme':
@@ -363,10 +361,7 @@ export class ExtensionInstance<TConfiguration extends BaseConfigType = BaseConfi
363361
}
364362

365363
async buildForBundle(options: ExtensionBuildOptions, bundleDirectory: string, outputId?: string) {
366-
if (this.features.includes('bundling')) {
367-
// Modules that are going to be inclued in the bundle should be built in the bundle directory
368-
this.outputPath = this.getOutputPathForDirectory(bundleDirectory, outputId)
369-
}
364+
this.outputPath = this.getOutputPathForDirectory(bundleDirectory, outputId)
370365

371366
await this.build(options)
372367
if (this.isThemeExtension) {
@@ -380,11 +375,9 @@ export class ExtensionInstance<TConfiguration extends BaseConfigType = BaseConfi
380375
async copyIntoBundle(options: ExtensionBuildOptions, bundleDirectory: string, extensionUuid?: string) {
381376
const defaultOutputPath = this.outputPath
382377

383-
if (this.features.includes('bundling')) {
384-
this.outputPath = this.getOutputPathForDirectory(bundleDirectory, extensionUuid)
385-
}
378+
this.outputPath = this.getOutputPathForDirectory(bundleDirectory, extensionUuid)
386379

387-
const buildMode = this.buildMode(options)
380+
const buildMode = this.specification.buildConfig.mode
388381

389382
if (this.isThemeExtension) {
390383
await bundleThemeExtension(this, options)
@@ -464,25 +457,6 @@ export class ExtensionInstance<TConfiguration extends BaseConfigType = BaseConfi
464457
await this.specification.contributeToSharedTypeFile?.(this, typeDefinitionsByFile)
465458
}
466459

467-
private buildMode(options: ExtensionBuildOptions): BuildMode {
468-
if (this.isThemeExtension) {
469-
return 'theme'
470-
} else if (this.isFunctionExtension) {
471-
return 'function'
472-
} else if (this.features.includes('esbuild')) {
473-
return 'ui'
474-
} else if (this.specification.identifier === 'flow_template' && options.environment === 'production') {
475-
return 'flow'
476-
}
477-
478-
// Workaround for tax_calculations because they remote spec NEEDS a valid js file to be included.
479-
if (this.type === 'tax_calculation') {
480-
return 'tax_calculation'
481-
}
482-
483-
return 'none'
484-
}
485-
486460
private buildHandle() {
487461
switch (this.specification.uidStrategy) {
488462
case 'single':

0 commit comments

Comments
 (0)