@shopify/create-hydrogen 3.39.0 → 4.0.0-alpha.2

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.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { runInit } from '@shopify/cli-hydrogen/commands/hydrogen/init';
3
+
4
+ runInit();
package/package.json CHANGED
@@ -1,89 +1,21 @@
1
1
  {
2
2
  "name": "@shopify/create-hydrogen",
3
- "version": "3.39.0",
4
- "private": false,
5
- "description": "A CLI tool to create a new Shopify hydrogen app.",
6
- "keywords": [
7
- "shopify",
8
- "shopify-cli",
9
- "shopify-partners",
10
- "shopify-hydrogen"
11
- ],
12
- "bugs": {
13
- "url": "https://github.com/Shopify/cli/issues/new/choose"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/Shopify/cli/edit/main/packages/create-hydrogen"
3
+ "publishConfig": {
4
+ "access": "public",
5
+ "@shopify:registry": "https://registry.npmjs.org"
18
6
  },
19
- "license": "MIT",
7
+ "version": "4.0.0-alpha.2",
20
8
  "type": "module",
21
- "exports": {
22
- ".": {
23
- "import": "./dist/index.js",
24
- "types": "./dist/index.d.ts"
25
- }
26
- },
27
- "bin": {
28
- "create-hydrogen": "./bin/run.js"
29
- },
30
- "files": [
31
- "/bin/run.js",
32
- "/bin/run.cmd",
33
- "/dist",
34
- "templates",
35
- "/oclif.manifest.json"
36
- ],
37
- "eslintConfig": {
38
- "extends": [
39
- "../../.eslintrc.cjs"
40
- ],
41
- "rules": {
42
- "no-warning-comments": "off"
43
- }
9
+ "scripts": {
10
+ "build": "tsup --clean --config ./tsup.config.ts",
11
+ "dev": "tsup --watch --config ./tsup.config.ts",
12
+ "typecheck": "tsc --noEmit"
44
13
  },
45
14
  "dependencies": {
46
- "@oclif/core": "1.21.0",
47
- "@shopify/cli-kit": "3.39.0",
48
- "download": "8.0.0"
49
- },
50
- "devDependencies": {
51
- "@types/download": "8.0.0",
52
- "@types/node": "14.18.36",
53
- "vite": "^2.9.13",
54
- "vitest": "^0.26.3"
15
+ "@shopify/cli-hydrogen": "^4.0.0-alpha.11"
55
16
  },
56
- "engines": {
57
- "node": ">=14.17.0"
58
- },
59
- "os": [
60
- "darwin",
61
- "linux",
62
- "win32"
63
- ],
64
- "publishConfig": {
65
- "@shopify:registry": "https://registry.npmjs.org",
66
- "access": "public"
67
- },
68
- "engine-strict": true,
69
- "oclif": {
70
- "bin": "create-hydrogen",
71
- "commands": "dist/commands",
72
- "additionalHelpFlags": [
73
- "-h"
74
- ],
75
- "hooks": {
76
- "prerun": "@shopify/cli-kit/node/hooks/prerun",
77
- "postrun": "@shopify/cli-kit/node/hooks/postrun"
78
- }
79
- },
80
- "scripts": {
81
- "build": "nx build",
82
- "clean": "nx clean",
83
- "lint": "nx lint",
84
- "lint:fix": "nx lint:fix",
85
- "test": "nx run create-hydrogen:test",
86
- "test:watch": "nx test:watch",
87
- "type-check": "nx type-check"
88
- }
89
- }
17
+ "bin": "dist/create-app.js",
18
+ "files": [
19
+ "dist"
20
+ ]
21
+ }
package/LICENSE DELETED
@@ -1,8 +0,0 @@
1
- Copyright 2019-present, Shopify Inc.
2
-
3
- ​​
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
-
6
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md DELETED
@@ -1,63 +0,0 @@
1
- <img src="https://github.com/Shopify/cli/blob/main/assets/logo.png?raw=true" width="150"/>
2
-
3
- # Shopify CLI
4
- <a href="http://twitter.com/ShopifyDevs"><img src="https://img.shields.io/twitter/follow/ShopifyDevs?style=flat-square" alt="Twitter Followers"></a>
5
- <img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License">
6
- <a href="https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml">![badge](https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml/badge.svg)</a>
7
-
8
- With the Shopify command line interface (Shopify CLI 3.0), you can:
9
- - build custom storefronts and manage their hosting
10
- - initialize, build, dev, and deploy Shopify apps — and generate app extensions
11
-
12
- <p>&nbsp;</p>
13
-
14
- ### Before you begin ###
15
-
16
- 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).
17
-
18
- <p>&nbsp;</p>
19
-
20
- ## Developing apps with Shopify CLI
21
-
22
- When you’re building a Shopify app, you can initialize your project using your preferred package manager. A single command will install all the dependencies you need — including Shopify CLI itself.
23
-
24
- Initialize your project using one of the following commands:
25
- - `npm init @shopify/app@latest` (installed by default with Node)
26
- - `pnpm create @shopify/create-app@latest`
27
- - `yarn create @shopify/app`
28
-
29
- Learn more in the docs: [Create an app](https://shopify.dev/apps/getting-started/create)
30
-
31
- <p>&nbsp;</p>
32
-
33
- ## Developing Hydrogen custom storefronts with Shopify CLI ##
34
-
35
- When you’re building a custom storefront, use Hydrogen, Shopify’s React-based framework optimized for headless commerce. Initialize a new Hydrogen app with a fully-featured Demo Store template, or start from scratch with the minimal Hello World template. Shopify Plus stores can deploy their Hydrogen apps to Oxygen, Shopify’s global hosting solution, at no extra cost.
36
-
37
- Get started using one of the following commands:
38
- - `npm init @shopify/hydrogen@latest`
39
- - `npx @shopify/create-hydrogen@latest`
40
- - `pnpm create @shopify/create-hydrogen@latest`
41
- - `yarn create @shopify/hydrogen`
42
-
43
- <p>&nbsp;</p>
44
-
45
- ## Help 🖐
46
-
47
- If you encounter issues using the CLI or have feedback you'd like to share with us, below are some options:
48
-
49
- - [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.
50
- - [Shopify Community Forums](https://community.shopify.com/) - Visit our forums to connect with the community and learn more about Shopify CLI development.
51
- - [CLI Documentation - Apps](https://shopify.dev/apps/tools/cli) - To view CLI documentation for app development
52
- - [CLI Documentation - Themes](https://shopify.dev/themes/tools/cli) - To view CLI documentation for theme development
53
- - [CLI Documentation - Hydrogen](https://shopify.dev/custom-storefronts/tools/cli) - To view CLI documentation for Hydrogen (custom storefront) development
54
-
55
- ## Contribute 👩🏽‍💻
56
-
57
- If you'd like to contribute to the project, check out the [contributors docs](/docs) and the [steps to get started](/docs/cli/get-started.md).
58
-
59
- <p>&nbsp;</p>
60
-
61
- ## References
62
-
63
- - [oclif](https://oclif.io/)
package/bin/run.cmd DELETED
@@ -1,3 +0,0 @@
1
- @echo off
2
-
3
- node "%~dp0\run.js" %*
package/bin/run.js DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- process.removeAllListeners('warning');
4
-
5
- import runCreateHydrogen from "@shopify/create-hydrogen";
6
-
7
- runCreateHydrogen(false);
@@ -1,17 +0,0 @@
1
- import Command from '@shopify/cli-kit/node/base-command';
2
- export default class Init extends Command {
3
- static aliases: string[];
4
- static flags: {
5
- name: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined>;
6
- template: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined>;
7
- ts: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
8
- path: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined>;
9
- 'package-manager': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined>;
10
- 'shopify-cli-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined>;
11
- 'hydrogen-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined>;
12
- local: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
13
- preset: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined>;
14
- verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
15
- };
16
- run(): Promise<void>;
17
- }
@@ -1,79 +0,0 @@
1
- import initPrompt from '../prompts/init.js';
2
- import initService from '../services/init.js';
3
- import { Flags } from '@oclif/core';
4
- import { globalFlags } from '@shopify/cli-kit/node/cli';
5
- import Command from '@shopify/cli-kit/node/base-command';
6
- import { resolvePath, cwd } from '@shopify/cli-kit/node/path';
7
- export default class Init extends Command {
8
- async run() {
9
- const { flags } = await this.parse(Init);
10
- const directory = flags.path ? resolvePath(flags.path) : cwd();
11
- const promptAnswers = await initPrompt({
12
- name: flags.name,
13
- template: flags.template,
14
- language: flags.ts ? 'ts' : undefined,
15
- });
16
- await initService({
17
- name: promptAnswers.name,
18
- template: promptAnswers.template,
19
- packageManager: flags['package-manager'],
20
- shopifyCliVersion: flags['shopify-cli-version'],
21
- hydrogenVersion: flags['hydrogen-version'],
22
- directory,
23
- local: flags.local,
24
- });
25
- }
26
- }
27
- Init.aliases = ['create-hydrogen'];
28
- Init.flags = {
29
- ...globalFlags,
30
- name: Flags.string({
31
- description: 'The name of the Hydrogen app.',
32
- char: 'n',
33
- env: 'SHOPIFY_FLAG_NAME',
34
- hidden: false,
35
- }),
36
- template: Flags.string({
37
- description: 'The template to use. Can either be a Shopify template name (hello-world or demo-store) or a custom URL to any template.',
38
- char: 't',
39
- env: 'SHOPIFY_FLAG_TEMPLATE',
40
- hidden: false,
41
- }),
42
- ts: Flags.boolean({
43
- description: 'Set the language of the template to TypeScript instead of JavaScript.',
44
- env: 'SHOPIFY_FLAG_LANGUAGE',
45
- hidden: false,
46
- }),
47
- path: Flags.string({
48
- description: 'The path to the directory where the Hydrogen app will be created.',
49
- char: 'p',
50
- env: 'SHOPIFY_FLAG_PATH',
51
- parse: (input, _) => Promise.resolve(resolvePath(input)),
52
- hidden: false,
53
- }),
54
- 'package-manager': Flags.string({
55
- char: 'd',
56
- env: 'SHOPIFY_FLAG_PACKAGE_MANAGER',
57
- hidden: false,
58
- options: ['npm', 'yarn', 'pnpm'],
59
- }),
60
- 'shopify-cli-version': Flags.string({
61
- description: 'The version of the Shopify CLI to use.',
62
- char: 's',
63
- env: 'SHOPIFY_FLAG_SHOPIFY_CLI_VERSION',
64
- hidden: false,
65
- }),
66
- 'hydrogen-version': Flags.string({
67
- description: 'The version of Hydrogen to use.',
68
- char: 'h',
69
- env: 'SHOPIFY_FLAG_HYDROGEN_VERSION',
70
- hidden: false,
71
- }),
72
- local: Flags.boolean({
73
- char: 'l',
74
- env: 'SHOPIFY_FLAG_LOCAL',
75
- default: false,
76
- hidden: true,
77
- }),
78
- };
79
- //# sourceMappingURL=init.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,oBAAoB,CAAA;AAC3C,OAAO,WAAW,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAA;AACrD,OAAO,OAAO,MAAM,oCAAoC,CAAA;AACxD,OAAO,EAAC,WAAW,EAAE,GAAG,EAAC,MAAM,4BAA4B,CAAA;AAE3D,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,OAAO;IAwDvC,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QACtC,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC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AG,EAAE,mBAAmB;QACxB,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACxD,MAAM,EAAE,KAAK;KACd,CAAC;IACF,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC;QAC9B,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,8BAA8B;QACnC,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC;QAClC,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,kCAAkC;QACvC,MAAM,EAAE,KAAK;KACd,CAAC;IACF,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC;QAC/B,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,+BAA+B;QACpC,MAAM,EAAE,KAAK;KACd,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG;QACT,GAAG,EAAE,oBAAoB;QACzB,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,IAAI;KACb,CAAC;CACH,CAAA","sourcesContent":["import initPrompt from '../prompts/init.js'\nimport initService from '../services/init.js'\nimport {Flags} from '@oclif/core'\nimport {globalFlags} from '@shopify/cli-kit/node/cli'\nimport Command from '@shopify/cli-kit/node/base-command'\nimport {resolvePath, cwd} from '@shopify/cli-kit/node/path'\n\nexport default class Init extends Command {\n static aliases = ['create-hydrogen']\n\n static flags = {\n ...globalFlags,\n name: Flags.string({\n description: 'The name of the Hydrogen app.',\n char: 'n',\n env: 'SHOPIFY_FLAG_NAME',\n hidden: false,\n }),\n template: Flags.string({\n description:\n 'The template to use. Can either be a Shopify template name (hello-world or demo-store) or a custom URL to any template.',\n char: 't',\n env: 'SHOPIFY_FLAG_TEMPLATE',\n hidden: false,\n }),\n ts: Flags.boolean({\n description: 'Set the language of the template to TypeScript instead of JavaScript.',\n env: 'SHOPIFY_FLAG_LANGUAGE',\n hidden: false,\n }),\n path: Flags.string({\n description: 'The path to the directory where the Hydrogen app will be created.',\n char: 'p',\n env: 'SHOPIFY_FLAG_PATH',\n parse: (input, _) => Promise.resolve(resolvePath(input)),\n hidden: false,\n }),\n 'package-manager': Flags.string({\n char: 'd',\n env: 'SHOPIFY_FLAG_PACKAGE_MANAGER',\n hidden: false,\n options: ['npm', 'yarn', 'pnpm'],\n }),\n 'shopify-cli-version': Flags.string({\n description: 'The version of the Shopify CLI to use.',\n char: 's',\n env: 'SHOPIFY_FLAG_SHOPIFY_CLI_VERSION',\n hidden: false,\n }),\n 'hydrogen-version': Flags.string({\n description: 'The version of Hydrogen to use.',\n char: 'h',\n env: 'SHOPIFY_FLAG_HYDROGEN_VERSION',\n hidden: false,\n }),\n local: Flags.boolean({\n char: 'l',\n env: 'SHOPIFY_FLAG_LOCAL',\n default: false,\n hidden: true,\n }),\n }\n\n async run(): Promise<void> {\n const {flags} = await this.parse(Init)\n const directory = flags.path ? resolvePath(flags.path) : cwd()\n const promptAnswers = await initPrompt({\n name: flags.name,\n template: flags.template,\n language: flags.ts ? 'ts' : undefined,\n })\n await initService({\n name: promptAnswers.name,\n template: promptAnswers.template,\n packageManager: flags['package-manager'],\n shopifyCliVersion: flags['shopify-cli-version'],\n hydrogenVersion: flags['hydrogen-version'],\n directory,\n local: flags.local,\n })\n }\n}\n"]}
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare function runCreateHydrogenCLI(development: boolean): Promise<void>;
2
- export default runCreateHydrogenCLI;
package/dist/index.js DELETED
@@ -1,9 +0,0 @@
1
- import { runCreateCLI } from '@shopify/cli-kit/node/cli';
2
- async function runCreateHydrogenCLI(development) {
3
- await runCreateCLI({
4
- moduleURL: import.meta.url,
5
- development,
6
- });
7
- }
8
- export default runCreateHydrogenCLI;
9
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAA;AAEtD,KAAK,UAAU,oBAAoB,CAAC,WAAoB;IACtD,MAAM,YAAY,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;QAC1B,WAAW;KACZ,CAAC,CAAA;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAA","sourcesContent":["import {runCreateCLI} from '@shopify/cli-kit/node/cli'\n\nasync function runCreateHydrogenCLI(development: boolean) {\n await runCreateCLI({\n moduleURL: import.meta.url,\n development,\n })\n}\n\nexport default runCreateHydrogenCLI\n"]}
@@ -1,8 +0,0 @@
1
- import { ui } from '@shopify/cli-kit';
2
- interface InitOptions {
3
- name?: string;
4
- template?: string;
5
- language?: string;
6
- }
7
- declare const init: (options: InitOptions, prompt?: <TName extends string & keyof TAnswers, TAnswers extends { [key in TName]: string; } = { [key_1 in TName]: string; }>(questions: readonly ui.Question<TName>[]) => Promise<TAnswers>) => Promise<Required<InitOptions>>;
8
- export default init;
@@ -1,132 +0,0 @@
1
- import { ui } from '@shopify/cli-kit';
2
- import { hyphenate } from '@shopify/cli-kit/common/string';
3
- import { parseGitHubRepositoryURL } from '@shopify/cli-kit/node/github';
4
- import { renderWarning } from '@shopify/cli-kit/node/ui';
5
- const TEMPLATE_BASE = 'https://github.com/Shopify/hydrogen/templates/';
6
- const BRANCH = `dist`;
7
- const TEMPLATE_NAME_DATA = {
8
- 'demo-store': { name: 'Demo Store' },
9
- 'hello-world': { name: 'Hello World' },
10
- };
11
- const LANGUAGE_NAME_DATA = {
12
- js: { name: 'JavaScript' },
13
- ts: { name: 'TypeScript' },
14
- };
15
- const TEMPLATE_NAMES = Object.keys(TEMPLATE_NAME_DATA);
16
- const LANGUAGE_NAMES = Object.keys(LANGUAGE_NAME_DATA);
17
- const init = async (options, prompt = ui.prompt) => {
18
- const questions = [];
19
- const explicitTemplate = options.template;
20
- let isAShopifyTemplateName = false;
21
- // If the template is passed through the CLI, then it can either be a Shopify template name (hello-world or demo-store)
22
- // or a custom URL to any template.
23
- if (explicitTemplate) {
24
- warnIfDeprecatedTemplateNameFormat(explicitTemplate);
25
- const hydrogenTemplate = checkIfShopifyTemplateName(explicitTemplate, 'js') || checkIfShopifyTemplateName(explicitTemplate, 'ts');
26
- isAShopifyTemplateName = Boolean(hydrogenTemplate);
27
- }
28
- else {
29
- isAShopifyTemplateName = true;
30
- questions.push({
31
- type: 'select',
32
- name: 'template',
33
- message: 'Choose a template',
34
- choices: Object.keys(TEMPLATE_NAME_DATA).map((value) => ({
35
- name: TEMPLATE_NAME_DATA[value].name,
36
- value,
37
- })),
38
- default: TEMPLATE_NAMES[0],
39
- });
40
- }
41
- // Prompt the user for the template language if it isn't provided and
42
- // the given template is a URL.
43
- if (!options.language && isAShopifyTemplateName) {
44
- questions.push({
45
- type: 'select',
46
- name: 'language',
47
- message: 'Choose a language',
48
- choices: Object.keys(LANGUAGE_NAME_DATA).map((value) => {
49
- const { name } = LANGUAGE_NAME_DATA[value];
50
- return { name, value };
51
- }),
52
- default: LANGUAGE_NAMES[0],
53
- });
54
- }
55
- if (!options.name) {
56
- questions.push({
57
- type: 'input',
58
- name: 'name',
59
- message: 'Name your new Hydrogen storefront',
60
- default: 'hydrogen-app',
61
- });
62
- }
63
- const promptResults = await prompt(questions);
64
- const name = options.name ?? promptResults.name;
65
- const templateName = options.template ?? promptResults.template;
66
- const language = options.language ?? promptResults.language;
67
- let template = templateName;
68
- // Get final template URLS
69
- const hydrogenTemplate = checkIfShopifyTemplateName(templateName, language);
70
- if (hydrogenTemplate)
71
- template = convertTemplateNameToUrl(hydrogenTemplate);
72
- // Else it's a user-provided URL.
73
- template = parseTemplateUrl(template);
74
- return { name, template, language };
75
- };
76
- /**
77
- * Checks if the provided name is a Shopify template, or if it's a custom URL to a user-provided template.
78
- *
79
- * @param templateName - The name of the template to check.
80
- * @param language - The language of the template, only provided if the template is a Shopify template
81
- * @returns The fully-formed template name (with the language suffixed) if it's a Shopify template, false otherwise.
82
- */
83
- const checkIfShopifyTemplateName = (templateName, language) => {
84
- if (!templateName)
85
- return false;
86
- const normalized = hyphenate(templateName).toLocaleLowerCase();
87
- const endsWithLang = normalized.endsWith('-ts') || normalized.endsWith('-js');
88
- const withExtension = endsWithLang ? normalized : `${normalized}-${language}`;
89
- return TEMPLATE_NAMES.includes(normalized) ? withExtension : false;
90
- };
91
- /**
92
- * Lets the user know if they're trying to use a template in the old naming format.
93
- *
94
- * @param templateName - The name of the template to check.
95
- * @returns True if the template name is in the old format, false otherwise.
96
- */
97
- const warnIfDeprecatedTemplateNameFormat = (templateName) => {
98
- const normalized = hyphenate(templateName).toLocaleLowerCase();
99
- const endsWithLang = normalized.endsWith('-ts') || normalized.endsWith('-js');
100
- if (endsWithLang) {
101
- const template = normalized.slice(0, -3);
102
- const lang = normalized.slice(-2);
103
- const ts = lang === 'ts';
104
- renderWarning({
105
- headline: `The ${normalized} template has been deprecated. Use --template ${template} ${ts ? `--${lang} ` : ''}to install the ${ts ? 'TypeScript' : 'JavaScript'} template.`,
106
- });
107
- }
108
- };
109
- /**
110
- * Takes the name of a Shopify template (for example, demo-store or hello-world) and converts it to a URL.
111
- *
112
- * @param templateName - The given name of a Shopify template.
113
- * @returns The URL of the template.
114
- */
115
- const convertTemplateNameToUrl = (templateName) => `${TEMPLATE_BASE}${templateName}#${BRANCH}`;
116
- /**
117
- * Checks to see if the provided URL can be parsed by Github. For Shopify-specific templates, adds any
118
- * missing information (for example, a missing branch) to the repo information in the URL.
119
- *
120
- * @param templateUrl - The URL of the template to parse.
121
- * @returns The parsed URL.
122
- */
123
- const parseTemplateUrl = (templateUrl) => {
124
- const parsedTemplate = parseGitHubRepositoryURL(templateUrl).valueOrAbort();
125
- const missingBranch = !parsedTemplate.ref;
126
- const looksLikeHydrogenTemplate = parsedTemplate.name === 'hydrogen' &&
127
- parsedTemplate.user === 'Shopify' &&
128
- parsedTemplate.subDirectory?.startsWith('templates/');
129
- return looksLikeHydrogenTemplate && missingBranch ? `${parsedTemplate.full}#${BRANCH}` : parsedTemplate.full;
130
- };
131
- export default init;
132
- //# sourceMappingURL=init.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/prompts/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,kBAAkB,CAAA;AACnC,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAA;AAEtD,MAAM,aAAa,GAAG,gDAAgD,CAAA;AACtE,MAAM,MAAM,GAAG,MAAM,CAAA;AAErB,MAAM,kBAAkB,GAAG;IACzB,YAAY,EAAE,EAAC,IAAI,EAAE,YAAY,EAAC;IAClC,aAAa,EAAE,EAAC,IAAI,EAAE,aAAa,EAAC;CACrC,CAAA;AAED,MAAM,kBAAkB,GAAG;IACzB,EAAE,EAAE,EAAC,IAAI,EAAE,YAAY,EAAC;IACxB,EAAE,EAAE,EAAC,IAAI,EAAE,YAAY,EAAC;CACzB,CAAA;AAED,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;AACtD,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;AAQtD,MAAM,IAAI,GAAG,KAAK,EAAE,OAAoB,EAAE,MAAM,GAAG,EAAE,CAAC,MAAM,EAAkC,EAAE;IAC9F,MAAM,SAAS,GAAkB,EAAE,CAAA;IACnC,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAA;IACzC,IAAI,sBAAsB,GAAG,KAAK,CAAA;IAClC,uHAAuH;IACvH,mC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C,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAA;IAEvD,OAAO,yBAAyB,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAI,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAA;AAC9G,CAAC,CAAA;AAED,eAAe,IAAI,CAAA","sourcesContent":["import {ui} from '@shopify/cli-kit'\nimport {hyphenate} from '@shopify/cli-kit/common/string'\nimport {parseGitHubRepositoryURL} from '@shopify/cli-kit/node/github'\nimport {renderWarning} from '@shopify/cli-kit/node/ui'\n\nconst TEMPLATE_BASE = 'https://github.com/Shopify/hydrogen/templates/'\nconst BRANCH = `dist`\n\nconst TEMPLATE_NAME_DATA = {\n 'demo-store': {name: 'Demo Store'},\n 'hello-world': {name: 'Hello World'},\n}\n\nconst LANGUAGE_NAME_DATA = {\n js: {name: 'JavaScript'},\n ts: {name: 'TypeScript'},\n}\n\nconst TEMPLATE_NAMES = Object.keys(TEMPLATE_NAME_DATA)\nconst LANGUAGE_NAMES = Object.keys(LANGUAGE_NAME_DATA)\n\ninterface InitOptions {\n name?: string\n template?: string\n language?: string\n}\n\nconst init = async (options: InitOptions, prompt = ui.prompt): Promise<Required<InitOptions>> => {\n const questions: ui.Question[] = []\n const explicitTemplate = options.template\n let isAShopifyTemplateName = false\n // If the template is passed through the CLI, then it can either be a Shopify template name (hello-world or demo-store)\n // or a custom URL to any template.\n if (explicitTemplate) {\n warnIfDeprecatedTemplateNameFormat(explicitTemplate)\n const hydrogenTemplate =\n checkIfShopifyTemplateName(explicitTemplate, 'js') || checkIfShopifyTemplateName(explicitTemplate, 'ts')\n isAShopifyTemplateName = Boolean(hydrogenTemplate)\n } else {\n isAShopifyTemplateName = true\n questions.push({\n type: 'select',\n name: 'template',\n message: 'Choose a template',\n choices: Object.keys(TEMPLATE_NAME_DATA).map((value) => ({\n name: TEMPLATE_NAME_DATA[value as keyof typeof TEMPLATE_NAME_DATA].name,\n value,\n })),\n default: TEMPLATE_NAMES[0],\n })\n }\n\n // Prompt the user for the template language if it isn't provided and\n // the given template is a URL.\n if (!options.language && isAShopifyTemplateName) {\n questions.push({\n type: 'select',\n name: 'language',\n message: 'Choose a language',\n choices: Object.keys(LANGUAGE_NAME_DATA).map((value) => {\n const {name} = LANGUAGE_NAME_DATA[value as keyof typeof LANGUAGE_NAME_DATA]\n return {name, value}\n }),\n default: LANGUAGE_NAMES[0],\n })\n }\n\n if (!options.name) {\n questions.push({\n type: 'input',\n name: 'name',\n message: 'Name your new Hydrogen storefront',\n default: 'hydrogen-app',\n })\n }\n\n const promptResults = await prompt(questions)\n const name = options.name ?? promptResults.name!\n const templateName = options.template ?? promptResults.template!\n const language = options.language ?? promptResults.language!\n let template = templateName\n\n // Get final template URLS\n const hydrogenTemplate = checkIfShopifyTemplateName(templateName, language)\n if (hydrogenTemplate) template = convertTemplateNameToUrl(hydrogenTemplate as string)\n\n // Else it's a user-provided URL.\n template = parseTemplateUrl(template)\n return {name, template, language} as Required<InitOptions>\n}\n\n/**\n * Checks if the provided name is a Shopify template, or if it's a custom URL to a user-provided template.\n *\n * @param templateName - The name of the template to check.\n * @param language - The language of the template, only provided if the template is a Shopify template\n * @returns The fully-formed template name (with the language suffixed) if it's a Shopify template, false otherwise.\n */\nconst checkIfShopifyTemplateName = (templateName: string, language: string): string | boolean => {\n if (!templateName) return false\n\n const normalized = hyphenate(templateName).toLocaleLowerCase()\n const endsWithLang = normalized.endsWith('-ts') || normalized.endsWith('-js')\n const withExtension = endsWithLang ? normalized : `${normalized}-${language}`\n return TEMPLATE_NAMES.includes(normalized) ? withExtension : false\n}\n\n/**\n * Lets the user know if they're trying to use a template in the old naming format.\n *\n * @param templateName - The name of the template to check.\n * @returns True if the template name is in the old format, false otherwise.\n */\nconst warnIfDeprecatedTemplateNameFormat = (templateName: string): void => {\n const normalized = hyphenate(templateName).toLocaleLowerCase()\n const endsWithLang = normalized.endsWith('-ts') || normalized.endsWith('-js')\n if (endsWithLang) {\n const template = normalized.slice(0, -3)\n const lang = normalized.slice(-2)\n const ts = lang === 'ts'\n renderWarning({\n headline: `The ${normalized} template has been deprecated. Use --template ${template} ${\n ts ? `--${lang} ` : ''\n }to install the ${ts ? 'TypeScript' : 'JavaScript'} template.`,\n })\n }\n}\n\n/**\n * Takes the name of a Shopify template (for example, demo-store or hello-world) and converts it to a URL.\n *\n * @param templateName - The given name of a Shopify template.\n * @returns The URL of the template.\n */\nconst convertTemplateNameToUrl = (templateName: string): string => `${TEMPLATE_BASE}${templateName}#${BRANCH}`\n\n/**\n * Checks to see if the provided URL can be parsed by Github. For Shopify-specific templates, adds any\n * missing information (for example, a missing branch) to the repo information in the URL.\n *\n * @param templateUrl - The URL of the template to parse.\n * @returns The parsed URL.\n */\nconst parseTemplateUrl = (templateUrl: string): string => {\n const parsedTemplate = parseGitHubRepositoryURL(templateUrl).valueOrAbort()\n const missingBranch = !parsedTemplate.ref\n const looksLikeHydrogenTemplate =\n parsedTemplate.name === 'hydrogen' &&\n parsedTemplate.user === 'Shopify' &&\n parsedTemplate.subDirectory?.startsWith('templates/')\n\n return looksLikeHydrogenTemplate && missingBranch ? `${parsedTemplate.full}#${BRANCH}` : parsedTemplate.full\n}\n\nexport default init\n"]}
@@ -1,11 +0,0 @@
1
- interface InitOptions {
2
- name: string;
3
- template: string;
4
- directory: string;
5
- packageManager?: string;
6
- shopifyCliVersion?: string;
7
- hydrogenVersion?: string;
8
- local: boolean;
9
- }
10
- declare function init(options: InitOptions): Promise<void>;
11
- export default init;
@@ -1,202 +0,0 @@
1
- import { ui } from '@shopify/cli-kit';
2
- import { username } from '@shopify/cli-kit/node/os';
3
- import { findUpAndReadPackageJson, installNodeModules, packageManager, packageManagerUsedForCreating, writePackageJSON, } from '@shopify/cli-kit/node/node-package-manager';
4
- import { parseGitHubRepositoryURL } from '@shopify/cli-kit/node/github';
5
- import { hyphenate } from '@shopify/cli-kit/common/string';
6
- import { recursiveLiquidTemplateCopy } from '@shopify/cli-kit/node/liquid';
7
- import { CLI_KIT_VERSION } from '@shopify/cli-kit/common/version';
8
- import { isShopify } from '@shopify/cli-kit/node/environment/local';
9
- import { addAllToGitFromDirectory, createGitCommit, downloadGitRepository, initializeGitRepository, } from '@shopify/cli-kit/node/git';
10
- import { appendFile, fileExists, inTemporaryDirectory, mkdir, moveFile, rmdir, touchFile, glob, findPathUp, } from '@shopify/cli-kit/node/fs';
11
- import { joinPath } from '@shopify/cli-kit/node/path';
12
- import { AbortError } from '@shopify/cli-kit/node/error';
13
- import { outputInfo, outputContent, outputToken } from '@shopify/cli-kit/node/output';
14
- import { renderTasks } from '@shopify/cli-kit/node/ui';
15
- const suggestHydrogenSupport = () => `
16
- Help us make Hydrogen better by reporting this error so we can improve this message and/or fix the error.
17
- - Chat with us on Discord: https://discord.com/invite/ppSbThrFaS
18
- - Create an issue in GitHub: https://github.com/Shopify/hydrogen/issues/new
19
- `;
20
- async function init(options) {
21
- const user = (await username()) ?? '';
22
- const cliVersion = options.shopifyCliVersion ?? CLI_KIT_VERSION;
23
- const hydrogenPackageVersion = options.hydrogenVersion;
24
- const packageManager = inferPackageManager(options.packageManager);
25
- const hyphenizedName = hyphenate(options.name);
26
- const outputDirectory = joinPath(options.directory, hyphenizedName);
27
- await ui.nonEmptyDirectoryPrompt(outputDirectory);
28
- await inTemporaryDirectory(async (tmpDir) => {
29
- const templateDownloadDir = joinPath(tmpDir, 'download');
30
- const templateScaffoldDir = joinPath(tmpDir, 'app');
31
- await mkdir(templateDownloadDir);
32
- await mkdir(templateScaffoldDir);
33
- const templateInfo = await parseGitHubRepositoryURL(options.template).valueOrAbort();
34
- const branch = templateInfo.ref ? `#${templateInfo.ref}` : '';
35
- const templatePath = templateInfo.subDirectory
36
- ? joinPath(templateDownloadDir, templateInfo.subDirectory)
37
- : templateDownloadDir;
38
- const repoUrl = `${templateInfo.http}${branch}`;
39
- let tasks = [
40
- {
41
- title: `Downloading template from ${repoUrl}`,
42
- task: async () => {
43
- await downloadGitRepository({
44
- repoUrl,
45
- destination: templateDownloadDir,
46
- shallow: true,
47
- });
48
- if (!(await fileExists(joinPath(templatePath, 'package.json')))) {
49
- throw new AbortError(`The template ${templatePath} was not found.`, suggestHydrogenSupport());
50
- }
51
- },
52
- },
53
- {
54
- title: `Initializing your app ${hyphenizedName}`,
55
- task: async () => {
56
- return [
57
- {
58
- title: 'Parsing template files',
59
- task: async () => {
60
- const templateData = {
61
- name: hyphenizedName,
62
- shopify_cli_version: cliVersion,
63
- hydrogen_version: hydrogenPackageVersion,
64
- author: user,
65
- dependency_manager: options.packageManager,
66
- };
67
- await recursiveLiquidTemplateCopy(templatePath, templateScaffoldDir, templateData);
68
- },
69
- },
70
- {
71
- title: 'Updating package.json',
72
- task: async () => {
73
- const packageJSON = (await findUpAndReadPackageJson(templateScaffoldDir)).content;
74
- packageJSON.name = hyphenizedName;
75
- packageJSON.author = (await username()) ?? '';
76
- await updateCLIDependencies(packageJSON, options.local, {
77
- dependencies: {
78
- '@shopify/hydrogen': hydrogenPackageVersion,
79
- },
80
- devDependencies: {
81
- '@shopify/cli-hydrogen': cliVersion,
82
- '@shopify/cli': cliVersion,
83
- },
84
- });
85
- await updateCLIScripts(packageJSON);
86
- await writePackageJSON(templateScaffoldDir, packageJSON);
87
- },
88
- },
89
- ];
90
- },
91
- },
92
- ];
93
- if (await isShopify()) {
94
- tasks.push({
95
- title: "[Shopifolks-only] Configuring the project's NPM registry",
96
- task: async () => {
97
- await writeToNpmrc(templateScaffoldDir, `@shopify:registry=https://registry.npmjs.org`);
98
- },
99
- });
100
- }
101
- tasks = tasks.concat([
102
- {
103
- title: `Installing dependencies with ${packageManager}`,
104
- task: async () => {
105
- await installDependencies(templateScaffoldDir, packageManager);
106
- },
107
- },
108
- {
109
- title: 'Cleaning up',
110
- task: async () => {
111
- await cleanup(templateScaffoldDir);
112
- },
113
- },
114
- {
115
- title: 'Initializing a Git repository...',
116
- task: async () => {
117
- await initializeGitRepository(templateScaffoldDir);
118
- await addAllToGitFromDirectory(templateScaffoldDir);
119
- await createGitCommit('Initial commit generated by Hydrogen', { directory: templateScaffoldDir });
120
- },
121
- },
122
- ]);
123
- await renderTasks(tasks);
124
- await moveFile(templateScaffoldDir, outputDirectory);
125
- });
126
- outputInfo(outputContent `
127
- ✨ ${hyphenizedName} is ready to build!
128
- 🚀 Run ${outputToken.packagejsonScript(packageManager, 'dev')} to start your local development server and start building.
129
-
130
- 📚 Docs: ${outputToken.link('Quick start guide', 'https://shopify.dev/custom-storefronts/hydrogen')}`);
131
- outputInfo(outputContent `
132
- 👋 Note: your project will display inventory from the Hydrogen Demo Store.\
133
- To connect this project to your Shopify store’s inventory instead,\
134
- update ${outputToken.yellow(`${hyphenizedName}/hydrogen.config.js`)} with your\
135
- store ID and Storefront API key.\n`);
136
- }
137
- function inferPackageManager(optionsPackageManager) {
138
- if (optionsPackageManager && packageManager.includes(optionsPackageManager)) {
139
- return optionsPackageManager;
140
- }
141
- const usedPackageManager = packageManagerUsedForCreating();
142
- return usedPackageManager === 'unknown' ? 'npm' : usedPackageManager;
143
- }
144
- export default init;
145
- async function updateCLIScripts(packageJSON) {
146
- packageJSON.scripts = packageJSON.scripts || {};
147
- packageJSON.scripts.dev = `shopify hydrogen dev`;
148
- return packageJSON;
149
- }
150
- async function updateCLIDependencies(packageJSON, local, packageDependencies) {
151
- const { devDependencies, dependencies } = packageDependencies;
152
- packageJSON.devDependencies = packageJSON.devDependencies || {};
153
- packageJSON.dependencies = packageJSON.dependencies || {};
154
- Object.keys(devDependencies).forEach((key) => {
155
- packageJSON.devDependencies[key] = devDependencies[key] || packageJSON.devDependencies[key];
156
- });
157
- Object.keys(dependencies).forEach((key) => {
158
- packageJSON.dependencies[key] = dependencies[key] || packageJSON.dependencies[key];
159
- });
160
- if (local) {
161
- const devDependencyOverrides = {
162
- '@shopify/cli': `file:${(await findPathUp('packages/cli', { type: 'directory' }))}`,
163
- '@shopify/cli-hydrogen': `file:${(await findPathUp('packages/cli-hydrogen', { type: 'directory' }))}`,
164
- };
165
- packageJSON.overrides = packageJSON.overrides
166
- ? { ...packageJSON.overrides, ...devDependencyOverrides }
167
- : devDependencyOverrides;
168
- packageJSON.resolutions = packageJSON.resolutions
169
- ? { ...packageJSON.resolutions, ...devDependencyOverrides }
170
- : devDependencyOverrides;
171
- }
172
- return packageJSON;
173
- }
174
- async function installDependencies(directory, packageManager) {
175
- if (packageManager === 'pnpm') {
176
- await writeToNpmrc(directory, 'auto-install-peers = true');
177
- }
178
- await installNodeModules({ directory, packageManager, args: [] });
179
- }
180
- async function writeToNpmrc(directory, content) {
181
- const npmrcPath = joinPath(directory, '.npmrc');
182
- const npmrcContent = `${content}\n`;
183
- if (!(await fileExists(npmrcPath))) {
184
- await touchFile(npmrcPath);
185
- }
186
- await appendFile(npmrcPath, npmrcContent);
187
- }
188
- async function cleanup(webOutputDirectory) {
189
- const gitPaths = await glob([
190
- joinPath(webOutputDirectory, '**', '.git'),
191
- joinPath(webOutputDirectory, '**', '.github'),
192
- joinPath(webOutputDirectory, '**', '.gitmodules'),
193
- joinPath(webOutputDirectory, '.stackblitzrc'),
194
- ], {
195
- dot: true,
196
- onlyFiles: false,
197
- onlyDirectories: false,
198
- ignore: ['**/node_modules/**'],
199
- });
200
- return Promise.all(gitPaths.map((path) => rmdir(path, { force: true }))).then(() => { });
201
- }
202
- //# sourceMappingURL=init.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/services/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,kBAAkB,CAAA;AACnC,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAElB,cAAc,EAEd,6BAA6B,EAC7B,gBAAgB,GACjB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,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AQ,CAAC,kBAAkB,EAAE,IAAI,EAAE,aAAa,CAAC;QACjD,QAAQ,CAAC,kBAAkB,EAAE,eAAe,CAAC;KAC9C,EACD;QACE,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;QACtB,MAAM,EAAE,CAAC,oBAAoB,CAAC;KAC/B,CACF,CAAA;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;AACvF,CAAC","sourcesContent":["import {ui} from '@shopify/cli-kit'\nimport {username} from '@shopify/cli-kit/node/os'\nimport {\n findUpAndReadPackageJson,\n installNodeModules,\n PackageJson,\n packageManager,\n PackageManager,\n packageManagerUsedForCreating,\n writePackageJSON,\n} from '@shopify/cli-kit/node/node-package-manager'\nimport {parseGitHubRepositoryURL} from '@shopify/cli-kit/node/github'\nimport {hyphenate} from '@shopify/cli-kit/common/string'\nimport {recursiveLiquidTemplateCopy} from '@shopify/cli-kit/node/liquid'\nimport {CLI_KIT_VERSION} from '@shopify/cli-kit/common/version'\nimport {isShopify} from '@shopify/cli-kit/node/environment/local'\nimport {\n addAllToGitFromDirectory,\n createGitCommit,\n downloadGitRepository,\n initializeGitRepository,\n} from '@shopify/cli-kit/node/git'\nimport {\n appendFile,\n fileExists,\n inTemporaryDirectory,\n mkdir,\n moveFile,\n rmdir,\n touchFile,\n glob,\n findPathUp,\n} from '@shopify/cli-kit/node/fs'\nimport {joinPath} from '@shopify/cli-kit/node/path'\nimport {AbortError} from '@shopify/cli-kit/node/error'\nimport {outputInfo, outputContent, outputToken} from '@shopify/cli-kit/node/output'\nimport {Task, renderTasks} from '@shopify/cli-kit/node/ui'\n\ninterface InitOptions {\n name: string\n template: string\n directory: string\n packageManager?: string\n shopifyCliVersion?: string\n hydrogenVersion?: string\n local: boolean\n}\n\nconst suggestHydrogenSupport = () => `\nHelp us make Hydrogen better by reporting this error so we can improve this message and/or fix the error.\n - Chat with us on Discord: https://discord.com/invite/ppSbThrFaS\n - Create an issue in GitHub: https://github.com/Shopify/hydrogen/issues/new\n`\n\nasync function init(options: InitOptions) {\n const user = (await username()) ?? ''\n const cliVersion = options.shopifyCliVersion ?? CLI_KIT_VERSION\n const hydrogenPackageVersion = options.hydrogenVersion\n const packageManager = inferPackageManager(options.packageManager)\n const hyphenizedName = hyphenate(options.name)\n const outputDirectory = joinPath(options.directory, hyphenizedName)\n\n await ui.nonEmptyDirectoryPrompt(outputDirectory)\n\n await inTemporaryDirectory(async (tmpDir) => {\n const templateDownloadDir = joinPath(tmpDir, 'download')\n const templateScaffoldDir = joinPath(tmpDir, 'app')\n\n await mkdir(templateDownloadDir)\n await mkdir(templateScaffoldDir)\n\n const templateInfo = await parseGitHubRepositoryURL(options.template).valueOrAbort()\n const branch = templateInfo.ref ? `#${templateInfo.ref}` : ''\n const templatePath = templateInfo.subDirectory\n ? joinPath(templateDownloadDir, templateInfo.subDirectory)\n : templateDownloadDir\n\n const repoUrl = `${templateInfo.http}${branch}`\n\n let tasks: Task[] = [\n {\n title: `Downloading template from ${repoUrl}`,\n task: async () => {\n await downloadGitRepository({\n repoUrl,\n destination: templateDownloadDir,\n shallow: true,\n })\n if (!(await fileExists(joinPath(templatePath, 'package.json')))) {\n throw new AbortError(`The template ${templatePath} was not found.`, suggestHydrogenSupport())\n }\n },\n },\n {\n title: `Initializing your app ${hyphenizedName}`,\n task: async () => {\n return [\n {\n title: 'Parsing template files',\n task: async () => {\n const templateData = {\n name: hyphenizedName,\n shopify_cli_version: cliVersion,\n hydrogen_version: hydrogenPackageVersion,\n author: user,\n dependency_manager: options.packageManager,\n }\n await recursiveLiquidTemplateCopy(templatePath, templateScaffoldDir, templateData)\n },\n },\n {\n title: 'Updating package.json',\n task: async () => {\n const packageJSON = (await findUpAndReadPackageJson(templateScaffoldDir)).content\n packageJSON.name = hyphenizedName\n packageJSON.author = (await username()) ?? ''\n await updateCLIDependencies(packageJSON, options.local, {\n dependencies: {\n '@shopify/hydrogen': hydrogenPackageVersion,\n },\n devDependencies: {\n '@shopify/cli-hydrogen': cliVersion,\n '@shopify/cli': cliVersion,\n },\n })\n await updateCLIScripts(packageJSON)\n await writePackageJSON(templateScaffoldDir, packageJSON)\n },\n },\n ]\n },\n },\n ]\n\n if (await isShopify()) {\n tasks.push({\n title: \"[Shopifolks-only] Configuring the project's NPM registry\",\n task: async () => {\n await writeToNpmrc(templateScaffoldDir, `@shopify:registry=https://registry.npmjs.org`)\n },\n })\n }\n\n tasks = tasks.concat([\n {\n title: `Installing dependencies with ${packageManager}`,\n task: async () => {\n await installDependencies(templateScaffoldDir, packageManager)\n },\n },\n {\n title: 'Cleaning up',\n task: async () => {\n await cleanup(templateScaffoldDir)\n },\n },\n {\n title: 'Initializing a Git repository...',\n task: async () => {\n await initializeGitRepository(templateScaffoldDir)\n await addAllToGitFromDirectory(templateScaffoldDir)\n await createGitCommit('Initial commit generated by Hydrogen', {directory: templateScaffoldDir})\n },\n },\n ])\n\n await renderTasks(tasks)\n\n await moveFile(templateScaffoldDir, outputDirectory)\n })\n\n outputInfo(outputContent`\n✨ ${hyphenizedName} is ready to build!\n🚀 Run ${outputToken.packagejsonScript(\n packageManager,\n 'dev',\n )} to start your local development server and start building.\n\n📚 Docs: ${outputToken.link('Quick start guide', 'https://shopify.dev/custom-storefronts/hydrogen')}`)\n\n outputInfo(outputContent`\n👋 Note: your project will display inventory from the Hydrogen Demo Store.\\\n To connect this project to your Shopify store’s inventory instead,\\\n update ${outputToken.yellow(`${hyphenizedName}/hydrogen.config.js`)} with your\\\n store ID and Storefront API key.\\n`)\n}\n\nfunction inferPackageManager(optionsPackageManager: string | undefined): PackageManager {\n if (optionsPackageManager && packageManager.includes(optionsPackageManager as PackageManager)) {\n return optionsPackageManager as PackageManager\n }\n const usedPackageManager = packageManagerUsedForCreating()\n return usedPackageManager === 'unknown' ? 'npm' : usedPackageManager\n}\n\nexport default init\n\ninterface PackageDependencies {\n devDependencies: {[key: string]: string | undefined}\n dependencies: {[key: string]: string | undefined}\n}\n\nasync function updateCLIScripts(packageJSON: PackageJson): Promise<PackageJson> {\n packageJSON.scripts = packageJSON.scripts || {}\n packageJSON.scripts.dev = `shopify hydrogen dev`\n\n return packageJSON\n}\n\nasync function updateCLIDependencies(\n packageJSON: PackageJson,\n local: boolean,\n packageDependencies: PackageDependencies,\n): Promise<PackageJson> {\n const {devDependencies, dependencies} = packageDependencies\n\n packageJSON.devDependencies = packageJSON.devDependencies || {}\n packageJSON.dependencies = packageJSON.dependencies || {}\n\n Object.keys(devDependencies).forEach((key) => {\n packageJSON.devDependencies![key] = devDependencies[key] || packageJSON.devDependencies![key]!\n })\n\n Object.keys(dependencies).forEach((key) => {\n packageJSON.dependencies![key] = dependencies[key] || packageJSON.dependencies![key]!\n })\n\n if (local) {\n const devDependencyOverrides = {\n '@shopify/cli': `file:${(await findPathUp('packages/cli', {type: 'directory'})) as string}`,\n '@shopify/cli-hydrogen': `file:${(await findPathUp('packages/cli-hydrogen', {type: 'directory'})) as string}`,\n }\n\n packageJSON.overrides = packageJSON.overrides\n ? {...packageJSON.overrides, ...devDependencyOverrides}\n : devDependencyOverrides\n\n packageJSON.resolutions = packageJSON.resolutions\n ? {...packageJSON.resolutions, ...devDependencyOverrides}\n : devDependencyOverrides\n }\n\n return packageJSON\n}\n\nasync function installDependencies(directory: string, packageManager: PackageManager): Promise<void> {\n if (packageManager === 'pnpm') {\n await writeToNpmrc(directory, 'auto-install-peers = true')\n }\n await installNodeModules({directory, packageManager, args: []})\n}\n\nasync function writeToNpmrc(directory: string, content: string) {\n const npmrcPath = joinPath(directory, '.npmrc')\n const npmrcContent = `${content}\\n`\n if (!(await fileExists(npmrcPath))) {\n await touchFile(npmrcPath)\n }\n await appendFile(npmrcPath, npmrcContent)\n}\n\nasync function cleanup(webOutputDirectory: string) {\n const gitPaths = await glob(\n [\n joinPath(webOutputDirectory, '**', '.git'),\n joinPath(webOutputDirectory, '**', '.github'),\n joinPath(webOutputDirectory, '**', '.gitmodules'),\n joinPath(webOutputDirectory, '.stackblitzrc'),\n ],\n {\n dot: true,\n onlyFiles: false,\n onlyDirectories: false,\n ignore: ['**/node_modules/**'],\n },\n )\n\n return Promise.all(gitPaths.map((path) => rmdir(path, {force: true}))).then(() => {})\n}\n"]}
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/alphabet.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/help.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/pjson.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/topic.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/plugin.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/command.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/hooks.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/config.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/parser.d.ts","../../cli-kit/dist/public/node/cli.d.ts","../src/index.ts","../../cli-kit/dist/ui.d.ts","../../cli-kit/dist/index.d.ts","../../../node_modules/.pnpm/@types+react@16.14.0/node_modules/@types/react/global.d.ts","../../../node_modules/.pnpm/csstype@3.1.1/node_modules/csstype/index.d.ts","../../../node_modules/.pnpm/@types+prop-types@15.7.5/node_modules/@types/prop-types/index.d.ts","../../../node_modules/.pnpm/@types+react@16.14.0/node_modules/@types/react/index.d.ts","../../cli-kit/dist/private/node/ui/components/TokenizedText.d.ts","../../../node_modules/.pnpm/no-case@3.0.4/node_modules/no-case/dist/index.d.ts","../../../node_modules/.pnpm/pascal-case@3.1.2/node_modules/pascal-case/dist/index.d.ts","../../../node_modules/.pnpm/camel-case@4.1.2/node_modules/camel-case/dist/index.d.ts","../../../node_modules/.pnpm/capital-case@1.0.4/node_modules/capital-case/dist/index.d.ts","../../../node_modules/.pnpm/constant-case@3.0.4/node_modules/constant-case/dist/index.d.ts","../../../node_modules/.pnpm/dot-case@3.0.4/node_modules/dot-case/dist/index.d.ts","../../../node_modules/.pnpm/header-case@2.0.4/node_modules/header-case/dist/index.d.ts","../../../node_modules/.pnpm/param-case@3.0.4/node_modules/param-case/dist/index.d.ts","../../../node_modules/.pnpm/path-case@3.0.4/node_modules/path-case/dist/index.d.ts","../../../node_modules/.pnpm/sentence-case@3.0.4/node_modules/sentence-case/dist/index.d.ts","../../../node_modules/.pnpm/snake-case@3.0.4/node_modules/snake-case/dist/index.d.ts","../../../node_modules/.pnpm/change-case@4.1.2/node_modules/change-case/dist/index.d.ts","../../cli-kit/dist/public/common/string.d.ts","../../cli-kit/dist/public/node/result.d.ts","../../cli-kit/dist/public/node/github.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@14.18.36/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/node-abort-controller@3.0.1/node_modules/node-abort-controller/index.d.ts","../../cli-kit/dist/public/node/abort.d.ts","../../cli-kit/dist/public/node/node-package-manager.d.ts","../../../node_modules/.pnpm/@types+diff@5.0.2/node_modules/@types/diff/index.d.ts","../../cli-kit/dist/private/node/content-tokens.d.ts","../../../node_modules/.pnpm/log-update@4.0.0/node_modules/log-update/index.d.ts","../../cli-kit/dist/public/node/output.d.ts","../../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/es.d.ts","../../cli-kit/dist/public/node/error.d.ts","../../cli-kit/dist/private/node/ui/components/Banner.d.ts","../../cli-kit/dist/private/node/ui/components/Alert.d.ts","../../cli-kit/dist/private/node/ui/components/Table/ScalarDict.d.ts","../../cli-kit/dist/private/node/ui/components/Table/Table.d.ts","../../cli-kit/dist/private/node/ui/components/SelectInput.d.ts","../../cli-kit/dist/private/node/ui/components/Prompts/InfoTable.d.ts","../../cli-kit/dist/private/node/ui/components/SelectPrompt.d.ts","../../cli-kit/dist/private/node/ui/components/Tasks.d.ts","../../cli-kit/dist/private/node/ui/components/TextPrompt.d.ts","../../cli-kit/dist/private/node/ui/components/AutocompletePrompt.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/ink.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/render.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/basic.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/except.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/mutable.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/merge.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/merge-exclusive.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/require-at-least-one.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/require-exactly-one.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/partial-deep.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/readonly-deep.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/literal-union.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/promisable.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/opaque.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/set-optional.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/set-required.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/promise-value.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/async-return-type.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/conditional-keys.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/conditional-except.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/conditional-pick.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/union-to-intersection.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/package-json.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/source/tsconfig-json.d.ts","../../../node_modules/.pnpm/type-fest@0.12.0/node_modules/type-fest/index.d.ts","../../../node_modules/.pnpm/@types+yoga-layout@1.9.2/node_modules/@types/yoga-layout/index.d.ts","../../../node_modules/.pnpm/yoga-layout-prebuilt@1.10.0/node_modules/yoga-layout-prebuilt/index.d.ts","../../../node_modules/.pnpm/cli-boxes@2.2.1/node_modules/cli-boxes/index.d.ts","../../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/styles.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/output.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/render-node-to-output.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/dom.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/Box.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/Text.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/AppContext.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/StdinContext.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/StdoutContext.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/StderrContext.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/Static.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/Transform.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/Newline.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/Spacer.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/hooks/use-input.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/hooks/use-app.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/hooks/use-stdin.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/hooks/use-stdout.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/hooks/use-stderr.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/hooks/use-focus.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/components/FocusContext.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/hooks/use-focus-manager.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/measure-element.d.ts","../../../node_modules/.pnpm/ink@3.2.0_hw3ykagcixqw57etxpo4kpffqq/node_modules/ink/build/index.d.ts","../../cli-kit/dist/public/node/ui.d.ts","../src/prompts/init.ts","../../cli-kit/dist/public/node/os.d.ts","../../cli-kit/dist/public/node/liquid.d.ts","../../cli-kit/dist/public/common/version.d.ts","../../cli-kit/dist/public/node/environment/local.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/task.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/types/tasks.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/types/handlers.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/types/index.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/log.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/typings/response.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/config.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/tasks/version.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/typings/types.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/typings/errors.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/typings/simple-git.d.ts","../../../node_modules/.pnpm/simple-git@3.16.0/node_modules/simple-git/dist/typings/index.d.ts","../../cli-kit/dist/public/node/git.d.ts","../../cli-kit/dist/private/common/ts/overloaded-parameters.d.ts","../../../node_modules/.pnpm/locate-path@7.1.1/node_modules/locate-path/index.d.ts","../../../node_modules/.pnpm/find-up@6.2.0/node_modules/find-up/index.d.ts","../../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/types/index.d.ts","../../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts","../../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.d.ts","../../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.d.ts","../../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.d.ts","../../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/types/index.d.ts","../../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts","../../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.d.ts","../../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts","../../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.d.ts","../../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/types/index.d.ts","../../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.d.ts","../../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts","../../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.d.ts","../../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.d.ts","../../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.d.ts","../../../node_modules/.pnpm/fast-glob@3.2.11/node_modules/fast-glob/out/types/index.d.ts","../../../node_modules/.pnpm/fast-glob@3.2.11/node_modules/fast-glob/out/settings.d.ts","../../../node_modules/.pnpm/fast-glob@3.2.11/node_modules/fast-glob/out/managers/tasks.d.ts","../../../node_modules/.pnpm/fast-glob@3.2.11/node_modules/fast-glob/out/index.d.ts","../../cli-kit/dist/public/node/fs.d.ts","../../../node_modules/.pnpm/pathe@1.0.0/node_modules/pathe/dist/index.d.ts","../../cli-kit/dist/public/node/path.d.ts","../src/services/init.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/errors.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/manifest.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/s3-manifest.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/ts-config.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/flags.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/interfaces/index.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/config/plugin.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/config/config.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/config/ts-node.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/config/index.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/errors/handle.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/errors/errors/cli.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/errors/errors/exit.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/errors/errors/module-load.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/errors/logger.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/errors/config.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/errors/index.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/command.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/main.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/parser/args.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/parser/flags.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/parser/help.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/parser/index.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/flags.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/help/formatter.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/help/command.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/help/util.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/help/index.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/settings.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/action/base.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/config.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/exit.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/prompt.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/styled/table.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/styled/header.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/styled/json.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/styled/tree.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/open.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/styled/progress.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/cli-ux/index.d.ts","../../../node_modules/.pnpm/@oclif+core@1.21.0/node_modules/@oclif/core/lib/index.d.ts","../../cli-kit/dist/public/node/base-command.d.ts","../src/commands/init.ts","../../../node_modules/.pnpm/@types+decompress@4.2.4/node_modules/@types/decompress/index.d.ts","../../../node_modules/.pnpm/@types+got@8.3.6/node_modules/@types/got/index.d.ts","../../../node_modules/.pnpm/@types+download@8.0.0/node_modules/@types/download/index.d.ts","../src/utils/template.ts","../../../node_modules/.pnpm/@types+prettier@2.6.3/node_modules/@types/prettier/index.d.ts","../../../node_modules/.pnpm/@types+minimatch@5.1.2/node_modules/@types/minimatch/index.d.ts","../../../node_modules/.pnpm/@types+glob@8.0.0/node_modules/@types/glob/index.d.ts","../../../node_modules/.pnpm/@types+rimraf@3.0.2/node_modules/@types/rimraf/index.d.ts","../../../node_modules/.pnpm/@types+tmp@0.2.3/node_modules/@types/tmp/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","impliedFormat":1},{"version":"7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","impliedFormat":1},{"version":"8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","impliedFormat":1},{"version":"5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","impliedFormat":1},{"version":"4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","impliedFormat":1},{"version":"1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","impliedFormat":1},{"version":"746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","impliedFormat":1},{"version":"d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","impliedFormat":1},{"version":"aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c","impliedFormat":1},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true,"impliedFormat":1},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true,"impliedFormat":1},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true,"impliedFormat":1},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true,"impliedFormat":1},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true,"impliedFormat":1},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true,"impliedFormat":1},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true,"impliedFormat":1},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true,"impliedFormat":1},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true,"impliedFormat":1},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true,"impliedFormat":1},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true,"impliedFormat":1},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true,"impliedFormat":1},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true,"impliedFormat":1},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true,"impliedFormat":1},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true,"impliedFormat":1},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true,"impliedFormat":1},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"032e362f68a69c4f6af9678b4f5fdcf5b6c348e6aa279a7b2c89099bb7887a0a","impliedFormat":1},{"version":"3184417b619fcdab232c520b9e51c33972a43640fd42c34d2ceb3f2af2e036d0","impliedFormat":1},{"version":"6433c1b200af13943b383a60632c79afa9dc8c2f96d1b5085aafff98f922cccd","impliedFormat":1},{"version":"bd80422c68e0575fee07883efc93fdbf32da39f76ab8479d56eba05e7fac8363","impliedFormat":1},{"version":"541d83a171c845dab186d0f5b9142d3800b9ed1cef8984624d4fe28877603fd9","impliedFormat":1},{"version":"9ac666df71b2cd6f986cbf7894c59aa3de334e50b992881c4033c2d05d743a5e","impliedFormat":1},{"version":"72c75a28c3e7492f8b81ba4b829479375e83073e2d816aae025bb44f13000db9","impliedFormat":1},{"version":"143627ddfcf5bfadb61d470cf58930289b52dad248a549976782c3de548464a5","impliedFormat":1},{"version":"129730e30ad3b1346d47f37d1a4cd9d25ae5ed677a739be1ef747001918e7b5c","impliedFormat":1},{"version":"92ac58f1a4a16b622821c9593ad975453ee6ad8219af854d3b8e51d465409d3d","impliedFormat":99},{"version":"a9723e515b1ea8a47c13bf68709b73fa9dd77277e25cee0f18ff2ab96c7fe892","signature":"6a9f5c185e8e121d9d66f13b89804016884a014c1c7b3c233c8948968a04ae66","impliedFormat":99},{"version":"f7f1602b16c63c5b30204355a2d4b471b0baeef3e5a03e573d8f1f6dee0fc4dd","impliedFormat":99},{"version":"abe8091280622086d4f32f63506fa6b4ef6a92bfa9a75f0e828ac3b3d523b15d","impliedFormat":99},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c29793071152b207c01ea1954e343be9a44d85234447b2b236acae9e709a383","impliedFormat":1},{"version":"6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","impliedFormat":1},{"version":"daccb352940b992b3042ce0481f1d1a57956f187bb66656d2e2992775e8584eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"479faa1525cb6c75ed4ac76fb79089c6e3e3cf912a3e01220e4ef76d9386519f","impliedFormat":99},{"version":"b4e123af1af6049685c93073a15868b50aebdad666d422edc72fa2b585fa8a37","impliedFormat":1},{"version":"f86c04a744ebcede96bac376f9a2c90f2bd3c422740d91dda4ca6233199d4977","impliedFormat":1},{"version":"6ae1bddee5c790439bd992abd063b9b46e0cadd676c2a8562268d1869213ff60","impliedFormat":1},{"version":"606244fc97a6a74b877f2e924ba7e55b233bc6acb57d7bf40ba84a5be2d9adb0","impliedFormat":1},{"version":"4a1cabac71036b8a14f5db1b753b579f0c901c7d7b9227e6872dadf6efb104e8","impliedFormat":1},{"version":"062959a1d825b96639d87be35fe497cbd3f89544bf06fdad577bbfb85fcf604c","impliedFormat":1},{"version":"4c3672dc8f4e4fdd3d18525b22b31f1b5481f5a415db96550d3ac5163a6c3dd3","impliedFormat":1},{"version":"f9a69ca445010b91fe08f08c06e0f86d79c0d776905f9bdb828477cb2a1eb7fc","impliedFormat":1},{"version":"ad7fd0e7ee457d4884b3aaecbcbd2a80b6803407c4ce2540c296170d4c7918ef","impliedFormat":1},{"version":"a50ef21605f41c6acad6c3ef0307e5311b94963c846ca093c764b80cdb5318d6","impliedFormat":1},{"version":"74b4035dd26d09a417c44ca23ab5ee69b173f8c2f6b2e47350ab0795cf2d4a17","impliedFormat":1},{"version":"918f86ee2b19cc38cb8b1a4cf8f223eb228aaa39df3604c42f700fac2f0b3ea1","impliedFormat":1},{"version":"5a1bdd36bbd496dce25c6cdc4f9b7932912214428da70d10bc2bc07e5a178e41","impliedFormat":99},{"version":"6656ee3ecb2a17c7e093eea5e0f1e8b4b5cb2ba87d2b6b78a321793aebcc5ef1","impliedFormat":99},{"version":"2ebf8123d048f5d47acc66a4b5a130253df98d6cba875e555343f4872f52693a","impliedFormat":99},{"version":"4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5","impliedFormat":1},{"version":"5540267409ab1444c73c786b8ae4caa37d5f0ea41f9255c6123338da790ce5cc","affectsGlobalScope":true,"impliedFormat":1},{"version":"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","impliedFormat":1},{"version":"3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","impliedFormat":1},{"version":"9deb3a5eaf187df1428f0fee83c8c51eedb74f6da3442410bad9688e42a7e2b5","impliedFormat":1},{"version":"d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b","impliedFormat":1},{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true,"impliedFormat":1},{"version":"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","impliedFormat":1},{"version":"db86f82fac051ae344b47e8fe7ac7990174b41db79b2b220a49dc5a47c71a9b5","impliedFormat":1},{"version":"b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","impliedFormat":1},{"version":"4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f","impliedFormat":1},{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true,"impliedFormat":1},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","impliedFormat":1},{"version":"92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","impliedFormat":1},{"version":"cf0a69c71aedf2f8fe45925abd554fd3dc7301ce66d6ab7521fb8c3471c24dd8","impliedFormat":1},{"version":"56e6722c6013609b3e5e6ed4a8a7e01f41da6c5e3d6f0ecff3d09ef7a81414cf","impliedFormat":1},{"version":"139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","impliedFormat":1},{"version":"f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","impliedFormat":1},{"version":"44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","impliedFormat":1},{"version":"d79fda68cbfb361c4ee9cd9ea169babb65887534d64017726cd01f54783d20a5","impliedFormat":1},{"version":"155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","impliedFormat":1},{"version":"e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","impliedFormat":1},{"version":"4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4","impliedFormat":1},{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true,"impliedFormat":1},{"version":"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","impliedFormat":1},{"version":"9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","impliedFormat":1},{"version":"f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","impliedFormat":1},{"version":"e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","impliedFormat":1},{"version":"c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","impliedFormat":1},{"version":"874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","impliedFormat":1},{"version":"6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","impliedFormat":1},{"version":"504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","impliedFormat":1},{"version":"23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","impliedFormat":1},{"version":"4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce","impliedFormat":1},{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true,"impliedFormat":1},{"version":"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","impliedFormat":1},{"version":"a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","impliedFormat":1},{"version":"4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","impliedFormat":1},{"version":"3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","impliedFormat":1},{"version":"0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","impliedFormat":1},{"version":"22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24","impliedFormat":1},{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true,"impliedFormat":1},{"version":"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","impliedFormat":1},{"version":"f2ae24bba46613ed01d20d1e18104e161537321ade560e0ea7f5b80279397abe","impliedFormat":1},{"version":"d8aefefcd7cdfd6cd7f123039ca62be5e82289b61a8388faec0c42bbb74e8000","impliedFormat":99},{"version":"8f1fdccb84cc6a2017cf3cce67e5ee8cf133f35699e0810a78549b723b67275d","impliedFormat":99},{"version":"5cd8c47a9c9f0392dbe2d3095cb8549ece7256a2278bee6cf8ef3bfee2a70371","impliedFormat":1},{"version":"ea37ed9ae575a7b08f96c281296ab2e51c7f69731dd6a06a2825e4b996b565c2","impliedFormat":99},{"version":"85a035d0afbc7175fbb098eab98626f22dc2fd9c5440cee22743efa945792141","impliedFormat":1},{"version":"545ed07c47c4bf11fcd61abcf257e256ffda90ba6e7adbe62f7101d96b400ab6","impliedFormat":99},{"version":"c6d4e9653007664acc0a8971c94d851c9a286b7a80b54a32c47d90f0d0cae3fe","impliedFormat":1},{"version":"f200f01473ef31ac817483225153a88b846795b00fb0460708ab8d52ac9714b2","impliedFormat":99},{"version":"e8e15b10cb1334e4fe6c7e89326aed13e0c069ce44bf4ad1eb2c172de0c52434","impliedFormat":99},{"version":"0a8b9e54e9d00dc8be497e667ba93cfe9b758498bb80c6a322af0ee6b3d59ba3","impliedFormat":99},{"version":"034504c3e3bea85a12c997a0674e1457f4e4ac357804cf6b92a8c231bffca0f3","impliedFormat":99},{"version":"5fc597e88869b9a5f58da1d6c555e5f64b85bde0497365749c785fbec778a5b6","impliedFormat":99},{"version":"94ebed32a2190c1533fa5979ed44db2ac7e27e19b0ae8e23abea21607f8fb668","impliedFormat":99},{"version":"dc267c4a928e0493d64e97dbc2009e1d8b9eec48414dc1fd9f75e5f51251491c","impliedFormat":99},{"version":"b999cdd084b77685b6b5320c990f8281428508242f1e82d5f5a38ffec8b3dfad","impliedFormat":99},{"version":"3524b23b5ccb0627414dcfb18c047971389a879ec307e8b8892aaa170e04d1e8","impliedFormat":99},{"version":"3857651b50f547aef89d82a91a12eb52ec17a95be9fbf293c9379d354771e241","impliedFormat":99},{"version":"62fba657da736c08b13c7274ee2408a1ed37e49019287c1d93a1fb576bc64255","impliedFormat":99},{"version":"8701dc18f126b8327a76068ffd81b76c2c19a94882e3772751c8233c4e42d910","impliedFormat":1},{"version":"630e6ae9c6ca8afea0b68421b4cbd18ba028ce7b79578814f2b34258874b9b3e","impliedFormat":1},{"version":"e2ec925bf462e6db89c9b7d934f67fef251f111a9f14a775f82ac4d3a0bc5c42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c58be3e560989a877531d3ff7c9e5db41c5dd9282480ccf197abfcc708a95b8d","impliedFormat":1},{"version":"91f23ddc3971b1c8938c638fb55601a339483953e1eb800675fa5b5e8113db72","impliedFormat":1},{"version":"50d22844db90a0dcd359afeb59dd1e9a384d977b4b363c880b4e65047237a29e","impliedFormat":1},{"version":"d33782b82eea0ee17b99ca563bd19b38259a3aaf096d306ceaf59cd4422629be","impliedFormat":1},{"version":"7f7f1420c69806e268ab7820cbe31a2dcb2f836f28b3d09132a2a95b4a454b80","impliedFormat":1},{"version":"2d14198b25428b7b8010a895085add8edfaae476ab863c0c15fe2867fc214fe4","impliedFormat":1},{"version":"61046f12c3cfafd353d2d03febc96b441c1a0e3bb82a5a88de78cc1be9e10520","impliedFormat":1},{"version":"f4e7f5824ac7b35539efc3bef36b3e6be89603b88224cb5c0ad3526a454fc895","impliedFormat":1},{"version":"091af8276fbc70609a00e296840bd284a2fe29df282f0e8dae2de9f0a706685f","impliedFormat":1},{"version":"537aff717746703d2157ec563b5de4f6393ce9f69a84ae62b49e9b6c80b6e587","impliedFormat":1},{"version":"d4220a16027ddf0cc7d105d80cbb01f5070ca7ddd8b2d007cfb024b27e22b912","impliedFormat":1},{"version":"fb3aa3fb5f4fcd0d57d389a566c962e92dbfdaea3c38e3eaf27d466e168871c6","impliedFormat":1},{"version":"0af1485d84516c1a080c1f4569fea672caac8051e29f33733bf8d01df718d213","impliedFormat":1},{"version":"c2d56efa50f7d0ac8e4e7125fe5e213c1f13228117a70c54e79d23d5529c3fc8","impliedFormat":1},{"version":"677d9e197ed0a49556a07c16988b967b6662d48b8475bfc78aba62052c684736","impliedFormat":1},{"version":"ae7f57067310d6c4acbc4862b91b5799e88831f4ab77f865443a9bc5057b540a","impliedFormat":1},{"version":"955d0c60502897e9735fcd08d2c1ad484b6166786328b89386074aebcd735776","impliedFormat":1},{"version":"2fa69d202a513f2a6553f263d473cba85d598ce250261715d78e8aab42df6b93","impliedFormat":1},{"version":"c17d5f8e1f0d7cb88000577b29579e758d94fe2d655db41fed16183498860f60","impliedFormat":1},{"version":"09759a6d77fcbbc42729c6ad12c78bd1603e7ef516fc2830b0f7900ae0c45293","impliedFormat":1},{"version":"8e358d80ac052e9f4e5cc16d06c946628834b47718a4bd101ef2087603b8e5c7","impliedFormat":1},{"version":"cadaf02024a07a4281e3bf732e51513c6b2092a6312dab5d30538fe4379e0591","impliedFormat":1},{"version":"7693b0547e3b004443fa1f4327b61617e7317757a3e947ccc200c91111c77eca","impliedFormat":1},{"version":"933951715588cc422929cb50374d379cd87085a8964364a34fd22d93a58169d9","impliedFormat":1},{"version":"34739077a773aee172bdace5082c5411e2089b62e586cd097ea55362f1a3b1de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"7ca2a07f2f5fccbccd7728817bc158b29b0f2eebd2b0d63cf6a224c1d6aea62f","impliedFormat":1},{"version":"cd8700cc9e5207d35d5ad881cf94b8f9ce80705e077319f07935e7d234f5a128","impliedFormat":1},{"version":"a79727ef121c99a2e8dcd104093e5bb80411246e39010c3353b5a946c20303d2","impliedFormat":1},{"version":"8e20ef671d875f219bf95b1f6944df4d017e956298331f5bf385070615a8ed57","impliedFormat":1},{"version":"89fda89f2df5dc91b2434f481c953a312b03833a98fa2b749704adfe500f0725","impliedFormat":1},{"version":"5e585d15b327d05f43c58a2ee44850c8fc36ece47e15ef462afe004f245ca9da","impliedFormat":1},{"version":"46f78634d65c763f6971d2b32f18635887031404d8f11c5573c28d50a47eed45","impliedFormat":1},{"version":"41fea219fa2137b5139601b1f1049236cca76850c4f14a0f71c26cf40ee9866d","impliedFormat":1},{"version":"61efd6a8ce485bf977c6ed38e19f8c29c10ea101593b666835eca7a87e5db1bb","impliedFormat":1},{"version":"298faafd22651d8c6d3cfe014604751b5a82868fe891e3dae48d189f8bc8f21e","impliedFormat":1},{"version":"aff972252c2ec34e843f337e2e7666029573893c29340c867bb7407c353fcba6","impliedFormat":1},{"version":"6aa67539c97cf84f77e87b4a434864baa8c69b33e51d0ec4df348799179834c6","impliedFormat":1},{"version":"576f76190b88ef5b22f2c39339a7947c1002542aa7799d8cee81abcee2b0402b","impliedFormat":1},{"version":"c6852cbfe9e934e598379ce48ebba413e0999eb10390039dc6fa13e805e9e444","impliedFormat":1},{"version":"4fc26db2b0fffef61828961ac65a21e3583e3735658548a3941857f21784973d","impliedFormat":1},{"version":"871664882c60cf841fefd52761aa2798421791faa9c88095bf8ebe5f53c977be","impliedFormat":1},{"version":"fbeac78a130c0ab2b81ce75b90bca19aa87793526b6c54763a4ec5975b127ada","impliedFormat":1},{"version":"c38533c64c5a9acefabbfb6605120663777fba72d2f0bfc53766a512c797715e","impliedFormat":1},{"version":"16693101054ec3cf63e6604ae07b1df2c5ace5d10bd3ca5affa93048cd8a1d61","impliedFormat":1},{"version":"728f6373043db3a0334505130a3f2ce86b1840f739723d1616ef008c7d4391ea","impliedFormat":1},{"version":"89cb1f50de9f129893a56f4227e6fcc5f21b62ebad9a8ac2aee4223b4c0b8396","impliedFormat":1},{"version":"f62f57441165139240702328ab5e07d2f5b43e4ce0e08f9039b36180f62da863","impliedFormat":1},{"version":"fc3e8f64876809532ec76a57452e6038fa9b956aaa9adabe68ebae137f5fcfa0","impliedFormat":1},{"version":"9948f24e03a9d7f209d1ef2323936c56d523e62a6dbe6cccaa6ef39eb44f4fe0","impliedFormat":1},{"version":"6e433cc2bf6dc1739cc8c562333bd244b41527f8af04fe5a151d400978783c6e","impliedFormat":99},{"version":"2ea52b3d97aa7a62ec9f3dcc401a68d5ea5977f2a49f63b682622b34560613e4","signature":"b1fc384251e46b726ae3e6ab7442e33deb824ad3dda1f9c26730e529c5789021","impliedFormat":99},{"version":"158d1ee542c393a4533fe4ab0515711c1b97fc76f5cd66348e69f55f7ddfab6a","impliedFormat":99},{"version":"cae3d6552150370aff47d1f4499ca4bfd372e46abefbd110c9b590deddd212f7","impliedFormat":99},{"version":"118260f64ebd1c49dc38b3ea39f97894be1296bef76dbf466ec7571c573939a3","impliedFormat":99},{"version":"5873d27d56c1ddbc8d355cda1df6a37a8110fc94c422890e5c3feae776e632b2","impliedFormat":99},{"version":"82c661f1f20d29212d2e0408bee2e0f54bf8930cdcdd88f23ef8e03e4618afb4","impliedFormat":1},{"version":"d53d8a71b9525be3fb65c331f20db99b826edfa922703578af284736dc780db5","impliedFormat":1},{"version":"6256cf36c8ae7e82bff606595af8fe08a06f8478140fcf304ee2f10c7716ddc8","impliedFormat":1},{"version":"2ba0457b958954b9b2041077df992fad015e85c615dc1ccebeddb561d4ab89cf","impliedFormat":1},{"version":"b07afd5542580a7b527d5dc653f4cb87468486a5ceb0390738b84224bfbc6828","impliedFormat":1},{"version":"1f8d4c8257ba50385865ce887940c8fdc745bcf3cea2dc09173bc8d3320b6efe","impliedFormat":1},{"version":"8459a11cb29556837148a3f82ccff6f3d9745070c3ed77264e279e7fe35ed0b7","impliedFormat":1},{"version":"7c774169686976056434799723bd7a48348df9d2204b928a0b77920505585214","impliedFormat":1},{"version":"d3c8a891b0554f4319651b5c89c2d91a442a792bf84afcbc399be033b96b4abd","impliedFormat":1},{"version":"8758b438b12ea50fb8b678d29ab0ef42d77abfb801cec481596ce6002b537a6f","impliedFormat":1},{"version":"88074e936d33e224b83f81eebbaf835467e1c0a6ba1239b950e6476dd7f73356","impliedFormat":1},{"version":"c895675912a8b2d0dcb13d24433757d233de16a3bb5c60f7d903099d96d61ea8","impliedFormat":1},{"version":"f73cf81342d2a25b65179c262ca7c38df023969129094607d0eb52510a56f10f","impliedFormat":1},{"version":"e7d7e67bd66b30f2216e4678b97bb09629a2b31766a79119acaa30e3005ef5fb","impliedFormat":1},{"version":"4a7b9005bef99460ba60da67219f0aff852cfd44038f17626bf59a6b5c6960b5","impliedFormat":1},{"version":"e137f087bda0256410b28743ef9a1bf57a4cafd43ffa6b62d5c17a8f5a08b3b5","impliedFormat":1},{"version":"61548ce47ca0c5cfd0b633cded954e02c06abfcdaca05fae15cc6ae56817d33e","impliedFormat":1},{"version":"af504042a6db047c40cc0aeb14550bbc954f194f2b8c5ad8944f2da502f45bf5","impliedFormat":1},{"version":"5b25b6ab5ad6c17f90b592162b2e9978ad8d81edf24cd3957306eb6e5edb89a9","impliedFormat":1},{"version":"24693bd77ac3be0b16e564d0ab498a397feb758ce7f4ed9f13478d566e3aafde","impliedFormat":1},{"version":"208dad548b895c7d02465de6ba79064b7c67bc4d94e5227b09f21d58790e634c","impliedFormat":1},{"version":"048c0ced65fa41fbf4bcc3d5e8e5b6f6c7f27335ceb54d401be654e821adbc08","impliedFormat":1},{"version":"c54d71622a184bf1f836c1be75f3106c2fd2ef9351e3abf1493cdd700e6db665","impliedFormat":1},{"version":"9a57d654b0a0e4bf56a8eb0aa3ede1c7d349cec6220e36b5288c26626c8688ed","impliedFormat":1},{"version":"19ed81ab90daaa336b14c362676ec4e744f7fc26fcae3bfbb199df7687f951a1","impliedFormat":99},{"version":"5269ddfd9e80f52c265594e69b91d7933858d565bf586e0ed1ef2a02d655d13c","impliedFormat":99},{"version":"51cac533b4031fe5d4fecef5635afac9c0dca87c11f5b325e49e1600a9c51117","impliedFormat":99},{"version":"8b5baae22d64e1c47b88bdf16025396940393cfa830c66d9f330c1701e91ba91","impliedFormat":99},{"version":"46324183533e34fad2461b51174132e8e0e4b3ac1ceb5032e4952992739d1eab","impliedFormat":1},{"version":"d3fa0530dfb1df408f0abd76486de39def69ca47683d4a3529b2d22fce27c693","impliedFormat":1},{"version":"d9be977c415df16e4defe4995caeca96e637eeef9d216d0d90cdba6fc617e97e","impliedFormat":1},{"version":"98e0c2b48d855a844099123e8ec20fe383ecd1c5877f3895b048656befe268d0","impliedFormat":1},{"version":"ff53802a97b7d11ab3c4395aa052baa14cd12d2b1ed236b520a833fdd2a15003","impliedFormat":1},{"version":"fce9262f840a74118112caf685b725e1cc86cd2b0927311511113d90d87cc61e","impliedFormat":1},{"version":"d7a7cac49af2a3bfc208fe68831fbfa569864f74a7f31cc3a607f641e6c583fd","impliedFormat":1},{"version":"9a80e3322d08274f0e41b77923c91fe67b2c8a5134a5278c2cb60a330441554e","impliedFormat":1},{"version":"2460af41191009298d931c592fb6d4151beea320f1f25b73605e2211e53e4e88","impliedFormat":1},{"version":"2f87ea988d84d1c617afdeba9d151435473ab24cd5fc456510c8db26d8bd1581","impliedFormat":1},{"version":"b7336c1c536e3deaedbda956739c6250ac2d0dd171730c42cb57b10368f38a14","impliedFormat":1},{"version":"6fb67d664aaab2f1d1ad4613b58548aecb4b4703b9e4c5dba6b865b31bd14722","impliedFormat":1},{"version":"4414644199b1a047b4234965e07d189781a92b578707c79c3933918d67cd9d85","impliedFormat":1},{"version":"04a4b38c6a1682059eac00e7d0948d99c46642b57003d61d0fe9ccc9df442887","impliedFormat":1},{"version":"f12ea658b060da1752c65ae4f1e4c248587f6cd4cb4acabbf79a110b6b02ff75","impliedFormat":1},{"version":"011b2857871a878d5eae463bedc4b3dd14755dc3a67d5d10f8fbb7823d119294","impliedFormat":1},{"version":"e175549fe57dbff5cd68c1a5ccf33717584d7db9afb8ec216fd2c0daa3b06931","impliedFormat":1},{"version":"ea68c312e1eb9b48f7064a8dda348594769ba8f9c8596315827c559734a60205","impliedFormat":1},{"version":"6ddb5fb4476ca702ecff9e5ff0295cde6ce138d71f817da65e118a2a3c534106","impliedFormat":1},{"version":"6dfff2e65f10158f5a868e642a2e74d2d1bd76f15291552f389f2b8c829a9a86","impliedFormat":1},{"version":"7e0327ae1b8b93f1c82fb61d34a2ffdf259ba1dd7fbe7c8c9f0c879c208f941d","impliedFormat":99},{"version":"30d5d6fa1ac3d09f8c190e3b805cabad6830ef9f15d5b37582e4d7afe23d3f96","impliedFormat":1},{"version":"5d35c0f0eb4355cb27634dfc33e6ea4ffeb6c2bb3a11304779bcf7c07024708a","impliedFormat":99},{"version":"d190e5d046f2a7adb939fdf496c03caf4fb4b027af3f63575e5b9ef83e14e6ed","signature":"16285f272eb3d99f37c01d27892cebd535744e20894d323514cbe78c31288952","impliedFormat":99},{"version":"4cbb99e1685ca6d0cea375d50c7c6e0f1c444fb4bdf301c48f7bfc92b7eea4b1","impliedFormat":1},{"version":"4108bca6ec2cc28598948e80fca629bb096ca3371091ee3bbca6f87c8a8ff3e1","impliedFormat":1},{"version":"2b3849074b5813376ffe71ff550ef25cce638c43385ed63c1b5be504d3e213f6","impliedFormat":1},{"version":"5a82a1daacf5f4e73e4ba80040bd0be03d8fcfee4080c973389b39bd0721553b","impliedFormat":1},{"version":"b410b4b182c22dfe888060c3b8c0f93f65c45c8877716a1b5238fb608e4c1005","impliedFormat":1},{"version":"d47e86b453ee21624f7e2f8e7b93b0b47b969eb87788d322d53ebef5a26c9023","impliedFormat":1},{"version":"75c4c5532773c9b631766ba09d2569e9f0d1365bef527289921b2c575bc0ec67","impliedFormat":1},{"version":"2cb6bdc906dd28720930ed3b1c7257e56952e483ca2d5d7c2e653085d8b5ff8e","impliedFormat":1},{"version":"064572e167723c12fa332de7ca48fe3fbef12f16aa58360381d8b3752b8cdc6d","impliedFormat":1},{"version":"a92c7fc820badc697c7e9e99a9c6046d10edd876611a81c1efe4303ab4b8fecc","impliedFormat":1},{"version":"b1ee01f8c098bbbed20cd174d9ac9737b1562ddafa4f5a9f01f0fe5747d4d096","impliedFormat":1},{"version":"f24b104cf0541b30902b2c947cef8e4955f16068c492d00bc5c70530d8a5ae89","impliedFormat":1},{"version":"4df02f7093cfdaa88c78186c50064ce6307865d5a2b6f52d16b2a477a289840e","impliedFormat":1},{"version":"4a3de027fe2fe214e22db9703023024d85f2863138940a21b4933113313394bb","impliedFormat":1},{"version":"1b9f1ba55985edc074f18ddfe23c6c93d8463ff30651482e8783e56ca0df0653","impliedFormat":1},{"version":"e12f2c48252d0ae261db2be28206e4f1cc282fa5459a0f991a09f86bb766543f","impliedFormat":1},{"version":"19ef1d72f861901d6dd7891cc14c6ca0bd860b3089e33188f4764232b1bfaa38","impliedFormat":1},{"version":"cd03c3b0eceae066465dfaee9753de120c16953ca3ed8609a10f19fa280c8b48","impliedFormat":1},{"version":"caa822c3a8322f3bb27a126c4fa8a848edbd3ad66301a8c56e718ba037375028","impliedFormat":1},{"version":"4ae4aa684c16ce9c0a1769c0a2d7b4513c6f9431fe1a9a0c81cdb7f25106edad","impliedFormat":1},{"version":"9a26677fda840b993d07a2310beab4189c1c4a89e83d28475265c395156bae10","impliedFormat":1},{"version":"df894d669244700d493c60469005a4cc21203bd231c9bd6d629ce94059efbd18","impliedFormat":1},{"version":"9b49996cc030935023db96d3e6d1bca74960687190f22d23a8c651edf26885ac","impliedFormat":1},{"version":"0ed43e68c46b5dd0b38e42a6ecb03c12ef73f97b0c644cc3875c3ca1742a381b","impliedFormat":1},{"version":"fda3714d1ffe5fbf69dfebc2467926834101677bad288d0a4ec85f4092032b33","impliedFormat":1},{"version":"bbe7649658b6dd89e8a902c9db3d293b42a71fe5a1279e6a72790882ce6a3167","impliedFormat":1},{"version":"25720d31d13974a69e5cee13d7358404d812382a89d08a53740689ad3073a5d8","impliedFormat":1},{"version":"3e1bfee779b84427753d800eb45c434920888933c89eb23a0d3db65f1c387edb","impliedFormat":1},{"version":"ee5d6ffd69a8dc1ae67e91df939e83025dfe55b7b1cdae0522c02e2ad189b328","impliedFormat":1},{"version":"ac579dcc930eb508dda88664768b3fbd4d8083abb9b3e9dd07fe12be245ddac2","impliedFormat":1},{"version":"d1adfbdf74b7e96c02e161e5305212232beea6d493ff1c63e6169743955fb298","impliedFormat":1},{"version":"168840936351f71eba6047f128bd450e7f1d724ef92d66d1514f98907061e2e9","impliedFormat":1},{"version":"797cc548454e0dbe50b0767a0b061fa7564b71b57fe541482f0a655a7d2bafb6","impliedFormat":1},{"version":"781cc223d1c1b6539094df46dce708348a90376e8cde19babdbe743057e44642","impliedFormat":1},{"version":"de8ede1a3263a477c17a9702db5eb4bf65c64f0a5cfc2843db886fa9f3bd8e76","impliedFormat":1},{"version":"172c8da34d1fb46bcc97ec7e5829a8e1a71ec444757fcb3b5b90c004b9b45741","impliedFormat":1},{"version":"b9c05c23f53be5b435dde4349f70d5851c74b891a3cdd252efbf149437c3c5f0","impliedFormat":1},{"version":"b53125286827258e0c254c9dd31c5b6f77ecb1494e5b3ea65b3258fa43035107","impliedFormat":1},{"version":"c74a720a78e9d951f3d25c493b7073e3f640afd527f80232e3fca929807b7c52","impliedFormat":1},{"version":"28e32848ea032fb71892622b66a2690c9c57c2da2db61779e90edc47493f51ac","impliedFormat":1},{"version":"27bae7b9f5b62b2d1cc292fb12d4e372c1b4f74dfd3794c797063d43db1f2f3e","impliedFormat":1},{"version":"e45d41fdeb76473fd9a1fc4726f41c09644adb1903baa358abdf162be764b757","impliedFormat":99},{"version":"87b5afbe8f1494d2c0b31c1c8c6c8fd99800b01cce4784d7758d62c9e14aa3bb","signature":"90a72dd840ef571cd2ff38905826eaa27fc1b398d9ec36e70a9ca72745030dd7","impliedFormat":99},{"version":"825080a15a8b14b40ac8c7f90c12a5a11efb0b3857dc02195eae2a3dc98aea14","impliedFormat":1},{"version":"8f76c6bfb627f38ab44c35d1915dfa2d24d4b96307d9b6cc56df5bba246a3ab6","impliedFormat":1},{"version":"dc816ed5704e28a3310f1806740afc8d386fa3864b0bac2cf9382f081af5d9f4","impliedFormat":1},{"version":"62a26bb0d0bd4e4ca60b5911f0380fb75caa80cb6072237391e819af122d7f5f","signature":"af245474b72043099d3a95da154bfa58956fad0ca48cc112e28c88d4fa7c056b","impliedFormat":99},{"version":"f1d8b21cdf08726021c8cce0cd6159486236cf1d633eeabbc435b5b2e5869c2e","impliedFormat":1},{"version":"963d59066dd6742da1918a6213a209bcc205b8ee53b1876ee2b4e6d80f97c85e","impliedFormat":1},{"version":"a55ca8b5f8c6a8535bb26fac1e10132a5338234ca3d5b9ed739fbc8ef41c8075","impliedFormat":1},{"version":"f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","impliedFormat":1},{"version":"6061aa83817c30d3a590f037b3cba22cdd809fbe697926d6511b45147928a342","impliedFormat":1}],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"inlineSources":true,"jsx":2,"module":6,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipDefaultLibCheck":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":7,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"fileIdsList":[[242,243],[243,244,245,246],[131,243,245],[242,244],[101,131],[101,131,238],[238,239,240,241],[238,240],[239],[117,131,247,248,249,252],[248,249,251],[100,131,247,248,249,250],[249],[247,248],[131,247],[291],[278,291,292,293,294,295,296,297,298,299,300],[267],[63,267,271,278],[59,62,267,268],[268,269,270],[57,58,59,60,263],[276],[262],[267,273],[267,272,273,274,275,276,277],[267,284],[60,267,286],[267,286,287,288],[63,267,289],[61,267,271,278,279,280,284,285,286,288,289,290,301],[59,62,63],[57,58,59,60,61],[63],[59,60,62],[55,56,57,58,59,60,61,62,63,262,263,264,265,266],[60],[55,62],[56],[57,58,60],[267,271],[63,123,131,267],[267,281,282,283],[131],[117,131,305,306],[100,101,131,310],[103,105,117,123,131],[88],[90],[91,96],[92,100,101,108,117],[92,93,100,108],[94,124],[95,96,101,109],[96,117],[97,98,100,108],[98],[99,100],[100],[100,101,102,117,123],[101,102],[103,108,117,123],[100,101,103,104,108,117,120,123],[103,105,117,120,123],[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130],[100,106],[107,123],[98,100,108,117],[109],[110],[90,111],[112,122],[113],[114],[100,115],[115,116,124,126],[100,117],[118],[119],[108,117,120],[121],[108,122],[114,123],[124],[117,125],[126],[127],[100,102,117,123,126,128],[117,129],[68,69,70],[101,131,311],[74],[73],[73,74,75,76,77,78,79,80,81,82,83],[131,254,255,256],[254,255],[254],[131,253],[236],[76],[71],[71,175,180,183],[71,180],[71,131],[71,175,179,180],[176,177,180,182],[186],[200],[189],[187],[188],[152,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,201,202],[183],[182],[181,183],[71,131,151],[175,177,178,179],[78],[212,214],[214],[212],[210,214,233],[210,214],[233],[214,233],[92,131,211,213],[131,210,214],[212,227,228,229,230],[216,226,231,232],[215],[216,226,231],[214,215,217,218,219,220,221,222,223,224,225],[153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174],[167],[154,169],[169],[153],[154],[175],[176],[66],[135,138],[71,72,141],[71,145,146],[71,72,145,146],[71,143],[72,84],[132],[302],[72,138,139],[85,101,123,131,235,237,257],[140,233],[86],[117,131,133,140],[117,131,133,134,135,136,137],[123,131,259],[72,133,138,140,142,143,144,145,146,147,148,149,150,203],[64,205,260,261,302,303],[64],[67,85,87,204],[67,85,87,134,138,140,204,206,207,208,209,234,258,260],[87,258,307],[63,303],[67]],"referencedMap":[[244,1],[247,2],[246,3],[245,4],[243,5],[239,6],[242,7],[241,8],[240,9],[238,5],[253,10],[252,11],[251,12],[250,13],[249,14],[248,15],[292,16],[301,17],[295,18],[279,19],[269,20],[271,21],[268,22],[277,23],[273,24],[274,25],[275,25],[272,18],[278,26],[285,27],[287,28],[286,18],[289,29],[288,30],[302,31],[60,32],[62,33],[266,34],[61,35],[267,36],[263,37],[63,38],[57,39],[59,40],[280,41],[281,18],[282,42],[283,18],[284,43],[305,44],[307,45],[311,46],[306,47],[88,48],[90,49],[91,50],[92,51],[93,52],[94,53],[95,54],[96,55],[97,56],[98,57],[99,58],[100,59],[101,60],[102,61],[103,62],[104,63],[105,64],[131,65],[106,66],[107,67],[108,68],[109,69],[110,70],[111,71],[112,72],[113,73],[114,74],[115,75],[116,76],[117,77],[118,78],[119,79],[120,80],[121,81],[122,82],[123,83],[124,84],[125,85],[126,86],[127,87],[128,88],[129,89],[71,90],[312,91],[75,92],[76,93],[84,94],[77,93],[78,93],[257,95],[256,96],[255,97],[254,98],[237,99],[79,100],[186,101],[184,102],[200,101],[192,101],[193,101],[190,103],[189,104],[187,104],[188,104],[185,105],[191,101],[183,106],[195,107],[201,108],[198,109],[196,110],[197,111],[203,112],[151,104],[202,113],[181,114],[182,115],[152,116],[180,117],[137,44],[80,118],[74,93],[81,118],[259,70],[82,93],[227,119],[212,120],[228,119],[229,121],[230,121],[218,120],[219,120],[220,122],[221,123],[222,124],[223,124],[215,125],[224,120],[210,120],[225,124],[213,121],[214,126],[211,127],[231,128],[233,129],[216,130],[232,131],[226,132],[83,118],[175,133],[168,134],[170,135],[171,136],[162,137],[156,138],[173,139],[160,137],[161,137],[158,138],[165,138],[166,138],[177,140],[67,141],[136,142],[142,143],[150,144],[141,101],[146,101],[145,101],[147,145],[144,146],[148,101],[149,101],[72,101],[85,147],[133,148],[303,149],[64,34],[209,44],[140,150],[258,151],[234,152],[87,153],[134,154],[138,155],[260,156],[204,157],[304,158],[65,159],[205,160],[261,161],[308,162]],"exportedModulesMap":[[244,1],[247,2],[246,3],[245,4],[243,5],[239,6],[242,7],[241,8],[240,9],[238,5],[253,10],[252,11],[251,12],[250,13],[249,14],[248,15],[292,16],[301,17],[295,18],[279,19],[269,20],[271,21],[268,22],[277,23],[273,24],[274,25],[275,25],[272,18],[278,26],[285,27],[287,28],[286,18],[289,29],[288,30],[302,31],[60,32],[62,33],[266,34],[61,35],[267,36],[263,37],[63,38],[57,39],[59,40],[280,41],[281,18],[282,42],[283,18],[284,43],[305,44],[307,45],[311,46],[306,47],[88,48],[90,49],[91,50],[92,51],[93,52],[94,53],[95,54],[96,55],[97,56],[98,57],[99,58],[100,59],[101,60],[102,61],[103,62],[104,63],[105,64],[131,65],[106,66],[107,67],[108,68],[109,69],[110,70],[111,71],[112,72],[113,73],[114,74],[115,75],[116,76],[117,77],[118,78],[119,79],[120,80],[121,81],[122,82],[123,83],[124,84],[125,85],[126,86],[127,87],[128,88],[129,89],[71,90],[312,91],[75,92],[76,93],[84,94],[77,93],[78,93],[257,95],[256,96],[255,97],[254,98],[237,99],[79,100],[186,101],[184,102],[200,101],[192,101],[193,101],[190,103],[189,104],[187,104],[188,104],[185,105],[191,101],[183,106],[195,107],[201,108],[198,109],[196,110],[197,111],[203,112],[151,104],[202,113],[181,114],[182,115],[152,116],[180,117],[137,44],[80,118],[74,93],[81,118],[259,70],[82,93],[227,119],[212,120],[228,119],[229,121],[230,121],[218,120],[219,120],[220,122],[221,123],[222,124],[223,124],[215,125],[224,120],[210,120],[225,124],[213,121],[214,126],[211,127],[231,128],[233,129],[216,130],[232,131],[226,132],[83,118],[175,133],[168,134],[170,135],[171,136],[162,137],[156,138],[173,139],[160,137],[161,137],[158,138],[165,138],[166,138],[177,140],[67,141],[136,142],[142,143],[150,144],[141,101],[146,101],[145,101],[147,145],[144,146],[148,101],[149,101],[72,101],[85,147],[133,148],[303,149],[64,34],[209,44],[140,150],[258,151],[234,152],[87,153],[134,154],[138,155],[260,156],[204,157],[304,163],[205,164]],"semanticDiagnosticsPerFile":[244,247,246,245,243,239,242,241,240,238,253,252,251,250,249,248,291,292,293,301,299,294,296,297,300,295,298,279,269,271,268,270,277,273,274,275,272,278,276,285,287,286,289,288,302,55,60,62,262,266,56,61,267,263,63,57,59,264,58,265,280,281,282,283,284,290,305,135,307,311,306,310,88,90,91,92,93,94,95,96,97,98,99,100,101,102,89,130,103,104,105,131,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,309,70,68,71,312,313,176,75,76,179,84,178,77,69,78,257,256,255,254,237,79,186,184,200,192,193,190,189,187,188,185,191,183,195,201,199,194,198,196,197,203,151,202,181,182,152,180,236,137,73,132,80,74,81,259,82,227,212,228,229,230,217,218,219,220,221,222,223,215,224,210,225,213,214,211,231,233,216,232,226,83,139,175,168,153,170,169,171,154,162,157,156,155,164,173,160,163,167,161,158,159,165,166,174,172,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,52,53,1,10,54,177,67,235,136,142,150,141,146,145,147,143,144,148,149,72,85,208,133,303,64,209,140,258,234,87,207,134,206,138,260,86,204,66,304,65,205,261,308],"latestChangedDtsFile":"./utils/template.d.ts"},"version":"4.9.4"}
@@ -1,4 +0,0 @@
1
- export declare function downloadTemplate({ templateUrl, into }: {
2
- templateUrl: string;
3
- into: string;
4
- }): Promise<void>;
@@ -1,13 +0,0 @@
1
- import download from 'download';
2
- import { getLatestGitHubRelease, parseGitHubRepositoryURL } from '@shopify/cli-kit/node/github';
3
- import { stripUpPath } from '@shopify/cli-kit/node/fs';
4
- export async function downloadTemplate({ templateUrl, into }) {
5
- const { name, user, subDirectory } = parseGitHubRepositoryURL(templateUrl).valueOrAbort();
6
- const latestRelease = await getLatestGitHubRelease(user, name);
7
- await download(latestRelease.tarball_url, into, {
8
- extract: true,
9
- filter: ({ path }) => path.includes(subDirectory),
10
- map: (value) => ({ ...value, path: stripUpPath(value.path, 3) }),
11
- });
12
- }
13
- //# sourceMappingURL=template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/utils/template.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAC,sBAAsB,EAAE,wBAAwB,EAAC,MAAM,8BAA8B,CAAA;AAC7F,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAA;AAEpD,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EAAC,WAAW,EAAE,IAAI,EAAsC;IAC7F,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAC,GAAG,wBAAwB,CAAC,WAAW,CAAC,CAAC,YAAY,EAAE,CAAA;IACvF,MAAM,aAAa,GAAG,MAAM,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAE9D,MAAM,QAAQ,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE;QAC9C,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC/C,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAC,GAAG,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,EAAC,CAAC;KAC/D,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import download from 'download'\nimport {getLatestGitHubRelease, parseGitHubRepositoryURL} from '@shopify/cli-kit/node/github'\nimport {stripUpPath} from '@shopify/cli-kit/node/fs'\n\nexport async function downloadTemplate({templateUrl, into}: {templateUrl: string; into: string}) {\n const {name, user, subDirectory} = parseGitHubRepositoryURL(templateUrl).valueOrAbort()\n const latestRelease = await getLatestGitHubRelease(user, name)\n\n await download(latestRelease.tarball_url, into, {\n extract: true,\n filter: ({path}) => path.includes(subDirectory),\n map: (value) => ({...value, path: stripUpPath(value.path, 3)}),\n })\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":"3.39.0","commands":{"init":{"id":"init","strict":true,"pluginName":"@shopify/create-hydrogen","pluginAlias":"@shopify/create-hydrogen","pluginType":"core","aliases":["create-hydrogen"],"flags":{"preset":{"name":"preset","type":"option","description":"The preset to apply to the current command.","hidden":true,"multiple":false},"verbose":{"name":"verbose","type":"boolean","description":"Increase the verbosity of the logs.","hidden":false,"allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"The name of the Hydrogen app.","hidden":false,"multiple":false},"template":{"name":"template","type":"option","char":"t","description":"The template to use. Can either be a Shopify template name (hello-world or demo-store) or a custom URL to any template.","hidden":false,"multiple":false},"ts":{"name":"ts","type":"boolean","description":"Set the language of the template to TypeScript instead of JavaScript.","hidden":false,"allowNo":false},"path":{"name":"path","type":"option","char":"p","description":"The path to the directory where the Hydrogen app will be created.","hidden":false,"multiple":false},"package-manager":{"name":"package-manager","type":"option","char":"d","hidden":false,"multiple":false,"options":["npm","yarn","pnpm"]},"shopify-cli-version":{"name":"shopify-cli-version","type":"option","char":"s","description":"The version of the Shopify CLI to use.","hidden":false,"multiple":false},"hydrogen-version":{"name":"hydrogen-version","type":"option","char":"h","description":"The version of Hydrogen to use.","hidden":false,"multiple":false},"local":{"name":"local","type":"boolean","char":"l","hidden":true,"allowNo":false}},"args":[]}}}