@shopify/cli-kit 3.19.0 → 3.20.1

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/api/graphql/all_app_extension_registrations.d.ts +6 -0
  3. package/dist/api/graphql/all_app_extension_registrations.js +6 -0
  4. package/dist/api/graphql/all_app_extension_registrations.js.map +1 -1
  5. package/dist/cli.d.ts +1 -0
  6. package/dist/cli.js +5 -0
  7. package/dist/cli.js.map +1 -1
  8. package/dist/constants.d.ts +2 -0
  9. package/dist/constants.js +2 -0
  10. package/dist/constants.js.map +1 -1
  11. package/dist/environment/local.d.ts +2 -0
  12. package/dist/environment/local.js +6 -0
  13. package/dist/environment/local.js.map +1 -1
  14. package/dist/error.d.ts +13 -4
  15. package/dist/error.js +20 -2
  16. package/dist/error.js.map +1 -1
  17. package/dist/node/base-command.d.ts +11 -5
  18. package/dist/node/base-command.js +126 -3
  19. package/dist/node/base-command.js.map +1 -1
  20. package/dist/node/cli.js +3 -1
  21. package/dist/node/cli.js.map +1 -1
  22. package/dist/node/error-handler.d.ts +3 -3
  23. package/dist/node/error-handler.js +5 -4
  24. package/dist/node/error-handler.js.map +1 -1
  25. package/dist/node/ruby.d.ts +3 -1
  26. package/dist/node/ruby.js +2 -1
  27. package/dist/node/ruby.js.map +1 -1
  28. package/dist/private/node/ui/components/Link.d.ts +1 -1
  29. package/dist/private/node/ui/components/Link.js +1 -1
  30. package/dist/private/node/ui/components/Link.js.map +1 -1
  31. package/dist/private/node/ui/components/TokenizedText.d.ts +1 -1
  32. package/dist/private/node/ui/components/TokenizedText.js.map +1 -1
  33. package/dist/public/node/error.d.ts +4 -0
  34. package/dist/public/node/error.js +5 -0
  35. package/dist/public/node/error.js.map +1 -0
  36. package/dist/public/node/presets.d.ts +3 -1
  37. package/dist/public/node/presets.js +3 -3
  38. package/dist/public/node/presets.js.map +1 -1
  39. package/dist/session.d.ts +3 -5
  40. package/dist/session.js +7 -10
  41. package/dist/session.js.map +1 -1
  42. package/dist/testing/fixtures/render-concurrent.js +1 -3
  43. package/dist/testing/fixtures/render-concurrent.js.map +1 -1
  44. package/dist/testing/ui.js +5 -3
  45. package/dist/testing/ui.js.map +1 -1
  46. package/dist/tsconfig.tsbuildinfo +1 -1
  47. package/dist/version.d.ts +0 -2
  48. package/dist/version.js +1 -4
  49. package/dist/version.js.map +1 -1
  50. package/package.json +5 -1
