create-webiny-project 6.3.0 → 6.4.0-beta.0
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.
- package/_templates/base/template.package.json +1 -1
- package/bin.js +74 -83
- package/bin.js.map +1 -1
- package/features/CreateWebinyProject/projects/aws/SetupAwsWebinyProject.js +28 -37
- package/features/CreateWebinyProject/projects/aws/SetupAwsWebinyProject.js.map +1 -1
- package/features/CreateWebinyProject/projects/aws/availableAwsRegions.js +75 -58
- package/features/CreateWebinyProject/projects/aws/availableAwsRegions.js.map +1 -1
- package/features/CreateWebinyProject/projects/aws/runInteractivePrompt.js +46 -39
- package/features/CreateWebinyProject/projects/aws/runInteractivePrompt.js.map +1 -1
- package/features/CreateWebinyProject/projects/aws/types.js +0 -3
- package/features/CreateWebinyProject/projects/base/SetupBaseWebinyProject.js +27 -24
- package/features/CreateWebinyProject/projects/base/SetupBaseWebinyProject.js.map +1 -1
- package/features/CreateWebinyProject.js +160 -187
- package/features/CreateWebinyProject.js.map +1 -1
- package/package.json +9 -9
- package/services/Analytics.js +12 -11
- package/services/Analytics.js.map +1 -1
- package/services/EnsureNoGlobalWebinyCli.js +24 -12
- package/services/EnsureNoGlobalWebinyCli.js.map +1 -1
- package/services/EnsureNoTargetFolder.js +15 -19
- package/services/EnsureNoTargetFolder.js.map +1 -1
- package/services/EnsureNoYarnLockPackageJson.js +19 -13
- package/services/EnsureNoYarnLockPackageJson.js.map +1 -1
- package/services/EnsureSystemWebinyConfig.js +13 -16
- package/services/EnsureSystemWebinyConfig.js.map +1 -1
- package/services/EnsureValidProjectName.js +17 -16
- package/services/EnsureValidProjectName.js.map +1 -1
- package/services/GetCwpVersion.js +10 -13
- package/services/GetCwpVersion.js.map +1 -1
- package/services/GetProjectRootPath.js +5 -4
- package/services/GetProjectRootPath.js.map +1 -1
- package/services/GetTemplatesFolderPath.js +9 -11
- package/services/GetTemplatesFolderPath.js.map +1 -1
- package/services/InitGit.js +16 -11
- package/services/InitGit.js.map +1 -1
- package/services/IsGitAvailable.js +11 -8
- package/services/IsGitAvailable.js.map +1 -1
- package/services/PrintErrorInfo.js +13 -11
- package/services/PrintErrorInfo.js.map +1 -1
- package/services/PrintSystemInfo.js +40 -30
- package/services/PrintSystemInfo.js.map +1 -1
- package/services/SetWebinyPackageVersions.js +14 -21
- package/services/SetWebinyPackageVersions.js.map +1 -1
- package/services/SetupYarn.js +35 -53
- package/services/SetupYarn.js.map +1 -1
- package/services/index.js +0 -2
- package/types.js +0 -3
- package/features/CreateWebinyProject/projects/aws/types.js.map +0 -1
- package/services/index.js.map +0 -1
- package/types.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"services/PrintSystemInfo.js","sources":["../../src/services/PrintSystemInfo.ts"],"sourcesContent":["import { SystemRequirements } from \"@webiny/system-requirements\";\nimport chalk from \"chalk\";\nimport { GetCwpVersion } from \"./GetCwpVersion.js\";\nimport { CliParams } from \"../types.js\";\n\nconst { bold, gray } = chalk;\n\nconst NOT_APPLICABLE = gray(\"N/A\");\nconst HL = bold(gray(\"—\")).repeat(30);\n\nexport class PrintSystemInfo {\n execute(cliArgs: CliParams) {\n const node = SystemRequirements.getNodeVersion();\n const os = SystemRequirements.getOsVersion();\n\n let npm = NOT_APPLICABLE;\n try {\n npm = SystemRequirements.getNpmVersion();\n } catch {}\n\n let npx = NOT_APPLICABLE;\n try {\n npx = SystemRequirements.getNpxVersion();\n } catch {}\n\n let yarn = NOT_APPLICABLE;\n try {\n yarn = SystemRequirements.getYarnVersion();\n } catch {}\n\n let cwpVersion = NOT_APPLICABLE;\n try {\n const getCwpVersion = new GetCwpVersion();\n cwpVersion = getCwpVersion.execute();\n } catch {}\n\n const { templateOptions } = cliArgs;\n\n console.log(\n [\n `${bold(\"System Information\")}`,\n HL,\n `create-webiny-project: ${cwpVersion}`,\n `Operating System: ${os}`,\n `Node: ${node}`,\n `Yarn: ${yarn}`,\n `Npm: ${npm}`,\n `Npx: ${npx}`,\n `Template Options: ${templateOptions}`,\n \"\",\n \"Please open an issue including the error output at https://github.com/webiny/webiny-js/issues/new.\",\n \"You can also get in touch with us on our Slack Community: https://www.webiny.com/slack\",\n \"\"\n ].join(\"\\n\")\n );\n }\n}\n"],"names":["bold","gray","chalk","NOT_APPLICABLE","HL","PrintSystemInfo","cliArgs","node","SystemRequirements","os","npm","npx","yarn","cwpVersion","getCwpVersion","GetCwpVersion","templateOptions","console"],"mappings":";;;AAKA,MAAM,EAAEA,MAAAA,IAAI,EAAEC,MAAAA,IAAI,EAAE,GAAGC;AAEvB,MAAMC,iBAAiBF,KAAK;AAC5B,MAAMG,KAAKJ,KAAKC,KAAK,MAAM,MAAM,CAAC;AAE3B,MAAMI;IACT,QAAQC,OAAkB,EAAE;QACxB,MAAMC,OAAOC,mBAAmB,cAAc;QAC9C,MAAMC,KAAKD,mBAAmB,YAAY;QAE1C,IAAIE,MAAMP;QACV,IAAI;YACAO,MAAMF,mBAAmB,aAAa;QAC1C,EAAE,OAAM,CAAC;QAET,IAAIG,MAAMR;QACV,IAAI;YACAQ,MAAMH,mBAAmB,aAAa;QAC1C,EAAE,OAAM,CAAC;QAET,IAAII,OAAOT;QACX,IAAI;YACAS,OAAOJ,mBAAmB,cAAc;QAC5C,EAAE,OAAM,CAAC;QAET,IAAIK,aAAaV;QACjB,IAAI;YACA,MAAMW,gBAAgB,IAAIC;YAC1BF,aAAaC,cAAc,OAAO;QACtC,EAAE,OAAM,CAAC;QAET,MAAM,EAAEE,eAAe,EAAE,GAAGV;QAE5BW,QAAQ,GAAG,CACP;YACI,GAAGjB,KAAK,uBAAuB;YAC/BI;YACA,CAAC,uBAAuB,EAAES,YAAY;YACtC,CAAC,kBAAkB,EAAEJ,IAAI;YACzB,CAAC,MAAM,EAAEF,MAAM;YACf,CAAC,MAAM,EAAEK,MAAM;YACf,CAAC,KAAK,EAAEF,KAAK;YACb,CAAC,KAAK,EAAEC,KAAK;YACb,CAAC,kBAAkB,EAAEK,iBAAiB;YACtC;YACA;YACA;YACA;SACH,CAAC,IAAI,CAAC;IAEf;AACJ"}
|
|
@@ -3,29 +3,22 @@ import { writeJsonFileSync } from "write-json-file";
|
|
|
3
3
|
import { GetCwpVersion } from "./GetCwpVersion.js";
|
|
4
4
|
import { GetProjectRootPath } from "./GetProjectRootPath.js";
|
|
5
5
|
import path from "path";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
projectPackageJson
|
|
17
|
-
}
|
|
6
|
+
class SetWebinyPackageVersions {
|
|
7
|
+
async execute(cliArgs) {
|
|
8
|
+
const getProjectRootPath = new GetProjectRootPath();
|
|
9
|
+
const projectRootPath = getProjectRootPath.execute(cliArgs);
|
|
10
|
+
const getCwpVersion = new GetCwpVersion();
|
|
11
|
+
const cwpVersion = await getCwpVersion.execute();
|
|
12
|
+
const projectPackageJsonPath = path.join(projectRootPath, "package.json");
|
|
13
|
+
const projectPackageJson = loadJsonFileSync(projectPackageJsonPath);
|
|
14
|
+
for(const dependency in projectPackageJson.dependencies)if (this.isWebinyDependency(dependency)) projectPackageJson.dependencies[dependency] = cwpVersion;
|
|
15
|
+
for(const dependency in projectPackageJson.devDependencies)if (this.isWebinyDependency(dependency)) projectPackageJson.devDependencies[dependency] = cwpVersion;
|
|
16
|
+
writeJsonFileSync(projectPackageJsonPath, projectPackageJson);
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
projectPackageJson.devDependencies[dependency] = cwpVersion;
|
|
22
|
-
}
|
|
18
|
+
isWebinyDependency(depName) {
|
|
19
|
+
return "webiny" === depName || depName.startsWith("@webiny/");
|
|
23
20
|
}
|
|
24
|
-
writeJsonFileSync(projectPackageJsonPath, projectPackageJson);
|
|
25
|
-
}
|
|
26
|
-
isWebinyDependency(depName) {
|
|
27
|
-
return depName === "webiny" || depName.startsWith("@webiny/");
|
|
28
|
-
}
|
|
29
21
|
}
|
|
22
|
+
export { SetWebinyPackageVersions };
|
|
30
23
|
|
|
31
24
|
//# sourceMappingURL=SetWebinyPackageVersions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"services/SetWebinyPackageVersions.js","sources":["../../src/services/SetWebinyPackageVersions.ts"],"sourcesContent":["import { loadJsonFileSync } from \"load-json-file\";\nimport { writeJsonFileSync } from \"write-json-file\";\nimport { GetCwpVersion } from \"./GetCwpVersion.js\";\nimport { GetProjectRootPath } from \"./GetProjectRootPath.js\";\nimport { CliParams } from \"../types.js\";\nimport path from \"path\";\n\nexport class SetWebinyPackageVersions {\n async execute(cliArgs: CliParams) {\n const getProjectRootPath = new GetProjectRootPath();\n const projectRootPath = getProjectRootPath.execute(cliArgs);\n\n const getCwpVersion = new GetCwpVersion();\n const cwpVersion = await getCwpVersion.execute();\n\n const projectPackageJsonPath = path.join(projectRootPath, \"package.json\");\n const projectPackageJson = loadJsonFileSync<Record<string, any>>(projectPackageJsonPath);\n\n for (const dependency in projectPackageJson.dependencies) {\n if (this.isWebinyDependency(dependency)) {\n projectPackageJson.dependencies[dependency] = cwpVersion;\n }\n }\n\n for (const dependency in projectPackageJson.devDependencies) {\n if (this.isWebinyDependency(dependency)) {\n projectPackageJson.devDependencies[dependency] = cwpVersion;\n }\n }\n\n writeJsonFileSync(projectPackageJsonPath, projectPackageJson);\n }\n\n private isWebinyDependency(depName: string): boolean {\n return depName === \"webiny\" || depName.startsWith(\"@webiny/\");\n }\n}\n"],"names":["SetWebinyPackageVersions","cliArgs","getProjectRootPath","GetProjectRootPath","projectRootPath","getCwpVersion","GetCwpVersion","cwpVersion","projectPackageJsonPath","path","projectPackageJson","loadJsonFileSync","dependency","writeJsonFileSync","depName"],"mappings":";;;;;AAOO,MAAMA;IACT,MAAM,QAAQC,OAAkB,EAAE;QAC9B,MAAMC,qBAAqB,IAAIC;QAC/B,MAAMC,kBAAkBF,mBAAmB,OAAO,CAACD;QAEnD,MAAMI,gBAAgB,IAAIC;QAC1B,MAAMC,aAAa,MAAMF,cAAc,OAAO;QAE9C,MAAMG,yBAAyBC,KAAK,IAAI,CAACL,iBAAiB;QAC1D,MAAMM,qBAAqBC,iBAAsCH;QAEjE,IAAK,MAAMI,cAAcF,mBAAmB,YAAY,CACpD,IAAI,IAAI,CAAC,kBAAkB,CAACE,aACxBF,mBAAmB,YAAY,CAACE,WAAW,GAAGL;QAItD,IAAK,MAAMK,cAAcF,mBAAmB,eAAe,CACvD,IAAI,IAAI,CAAC,kBAAkB,CAACE,aACxBF,mBAAmB,eAAe,CAACE,WAAW,GAAGL;QAIzDM,kBAAkBL,wBAAwBE;IAC9C;IAEQ,mBAAmBI,OAAe,EAAW;QACjD,OAAOA,AAAY,aAAZA,WAAwBA,QAAQ,UAAU,CAAC;IACtD;AACJ"}
|
package/services/SetupYarn.js
CHANGED
|
@@ -1,60 +1,42 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import fs_extra from "fs-extra";
|
|
3
|
+
import js_yaml from "js-yaml";
|
|
4
4
|
import { GetProjectRootPath } from "./GetProjectRootPath.js";
|
|
5
5
|
import chalk from "chalk";
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
const { yellow: yellow } = chalk;
|
|
7
|
+
class SetupYarn {
|
|
8
|
+
async execute(cliArgs) {
|
|
9
|
+
const yarnVersion = "4.14.1";
|
|
10
|
+
const yarnFile = `yarn-${yarnVersion}.cjs`;
|
|
11
|
+
const yarnPath = ".yarn";
|
|
12
|
+
const yarnReleasesPath = path.join(yarnPath, "releases");
|
|
13
|
+
const yarnReleasesFilePath = path.join(yarnReleasesPath, yarnFile);
|
|
14
|
+
const getProjectRootPath = new GetProjectRootPath();
|
|
15
|
+
const projectRootPath = getProjectRootPath.execute(cliArgs);
|
|
16
|
+
const { assignToYarnrc } = cliArgs;
|
|
17
|
+
const yarnReleaseFullPath = path.join(projectRootPath, yarnReleasesPath);
|
|
18
|
+
fs_extra.ensureDirSync(yarnReleaseFullPath);
|
|
19
|
+
const source = path.join(import.meta.dirname, "SetupYarn", path.join("binaries", yarnFile));
|
|
20
|
+
if (!fs_extra.existsSync(source)) throw new Error(`No yarn binary source file: ${source}`);
|
|
21
|
+
const target = path.join(projectRootPath, yarnReleasesFilePath);
|
|
22
|
+
fs_extra.copyFileSync(source, target);
|
|
23
|
+
const yarnRcPath = path.join(projectRootPath, ".yarnrc.yml");
|
|
24
|
+
let rawYarnRc = `yarnPath: ${yarnReleasesFilePath}`;
|
|
25
|
+
if (fs_extra.existsSync(yarnRcPath)) rawYarnRc = fs_extra.readFileSync(yarnRcPath, "utf-8");
|
|
26
|
+
const parsedYarnRc = js_yaml.load(rawYarnRc);
|
|
27
|
+
parsedYarnRc.nodeLinker = "node-modules";
|
|
28
|
+
if (assignToYarnrc) {
|
|
29
|
+
let parsedAssignToYarnRc;
|
|
30
|
+
try {
|
|
31
|
+
parsedAssignToYarnRc = JSON.parse(assignToYarnrc);
|
|
32
|
+
} catch {
|
|
33
|
+
console.log(yellow("Warning: could not parse provided --assign-to-yarnrc JSON."));
|
|
34
|
+
}
|
|
35
|
+
if (parsedAssignToYarnRc) Object.assign(parsedYarnRc, parsedAssignToYarnRc);
|
|
36
|
+
}
|
|
37
|
+
fs_extra.writeFileSync(yarnRcPath, js_yaml.dump(parsedYarnRc));
|
|
29
38
|
}
|
|
30
|
-
const target = path.join(projectRootPath, yarnReleasesFilePath);
|
|
31
|
-
fs.copyFileSync(source, target);
|
|
32
|
-
|
|
33
|
-
// `.yarnrc.yml` file is created here.
|
|
34
|
-
const yarnRcPath = path.join(projectRootPath, ".yarnrc.yml");
|
|
35
|
-
let rawYarnRc = `yarnPath: ${yarnReleasesFilePath}`;
|
|
36
|
-
if (fs.existsSync(yarnRcPath)) {
|
|
37
|
-
rawYarnRc = fs.readFileSync(yarnRcPath, "utf-8");
|
|
38
|
-
}
|
|
39
|
-
const parsedYarnRc = yaml.load(rawYarnRc);
|
|
40
|
-
|
|
41
|
-
// Default settings are applied here. Currently, we only apply the `nodeLinker` param.
|
|
42
|
-
parsedYarnRc.nodeLinker = "node-modules";
|
|
43
|
-
|
|
44
|
-
// Enables adding additional params into the `.yarnrc.yml` file.
|
|
45
|
-
if (assignToYarnrc) {
|
|
46
|
-
let parsedAssignToYarnRc;
|
|
47
|
-
try {
|
|
48
|
-
parsedAssignToYarnRc = JSON.parse(assignToYarnrc);
|
|
49
|
-
} catch {
|
|
50
|
-
console.log(yellow("Warning: could not parse provided --assign-to-yarnrc JSON."));
|
|
51
|
-
}
|
|
52
|
-
if (parsedAssignToYarnRc) {
|
|
53
|
-
Object.assign(parsedYarnRc, parsedAssignToYarnRc);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
fs.writeFileSync(yarnRcPath, yaml.dump(parsedYarnRc));
|
|
57
|
-
}
|
|
58
39
|
}
|
|
40
|
+
export { SetupYarn };
|
|
59
41
|
|
|
60
42
|
//# sourceMappingURL=SetupYarn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"services/SetupYarn.js","sources":["../../src/services/SetupYarn.ts"],"sourcesContent":["import path from \"path\";\nimport fs from \"fs-extra\";\nimport yaml from \"js-yaml\";\nimport { GetProjectRootPath } from \"./GetProjectRootPath.js\";\nimport { CliParams } from \"../types.js\";\nimport chalk from \"chalk\";\n\nconst { yellow } = chalk;\n\nexport class SetupYarn {\n async execute(cliArgs: CliParams) {\n const yarnVersion = \"4.14.1\";\n const yarnFile = `yarn-${yarnVersion}.cjs`;\n const yarnPath = `.yarn`;\n const yarnReleasesPath = path.join(yarnPath, \"releases\");\n const yarnReleasesFilePath = path.join(yarnReleasesPath, yarnFile);\n\n const getProjectRootPath = new GetProjectRootPath();\n const projectRootPath = getProjectRootPath.execute(cliArgs);\n\n const { assignToYarnrc } = cliArgs;\n /**\n * We do not want to do the recursive directory creating as it might do something in parent directories which we do not want.\n */\n const yarnReleaseFullPath = path.join(projectRootPath, yarnReleasesPath);\n fs.ensureDirSync(yarnReleaseFullPath);\n\n const source = path.join(import.meta.dirname, \"SetupYarn\", path.join(\"binaries\", yarnFile));\n if (!fs.existsSync(source)) {\n throw new Error(`No yarn binary source file: ${source}`);\n }\n\n const target = path.join(projectRootPath, yarnReleasesFilePath);\n fs.copyFileSync(source, target);\n\n // `.yarnrc.yml` file is created here.\n const yarnRcPath = path.join(projectRootPath, \".yarnrc.yml\");\n\n let rawYarnRc = `yarnPath: ${yarnReleasesFilePath}`;\n if (fs.existsSync(yarnRcPath)) {\n rawYarnRc = fs.readFileSync(yarnRcPath, \"utf-8\");\n }\n\n const parsedYarnRc = yaml.load(rawYarnRc) as Record<string, any>;\n\n // Default settings are applied here. Currently, we only apply the `nodeLinker` param.\n parsedYarnRc.nodeLinker = \"node-modules\";\n\n // Enables adding additional params into the `.yarnrc.yml` file.\n if (assignToYarnrc) {\n let parsedAssignToYarnRc;\n try {\n parsedAssignToYarnRc = JSON.parse(assignToYarnrc);\n } catch {\n console.log(yellow(\"Warning: could not parse provided --assign-to-yarnrc JSON.\"));\n }\n\n if (parsedAssignToYarnRc) {\n Object.assign(parsedYarnRc, parsedAssignToYarnRc);\n }\n }\n\n fs.writeFileSync(yarnRcPath, yaml.dump(parsedYarnRc));\n }\n}\n"],"names":["yellow","chalk","SetupYarn","cliArgs","yarnVersion","yarnFile","yarnPath","yarnReleasesPath","path","yarnReleasesFilePath","getProjectRootPath","GetProjectRootPath","projectRootPath","assignToYarnrc","yarnReleaseFullPath","fs","source","Error","target","yarnRcPath","rawYarnRc","parsedYarnRc","yaml","parsedAssignToYarnRc","JSON","console","Object"],"mappings":";;;;;AAOA,MAAM,EAAEA,QAAAA,MAAM,EAAE,GAAGC;AAEZ,MAAMC;IACT,MAAM,QAAQC,OAAkB,EAAE;QAC9B,MAAMC,cAAc;QACpB,MAAMC,WAAW,CAAC,KAAK,EAAED,YAAY,IAAI,CAAC;QAC1C,MAAME,WAAW;QACjB,MAAMC,mBAAmBC,KAAK,IAAI,CAACF,UAAU;QAC7C,MAAMG,uBAAuBD,KAAK,IAAI,CAACD,kBAAkBF;QAEzD,MAAMK,qBAAqB,IAAIC;QAC/B,MAAMC,kBAAkBF,mBAAmB,OAAO,CAACP;QAEnD,MAAM,EAAEU,cAAc,EAAE,GAAGV;QAI3B,MAAMW,sBAAsBN,KAAK,IAAI,CAACI,iBAAiBL;QACvDQ,SAAAA,aAAgB,CAACD;QAEjB,MAAME,SAASR,KAAK,IAAI,CAAC,YAAY,OAAO,EAAE,aAAaA,KAAK,IAAI,CAAC,YAAYH;QACjF,IAAI,CAACU,SAAAA,UAAa,CAACC,SACf,MAAM,IAAIC,MAAM,CAAC,4BAA4B,EAAED,QAAQ;QAG3D,MAAME,SAASV,KAAK,IAAI,CAACI,iBAAiBH;QAC1CM,SAAAA,YAAe,CAACC,QAAQE;QAGxB,MAAMC,aAAaX,KAAK,IAAI,CAACI,iBAAiB;QAE9C,IAAIQ,YAAY,CAAC,UAAU,EAAEX,sBAAsB;QACnD,IAAIM,SAAAA,UAAa,CAACI,aACdC,YAAYL,SAAAA,YAAe,CAACI,YAAY;QAG5C,MAAME,eAAeC,QAAAA,IAAS,CAACF;QAG/BC,aAAa,UAAU,GAAG;QAG1B,IAAIR,gBAAgB;YAChB,IAAIU;YACJ,IAAI;gBACAA,uBAAuBC,KAAK,KAAK,CAACX;YACtC,EAAE,OAAM;gBACJY,QAAQ,GAAG,CAACzB,OAAO;YACvB;YAEA,IAAIuB,sBACAG,OAAO,MAAM,CAACL,cAAcE;QAEpC;QAEAR,SAAAA,aAAgB,CAACI,YAAYG,QAAAA,IAAS,CAACD;IAC3C;AACJ"}
|
package/services/index.js
CHANGED
package/types.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export type StorageOps = \"ddb\" | \"ddb-os\";\nexport type AiAgent = string | \"other\";\n\nexport interface AwsProjectParams {\n region: string;\n storageOps: StorageOps;\n aiAgent: AiAgent;\n}\n"],"mappings":"","ignoreList":[]}
|
package/services/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Analytics.js\";\nexport * from \"./EnsureNoGlobalWebinyCli.js\";\nexport * from \"./EnsureNoTargetFolder.js\";\nexport * from \"./EnsureNoYarnLockPackageJson.js\";\nexport * from \"./EnsureSystemWebinyConfig.js\";\nexport * from \"./EnsureValidProjectName.js\";\nexport * from \"./GetCwpVersion.js\";\nexport * from \"./GetProjectRootPath.js\";\nexport * from \"./InitGit.js\";\nexport * from \"./IsGitAvailable.js\";\nexport * from \"./PrintSystemInfo.js\";\nexport * from \"./PrintErrorInfo.js\";\nexport * from \"./SetWebinyPackageVersions.js\";\nexport * from \"./SetupYarn.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
package/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface CliParams {\n /** Project name (positional argument) */\n projectName: string;\n\n /** Force project creation within an existing folder */\n force: boolean;\n\n /** Name of template to use (defaults to \"aws\") */\n template: string;\n\n /** JSON string with template-specific options */\n templateOptions: string | null;\n\n /** JSON string with additional options for yarnrc.yml */\n assignToYarnrc: string | null;\n\n /** NPM tag to use for @webiny packages (defaults to \"latest\") */\n tag: string;\n\n /** Enable interactive mode */\n interactive: boolean;\n\n /** Log file path (defaults to \"create-webiny-project-logs.txt\") */\n log: string;\n\n /** Enable debug logging */\n debug: boolean;\n\n /** If an error occurs, deletes all generated files (defaults to true) */\n cleanup: boolean;\n}\n"],"mappings":"","ignoreList":[]}
|