create-webiny-project 6.0.0-rc.0 → 6.0.0-rc.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.
@@ -2,12 +2,12 @@
2
2
  "type": "module",
3
3
  "devDependencies": {
4
4
  "@eslint/js": "^10.0.1",
5
- "@types/node": "^24.10.13",
5
+ "@types/node": "^24.10.14",
6
6
  "@types/react": "18.2.79",
7
7
  "@types/react-dom": "18.2.25",
8
8
  "@webiny/cli": "latest",
9
9
  "@webiny/cognito": "latest",
10
- "eslint": "^10.0.0",
10
+ "eslint": "^10.0.2",
11
11
  "eslint-plugin-react": "^7.37.5",
12
12
  "globals": "^16.3.0",
13
13
  "prettier": "^3.6.2",
@@ -29,7 +29,7 @@ export class SetupAwsWebinyProject {
29
29
  } = cliArgs;
30
30
  if (templateOptionsString) {
31
31
  try {
32
- Object.assign(JSON.parse(templateOptionsString));
32
+ Object.assign(awsArgs, JSON.parse(templateOptionsString));
33
33
  } catch {
34
34
  // Do nothing.
35
35
  }
@@ -1 +1 @@
1
- {"version":3,"names":["fs","path","runInteractivePrompt","GetProjectRootPath","GetTemplatesFolderPath","SetupAwsWebinyProject","execute","cliArgs","awsArgs","getAwsArgs","getTemplatesFolderPath","templatesFolderPath","storageTemplatePath","join","storageOps","getProjectRoot","projectRootFolderPath","copySync","webinyConfigTsxEnvFilePath","content","readFileSync","toString","replace","region","writeFileSync","templateOptions","templateOptionsString","Object","assign","JSON","parse","interactive"],"sources":["SetupAwsWebinyProject.ts"],"sourcesContent":["import fs from \"fs-extra\";\nimport path from \"path\";\nimport { runInteractivePrompt } from \"./runInteractivePrompt.js\";\nimport { CliParams } from \"../../../../types.js\";\nimport { GetProjectRootPath } from \"../../../../services/index.js\";\nimport { AwsProjectParams } from \"./types.js\";\nimport { GetTemplatesFolderPath } from \"../../../../services/GetTemplatesFolderPath.js\";\n\nexport class SetupAwsWebinyProject {\n async execute(cliArgs: CliParams) {\n const awsArgs = await this.getAwsArgs(cliArgs);\n\n const getTemplatesFolderPath = new GetTemplatesFolderPath();\n const templatesFolderPath = getTemplatesFolderPath.execute();\n\n const storageTemplatePath = path.join(templatesFolderPath, \"aws\", awsArgs.storageOps);\n\n const getProjectRoot = new GetProjectRootPath();\n const projectRootFolderPath = getProjectRoot.execute(cliArgs);\n\n fs.copySync(storageTemplatePath, projectRootFolderPath);\n\n // Update .env file.\n const webinyConfigTsxEnvFilePath = path.join(projectRootFolderPath, \"webiny.config.tsx\");\n let content = fs.readFileSync(webinyConfigTsxEnvFilePath).toString();\n content = content.replace(\"{REGION}\", awsArgs.region);\n fs.writeFileSync(webinyConfigTsxEnvFilePath, content);\n }\n\n private async getAwsArgs(cliArgs: CliParams) {\n const awsArgs: AwsProjectParams = { region: \"us-east-1\", storageOps: \"ddb\" };\n\n const { templateOptions: templateOptionsString } = cliArgs;\n if (templateOptionsString) {\n try {\n Object.assign(JSON.parse(templateOptionsString));\n } catch {\n // Do nothing.\n }\n }\n\n if (cliArgs.interactive !== false) {\n Object.assign(awsArgs, await runInteractivePrompt());\n }\n\n return awsArgs;\n }\n}\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,UAAU;AACzB,OAAOC,IAAI,MAAM,MAAM;AACvB,SAASC,oBAAoB;AAE7B,SAASC,kBAAkB;AAE3B,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,qBAAqB,CAAC;EAC/B,MAAMC,OAAOA,CAACC,OAAkB,EAAE;IAC9B,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACC,UAAU,CAACF,OAAO,CAAC;IAE9C,MAAMG,sBAAsB,GAAG,IAAIN,sBAAsB,CAAC,CAAC;IAC3D,MAAMO,mBAAmB,GAAGD,sBAAsB,CAACJ,OAAO,CAAC,CAAC;IAE5D,MAAMM,mBAAmB,GAAGX,IAAI,CAACY,IAAI,CAACF,mBAAmB,EAAE,KAAK,EAAEH,OAAO,CAACM,UAAU,CAAC;IAErF,MAAMC,cAAc,GAAG,IAAIZ,kBAAkB,CAAC,CAAC;IAC/C,MAAMa,qBAAqB,GAAGD,cAAc,CAACT,OAAO,CAACC,OAAO,CAAC;IAE7DP,EAAE,CAACiB,QAAQ,CAACL,mBAAmB,EAAEI,qBAAqB,CAAC;;IAEvD;IACA,MAAME,0BAA0B,GAAGjB,IAAI,CAACY,IAAI,CAACG,qBAAqB,EAAE,mBAAmB,CAAC;IACxF,IAAIG,OAAO,GAAGnB,EAAE,CAACoB,YAAY,CAACF,0BAA0B,CAAC,CAACG,QAAQ,CAAC,CAAC;IACpEF,OAAO,GAAGA,OAAO,CAACG,OAAO,CAAC,UAAU,EAAEd,OAAO,CAACe,MAAM,CAAC;IACrDvB,EAAE,CAACwB,aAAa,CAACN,0BAA0B,EAAEC,OAAO,CAAC;EACzD;EAEA,MAAcV,UAAUA,CAACF,OAAkB,EAAE;IACzC,MAAMC,OAAyB,GAAG;MAAEe,MAAM,EAAE,WAAW;MAAET,UAAU,EAAE;IAAM,CAAC;IAE5E,MAAM;MAAEW,eAAe,EAAEC;IAAsB,CAAC,GAAGnB,OAAO;IAC1D,IAAImB,qBAAqB,EAAE;MACvB,IAAI;QACAC,MAAM,CAACC,MAAM,CAACC,IAAI,CAACC,KAAK,CAACJ,qBAAqB,CAAC,CAAC;MACpD,CAAC,CAAC,MAAM;QACJ;MAAA;IAER;IAEA,IAAInB,OAAO,CAACwB,WAAW,KAAK,KAAK,EAAE;MAC/BJ,MAAM,CAACC,MAAM,CAACpB,OAAO,EAAE,MAAMN,oBAAoB,CAAC,CAAC,CAAC;IACxD;IAEA,OAAOM,OAAO;EAClB;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["fs","path","runInteractivePrompt","GetProjectRootPath","GetTemplatesFolderPath","SetupAwsWebinyProject","execute","cliArgs","awsArgs","getAwsArgs","getTemplatesFolderPath","templatesFolderPath","storageTemplatePath","join","storageOps","getProjectRoot","projectRootFolderPath","copySync","webinyConfigTsxEnvFilePath","content","readFileSync","toString","replace","region","writeFileSync","templateOptions","templateOptionsString","Object","assign","JSON","parse","interactive"],"sources":["SetupAwsWebinyProject.ts"],"sourcesContent":["import fs from \"fs-extra\";\nimport path from \"path\";\nimport { runInteractivePrompt } from \"./runInteractivePrompt.js\";\nimport { CliParams } from \"../../../../types.js\";\nimport { GetProjectRootPath } from \"../../../../services/index.js\";\nimport { AwsProjectParams } from \"./types.js\";\nimport { GetTemplatesFolderPath } from \"../../../../services/GetTemplatesFolderPath.js\";\n\nexport class SetupAwsWebinyProject {\n async execute(cliArgs: CliParams) {\n const awsArgs = await this.getAwsArgs(cliArgs);\n\n const getTemplatesFolderPath = new GetTemplatesFolderPath();\n const templatesFolderPath = getTemplatesFolderPath.execute();\n\n const storageTemplatePath = path.join(templatesFolderPath, \"aws\", awsArgs.storageOps);\n\n const getProjectRoot = new GetProjectRootPath();\n const projectRootFolderPath = getProjectRoot.execute(cliArgs);\n\n fs.copySync(storageTemplatePath, projectRootFolderPath);\n\n // Update .env file.\n const webinyConfigTsxEnvFilePath = path.join(projectRootFolderPath, \"webiny.config.tsx\");\n let content = fs.readFileSync(webinyConfigTsxEnvFilePath).toString();\n content = content.replace(\"{REGION}\", awsArgs.region);\n fs.writeFileSync(webinyConfigTsxEnvFilePath, content);\n }\n\n private async getAwsArgs(cliArgs: CliParams) {\n const awsArgs: AwsProjectParams = { region: \"us-east-1\", storageOps: \"ddb\" };\n\n const { templateOptions: templateOptionsString } = cliArgs;\n if (templateOptionsString) {\n try {\n Object.assign(awsArgs, JSON.parse(templateOptionsString));\n } catch {\n // Do nothing.\n }\n }\n\n if (cliArgs.interactive !== false) {\n Object.assign(awsArgs, await runInteractivePrompt());\n }\n\n return awsArgs;\n }\n}\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,UAAU;AACzB,OAAOC,IAAI,MAAM,MAAM;AACvB,SAASC,oBAAoB;AAE7B,SAASC,kBAAkB;AAE3B,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,qBAAqB,CAAC;EAC/B,MAAMC,OAAOA,C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AAE;MAC/BJ,MAAM,CAACC,MAAM,CAACpB,OAAO,EAAE,MAAMN,oBAAoB,CAAC,CAAC,CAAC;IACxD;IAEA,OAAOM,OAAO;EAClB;AACJ","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-webiny-project",
3
- "version": "6.0.0-rc.0",
3
+ "version": "6.0.0-rc.2",
4
4
  "type": "module",
5
5
  "description": "Webiny project bootstrap tool.",
6
6
  "main": "index.js",
@@ -11,9 +11,9 @@
11
11
  "author": "Webiny Ltd.",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "@webiny/build-tools": "6.0.0-rc.0",
15
- "@webiny/system-requirements": "6.0.0-rc.0",
16
- "@webiny/telemetry": "6.0.0-rc.0",
14
+ "@webiny/build-tools": "6.0.0-rc.2",
15
+ "@webiny/system-requirements": "6.0.0-rc.2",
16
+ "@webiny/telemetry": "6.0.0-rc.2",
17
17
  "chalk": "4.1.2",
18
18
  "execa": "5.1.1",
19
19
  "find-up": "5.0.0",
@@ -40,7 +40,7 @@
40
40
  "access": "public",
41
41
  "directory": "dist"
42
42
  },
43
- "gitHead": "0f2aa699f4642e550ab62c96fcd050e8d02345c9",
43
+ "gitHead": "5facada4cbb8617cc60e3c98be0f1839f44be38e",
44
44
  "adio": {
45
45
  "ignoreDirs": [
46
46
  "_templates"