@@ -1 +1 @@
1
- {"version":3,"file":"render-concurrent.js","sourceRoot":"","sources":["../../../src/testing/fixtures/render-concurrent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,kBAAkB,CAAA;AAEhD,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA;AAC7C,IAAI,qBAAiC,CAAA;AAErC,MAAM,cAAc,GAAG,IAAI,OAAO,CAAO,UAAU,OAAO,EAAE,OAAO;IACjE,qBAAqB,GAAG,OAAO,CAAA;AACjC,CAAC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG;IACrB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,KAAK,EAAE,MAAgB,EAAE,OAAiB,EAAE,OAAe,EAAE,EAAE;QACrE,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QACrC,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QAErC,qBAAqB,EAAE,CAAA;IACzB,CAAC;CACF,CAAA;AAED,MAAM,eAAe,GAAG;IACtB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,KAAK,EAAE,MAAgB,EAAE,OAAiB,EAAE,OAAe,EAAE,EAAE;QACrE,MAAM,cAAc,CAAA;QAEpB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAA;QACvC,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;IACxC,CAAC;CACF,CAAA;AAED,mEAAmE;AACnE,gBAAgB,CAAC,EAAC,SAAS,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC,EAAE,eAAe,EAAC,CAAC,CAAA","sourcesContent":["import {Signal} from '../../abort.js'\nimport {Writable} from 'form-data'\nimport {renderConcurrent} from '@shopify/cli-kit/node/ui'\nimport {AbortController} from 'abort-controller'\n\nconst abortController = new AbortController()\nlet backendPromiseResolve: () => void\n\nconst backendPromise = new Promise<void>(function (resolve, _reject) {\n backendPromiseResolve = resolve\n})\n\nconst backendProcess = {\n prefix: 'backend',\n action: async (stdout: Writable, _stderr: Writable, _signal: Signal) => {\n stdout.write('first backend message')\n stdout.write('second backend message')\n stdout.write('third backend message')\n\n backendPromiseResolve()\n },\n}\n\nconst frontendProcess = {\n prefix: 'frontend',\n action: async (stdout: Writable, _stderr: Writable, _signal: Signal) => {\n await backendPromise\n\n stdout.write('first frontend message')\n stdout.write('second frontend message')\n stdout.write('third frontend message')\n },\n}\n\n// eslint-disable-next-line @typescript-eslint/no-floating-promises\nrenderConcurrent({processes: [backendProcess, frontendProcess], abortController})\n"]}
1
+ {"version":3,"file":"render-concurrent.js","sourceRoot":"","sources":["../../../src/testing/fixtures/render-concurrent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAA;AAEzD,IAAI,qBAAiC,CAAA;AAErC,MAAM,cAAc,GAAG,IAAI,OAAO,CAAO,UAAU,OAAO,EAAE,OAAO;IACjE,qBAAqB,GAAG,OAAO,CAAA;AACjC,CAAC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG;IACrB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,KAAK,EAAE,MAAgB,EAAE,OAAiB,EAAE,OAAe,EAAE,EAAE;QACrE,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QACrC,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QAErC,qBAAqB,EAAE,CAAA;IACzB,CAAC;CACF,CAAA;AAED,MAAM,eAAe,GAAG;IACtB,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,KAAK,EAAE,MAAgB,EAAE,OAAiB,EAAE,OAAe,EAAE,EAAE;QACrE,MAAM,cAAc,CAAA;QAEpB,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;QACtC,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAA;QACvC,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAA;IACxC,CAAC;CACF,CAAA;AAED,mEAAmE;AACnE,gBAAgB,CAAC,EAAC,SAAS,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC,EAAC,CAAC,CAAA","sourcesContent":["import {Signal} from '../../abort.js'\nimport {Writable} from 'form-data'\nimport {renderConcurrent} from '@shopify/cli-kit/node/ui'\n\nlet backendPromiseResolve: () => void\n\nconst backendPromise = new Promise<void>(function (resolve, _reject) {\n backendPromiseResolve = resolve\n})\n\nconst backendProcess = {\n prefix: 'backend',\n action: async (stdout: Writable, _stderr: Writable, _signal: Signal) => {\n stdout.write('first backend message')\n stdout.write('second backend message')\n stdout.write('third backend message')\n\n backendPromiseResolve()\n },\n}\n\nconst frontendProcess = {\n prefix: 'frontend',\n action: async (stdout: Writable, _stderr: Writable, _signal: Signal) => {\n await backendPromise\n\n stdout.write('first frontend message')\n stdout.write('second frontend message')\n stdout.write('third frontend message')\n },\n}\n\n// eslint-disable-next-line @typescript-eslint/no-floating-promises\nrenderConcurrent({processes: [backendProcess, frontendProcess]})\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as path from '../path';
2
- import { execa } from 'execa';
2
+ import { execaNode } from 'execa';
3
3
  export const run = (fixture, props) => {
4
4
  const env = {
5
5
  ...process.env,
@@ -7,9 +7,11 @@ export const run = (fixture, props) => {
7
7
  // we need this because ink treats the CI environment differently
8
8
  // by only writing the last frame to stdout on unmount
9
9
  // See more here https://github.com/vadimdemedes/ink/pull/266
10
- CI: 'false',
10
+ // this way local and CI tests behave the same
11
+ CI: 'true',
11
12
  };
12
- return execa('ts-node-esm', [path.resolve(__dirname, `fixtures/${fixture}.ts`)], {
13
+ // we want to load the compiled js directly in order avoid unnecessary transpilation
14
+ return execaNode(path.resolve(__dirname, `../../dist/testing/fixtures/${fixture}.js`), {
13
15
  cwd: __dirname,
14
16
  env,
15
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/testing/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAC,KAAK,EAAoB,MAAM,OAAO,CAAA;AAI9C,MAAM,CAAC,MAAM,GAAG,GAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;IACzC,MAAM,GAAG,GAAG;QACV,GAAG,OAAO,CAAC,GAAG;QACd,GAAG,KAAK,EAAE,GAAG;QACb,iEAAiE;QACjE,sDAAsD;QACtD,6DAA6D;QAC7D,EAAE,EAAE,OAAO;KACZ,CAAA;IAED,OAAO,KAAK,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,YAAY,OAAO,KAAK,CAAC,CAAC,EAAE;QAC/E,GAAG,EAAE,SAAS;QACd,GAAG;KACJ,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import * as path from '../path'\nimport {execa, ExecaChildProcess} from 'execa'\n\ntype Run = (fixture: string, props?: {env?: {[key: string]: unknown}}) => ExecaChildProcess<string>\n\nexport const run: Run = (fixture, props) => {\n const env = {\n ...process.env,\n ...props?.env,\n // we need this because ink treats the CI environment differently\n // by only writing the last frame to stdout on unmount\n // See more here https://github.com/vadimdemedes/ink/pull/266\n CI: 'false',\n }\n\n return execa('ts-node-esm', [path.resolve(__dirname, `fixtures/${fixture}.ts`)], {\n cwd: __dirname,\n env,\n })\n}\n"]}
1
+ {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/testing/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAoB,SAAS,EAAC,MAAM,OAAO,CAAA;AAIlD,MAAM,CAAC,MAAM,GAAG,GAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;IACzC,MAAM,GAAG,GAAG;QACV,GAAG,OAAO,CAAC,GAAG;QACd,GAAG,KAAK,EAAE,GAAG;QACb,iEAAiE;QACjE,sDAAsD;QACtD,6DAA6D;QAC7D,8CAA8C;QAC9C,EAAE,EAAE,MAAM;KACX,CAAA;IAED,oFAAoF;IACpF,OAAO,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,+BAA+B,OAAO,KAAK,CAAC,EAAE;QACrF,GAAG,EAAE,SAAS;QACd,GAAG;KACJ,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import * as path from '../path'\nimport {ExecaChildProcess, execaNode} from 'execa'\n\ntype Run = (fixture: string, props?: {env?: {[key: string]: unknown}}) => ExecaChildProcess<string>\n\nexport const run: Run = (fixture, props) => {\n const env = {\n ...process.env,\n ...props?.env,\n // we need this because ink treats the CI environment differently\n // by only writing the last frame to stdout on unmount\n // See more here https://github.com/vadimdemedes/ink/pull/266\n // this way local and CI tests behave the same\n CI: 'true',\n }\n\n // we want to load the compiled js directly in order avoid unnecessary transpilation\n return execaNode(path.resolve(__dirname, `../../dist/testing/fixtures/${fixture}.js`), {\n cwd: __dirname,\n env,\n })\n}\n"]}