create-webiny-project 6.0.0 → 6.1.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.
@@ -1,27 +1,20 @@
1
1
  {
2
2
  "type": "module",
3
- "devDependencies": {
4
- "@eslint/js": "^10.0.1",
5
- "@types/node": "^24.12.0",
6
- "@types/react": "18.2.79",
7
- "@types/react-dom": "18.2.25",
3
+ "dependencies": {
8
4
  "@webiny/cli": "latest",
9
5
  "@webiny/cognito": "latest",
10
- "eslint": "^10.0.3",
11
- "eslint-plugin-react": "^7.37.5",
12
- "globals": "^16.3.0",
13
- "prettier": "^3.6.2",
14
- "typescript": "5.9.3",
15
- "typescript-eslint": "^8.56.0",
6
+ "@webiny/mcp": "latest",
7
+ "react": "18.2.0",
8
+ "react-dom": "18.2.0",
16
9
  "webiny": "latest"
17
10
  },
18
- "scripts": {
19
- "lint": "eslint \"**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
20
- "link:fix": "yarn eslint --fix",
21
- "format": "prettier \"**/**/*.{js,jsx,ts,tsx,json}\" --config .prettierrc.js",
22
- "format:check": "yarn format --check",
23
- "format:fix": "yarn format --write"
11
+ "devDependencies": {
12
+ "@types/node": "^24.12.0",
13
+ "@types/react": "18.2.79",
14
+ "@types/react-dom": "18.2.25",
15
+ "typescript": "5.9.3"
24
16
  },
17
+ "scripts": {},
25
18
  "engines": {
26
19
  "node": "^24.0.0"
27
20
  }
@@ -14,14 +14,14 @@ export const runInteractivePrompt = async () => {
14
14
  console.log("In order to create your new Webiny project, please answer the following questions.");
15
15
  console.log();
16
16
  return inquirer.prompt([{
17
- type: "list",
17
+ type: "select",
18
18
  name: "region",
19
19
  default: "us-east-1",
20
20
  message: "Please choose the AWS region in which your project will be deployed:",
21
21
  // Some of the regions might be commented out (not all service supported).
22
22
  choices: availableAwsRegions
23
23
  }, {
24
- type: "list",
24
+ type: "select",
25
25
  name: "storageOps",
26
26
  default: "ddb",
27
27
  message: `Please choose the database setup you wish to use with your project:`,
@@ -1 +1 @@
1
- {"version":3,"names":["inquirer","availableAwsRegions","STORAGE_OPTIONS","ddb","value","name","runInteractivePrompt","console","log","prompt","type","default","message","choices","Object","values"],"sources":["runInteractivePrompt.ts"],"sourcesContent":["import inquirer from \"inquirer\";\nimport { StorageOps } from \"./types.js\";\nimport { availableAwsRegions } from \"./availableAwsRegions.js\";\n\nconst STORAGE_OPTIONS: Record<StorageOps, { value: StorageOps; name: string }> = {\n ddb: {\n value: \"ddb\",\n name: \"DynamoDB (for small and medium sized projects)\"\n },\n \"ddb-os\": {\n value: \"ddb-os\",\n name: \"Amazon DynamoDB + Amazon OpenSearch (for larger projects)\"\n }\n};\n\nexport const runInteractivePrompt = async () => {\n console.log(\n \"In order to create your new Webiny project, please answer the following questions.\"\n );\n console.log();\n\n return inquirer.prompt([\n {\n type: \"list\",\n name: \"region\",\n default: \"us-east-1\",\n message: \"Please choose the AWS region in which your project will be deployed:\",\n // Some of the regions might be commented out (not all service supported).\n choices: availableAwsRegions\n },\n {\n type: \"list\",\n name: \"storageOps\",\n default: \"ddb\",\n message: `Please choose the database setup you wish to use with your project:`,\n choices: Object.values(STORAGE_OPTIONS)\n }\n ]);\n};\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,UAAU;AAE/B,SAASC,mBAAmB;AAE5B,MAAMC,eAAwE,GAAG;EAC7EC,GAAG,EAAE;IACDC,KAAK,EAAE,KAAK;IACZC,IAAI,EAAE;EACV,CAAC;EACD,QAAQ,EAAE;IACND,KAAK,EAAE,QAAQ;IACfC,IAAI,EAAE;EACV;AACJ,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAG,MAAAA,CAAA,KAAY;EAC5CC,OAAO,CAACC,GAAG,CACP,oFACJ,CAAC;EACDD,OAAO,CAACC,GAAG,CAAC,CAAC;EAEb,OAAOR,QAAQ,CAACS,MAAM,CAAC,CACnB;IACIC,IAAI,EAAE,MAAM;IACZL,IAAI,EAAE,QAAQ;IACdM,OAAO,EAAE,WAAW;IACpBC,OAAO,EAAE,sEAAsE;IAC/E;IACAC,OAAO,EAAEZ;EACb,CAAC,EACD;IACIS,IAAI,EAAE,MAAM;IACZL,IAAI,EAAE,YAAY;IAClBM,OAAO,EAAE,KAAK;IACdC,OAAO,EAAE,qEAAqE;IAC9EC,OAAO,EAAEC,MAAM,CAACC,MAAM,CAACb,eAAe;EAC1C,CAAC,CACJ,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["inquirer","availableAwsRegions","STORAGE_OPTIONS","ddb","value","name","runInteractivePrompt","console","log","prompt","type","default","message","choices","Object","values"],"sources":["runInteractivePrompt.ts"],"sourcesContent":["import inquirer from \"inquirer\";\nimport { StorageOps } from \"./types.js\";\nimport { availableAwsRegions } from \"./availableAwsRegions.js\";\n\nconst STORAGE_OPTIONS: Record<StorageOps, { value: StorageOps; name: string }> = {\n ddb: {\n value: \"ddb\",\n name: \"DynamoDB (for small and medium sized projects)\"\n },\n \"ddb-os\": {\n value: \"ddb-os\",\n name: \"Amazon DynamoDB + Amazon OpenSearch (for larger projects)\"\n }\n};\n\nexport const runInteractivePrompt = async () => {\n console.log(\n \"In order to create your new Webiny project, please answer the following questions.\"\n );\n console.log();\n\n return inquirer.prompt([\n {\n type: \"select\",\n name: \"region\",\n default: \"us-east-1\",\n message: \"Please choose the AWS region in which your project will be deployed:\",\n // Some of the regions might be commented out (not all service supported).\n choices: availableAwsRegions\n },\n {\n type: \"select\",\n name: \"storageOps\",\n default: \"ddb\",\n message: `Please choose the database setup you wish to use with your project:`,\n choices: Object.values(STORAGE_OPTIONS)\n }\n ]);\n};\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,UAAU;AAE/B,SAASC,mBAAmB;AAE5B,MAAMC,eAAwE,GAAG;EAC7EC,GAAG,EAAE;IACDC,KAAK,EAAE,KAAK;IACZC,IAAI,EAAE;EACV,CAAC;EACD,QAAQ,EAAE;IACND,KAAK,EAAE,QAAQ;IACfC,IAAI,EAAE;EACV;AACJ,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAG,MAAAA,CAAA,KAAY;EAC5CC,OAAO,CAACC,GAAG,CACP,oFACJ,CAAC;EACDD,OAAO,CAACC,GAAG,CAAC,CAAC;EAEb,OAAOR,QAAQ,CAACS,MAAM,CAAC,CACnB;IACIC,IAAI,EAAE,QAAQ;IACdL,IAAI,EAAE,QAAQ;IACdM,OAAO,EAAE,WAAW;IACpBC,OAAO,EAAE,sEAAsE;IAC/E;IACAC,OAAO,EAAEZ;EACb,CAAC,EACD;IACIS,IAAI,EAAE,QAAQ;IACdL,IAAI,EAAE,YAAY;IAClBM,OAAO,EAAE,KAAK;IACdC,OAAO,EAAE,qEAAqE;IAC9EC,OAAO,EAAEC,MAAM,CAACC,MAAM,CAACb,eAAe;EAC1C,CAAC,CACJ,CAAC;AACN,CAAC","ignoreList":[]}
@@ -8,16 +8,20 @@ export const renames = [{
8
8
  }, {
9
9
  prev: "example.gitattributes",
10
10
  next: ".gitattributes"
11
- }, {
12
- prev: "example.prettierrc.ts",
13
- next: ".prettierrc.ts"
14
- }, {
15
- prev: "example.prettierignore",
16
- next: ".prettierignore"
17
- }, {
18
- prev: "example.eslint.config.js",
19
- next: "eslint.config.js"
20
- }, {
11
+ },
12
+ // {
13
+ // prev: "example.prettierrc.ts",
14
+ // next: ".prettierrc.ts"
15
+ // },
16
+ // {
17
+ // prev: "example.prettierignore",
18
+ // next: ".prettierignore"
19
+ // },
20
+ // {
21
+ // prev: "example.eslint.config.js",
22
+ // next: "eslint.config.js"
23
+ // },
24
+ {
21
25
  prev: "template.package.json",
22
26
  next: "package.json"
23
27
  }];
@@ -1 +1 @@
1
- {"version":3,"names":["fs","path","GetProjectRootPath","GetTemplatesFolderPath","renames","prev","next","SetupBaseWebinyProject","execute","cliArgs","getTemplatesFolderPath","templatesFolderPath","baseTemplatePath","join","getProjectRootPath","projectRootFolderPath","copySync","i","length","moveSync","overwrite"],"sources":["SetupBaseWebinyProject.ts"],"sourcesContent":["import fs from \"fs-extra\";\nimport path from \"path\";\nimport { GetProjectRootPath } from \"../../../../services/GetProjectRootPath.js\";\nimport { CliParams } from \"../../../../types.js\";\nimport { GetTemplatesFolderPath } from \"../../../../services/GetTemplatesFolderPath.js\";\n\nexport const renames = [\n {\n prev: \"example.gitignore\",\n next: \".gitignore\"\n },\n {\n prev: \"example.gitattributes\",\n next: \".gitattributes\"\n },\n {\n prev: \"example.prettierrc.ts\",\n next: \".prettierrc.ts\"\n },\n {\n prev: \"example.prettierignore\",\n next: \".prettierignore\"\n },\n {\n prev: \"example.eslint.config.js\",\n next: \"eslint.config.js\"\n },\n {\n prev: \"template.package.json\",\n next: \"package.json\"\n }\n];\n\nexport class SetupBaseWebinyProject {\n execute(cliArgs: CliParams) {\n const getTemplatesFolderPath = new GetTemplatesFolderPath();\n const templatesFolderPath = getTemplatesFolderPath.execute();\n\n const baseTemplatePath = path.join(templatesFolderPath, \"base\");\n\n const getProjectRootPath = new GetProjectRootPath();\n const projectRootFolderPath = getProjectRootPath.execute(cliArgs);\n\n fs.copySync(baseTemplatePath, projectRootFolderPath);\n\n for (let i = 0; i < renames.length; i++) {\n fs.moveSync(\n path.join(projectRootFolderPath, renames[i].prev),\n path.join(projectRootFolderPath, renames[i].next),\n {\n overwrite: true\n }\n );\n }\n }\n}\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,UAAU;AACzB,OAAOC,IAAI,MAAM,MAAM;AACvB,SAASC,kBAAkB;AAE3B,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,OAAO,GAAG,CACnB;EACIC,IAAI,EAAE,mBAAmB;EACzBC,IAAI,EAAE;AACV,CAAC,EACD;EACID,IAAI,EAAE,uBAAuB;EAC7BC,IAAI,EAAE;AACV,CAAC,EACD;EACID,IAAI,EAAE,uBAAuB;EAC7BC,IAAI,EAAE;AACV,CAAC,EACD;EACID,IAAI,EAAE,wBAAwB;EAC9BC,IAAI,EAAE;AACV,CAAC,EACD;EACID,IAAI,EAAE,0BAA0B;EAChCC,IAAI,EAAE;AACV,CAAC,EACD;EACID,IAAI,EAAE,uBAAuB;EAC7BC,IAAI,EAAE;AACV,CAAC,CACJ;AAED,OAAO,MAAMC,sBAAsB,CAAC;EAChCC,OAAOA,CAACC,OAAkB,EAAE;IACxB,MAAMC,sBAAsB,GAAG,IAAIP,sBAAsB,CAAC,CAAC;IAC3D,MAAMQ,mBAAmB,GAAGD,sBAAsB,CAACF,OAAO,CAAC,CAAC;IAE5D,MAAMI,gBAAgB,GAAGX,IAAI,CAACY,IAAI,CAACF,mBAAmB,EAAE,MAAM,CAAC;IAE/D,MAAMG,kBAAkB,GAAG,IAAIZ,kBAAkB,CAAC,CAAC;IACnD,MAAMa,qBAAqB,GAAGD,kBAAkB,CAACN,OAAO,CAACC,OAAO,CAAC;IAEjET,EAAE,CAACgB,QAAQ,CAACJ,gBAAgB,EAAEG,qBAAqB,CAAC;IAEpD,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGb,OAAO,CAACc,MAAM,EAAED,CAAC,EAAE,EAAE;MACrCjB,EAAE,CAACmB,QAAQ,CACPlB,IAAI,CAACY,IAAI,CAACE,qBAAqB,EAAEX,OAAO,CAACa,CAAC,CAAC,CAACZ,IAAI,CAAC,EACjDJ,IAAI,CAACY,IAAI,CAACE,qBAAqB,EAAEX,OAAO,CAACa,CAAC,CAAC,CAACX,IAAI,CAAC,EACjD;QACIc,SAAS,EAAE;MACf,CACJ,CAAC;IACL;EACJ;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["fs","path","GetProjectRootPath","GetTemplatesFolderPath","renames","prev","next","SetupBaseWebinyProject","execute","cliArgs","getTemplatesFolderPath","templatesFolderPath","baseTemplatePath","join","getProjectRootPath","projectRootFolderPath","copySync","i","length","moveSync","overwrite"],"sources":["SetupBaseWebinyProject.ts"],"sourcesContent":["import fs from \"fs-extra\";\nimport path from \"path\";\nimport { GetProjectRootPath } from \"../../../../services/GetProjectRootPath.js\";\nimport { CliParams } from \"../../../../types.js\";\nimport { GetTemplatesFolderPath } from \"../../../../services/GetTemplatesFolderPath.js\";\n\nexport const renames = [\n {\n prev: \"example.gitignore\",\n next: \".gitignore\"\n },\n {\n prev: \"example.gitattributes\",\n next: \".gitattributes\"\n },\n // {\n // prev: \"example.prettierrc.ts\",\n // next: \".prettierrc.ts\"\n // },\n // {\n // prev: \"example.prettierignore\",\n // next: \".prettierignore\"\n // },\n // {\n // prev: \"example.eslint.config.js\",\n // next: \"eslint.config.js\"\n // },\n {\n prev: \"template.package.json\",\n next: \"package.json\"\n }\n];\n\nexport class SetupBaseWebinyProject {\n execute(cliArgs: CliParams) {\n const getTemplatesFolderPath = new GetTemplatesFolderPath();\n const templatesFolderPath = getTemplatesFolderPath.execute();\n\n const baseTemplatePath = path.join(templatesFolderPath, \"base\");\n\n const getProjectRootPath = new GetProjectRootPath();\n const projectRootFolderPath = getProjectRootPath.execute(cliArgs);\n\n fs.copySync(baseTemplatePath, projectRootFolderPath);\n\n for (let i = 0; i < renames.length; i++) {\n fs.moveSync(\n path.join(projectRootFolderPath, renames[i].prev),\n path.join(projectRootFolderPath, renames[i].next),\n {\n overwrite: true\n }\n );\n }\n }\n}\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,UAAU;AACzB,OAAOC,IAAI,MAAM,MAAM;AACvB,SAASC,kBAAkB;AAE3B,SAASC,sBAAsB;AAE/B,OAAO,MAAMC,OAAO,GAAG,CACnB;EACIC,IAAI,EAAE,mBAAmB;EACzBC,IAAI,EAAE;AACV,CAAC,EACD;EACID,IAAI,EAAE,uBAAuB;EAC7BC,IAAI,EAAE;AACV,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACID,IAAI,EAAE,uBAAuB;EAC7BC,IAAI,EAAE;AACV,CAAC,CACJ;AAED,OAAO,MAAMC,sBAAsB,CAAC;EAChCC,OAAOA,CAACC,OAAkB,EAAE;IACxB,MAAMC,sBAAsB,GAAG,IAAIP,sBAAsB,CAAC,CAAC;IAC3D,MAAMQ,mBAAmB,GAAGD,sBAAsB,CAACF,OAAO,CAAC,CAAC;IAE5D,MAAMI,gBAAgB,GAAGX,IAAI,CAACY,IAAI,CAACF,mBAAmB,EAAE,MAAM,CAAC;IAE/D,MAAMG,kBAAkB,GAAG,IAAIZ,kBAAkB,CAAC,CAAC;IACnD,MAAMa,qBAAqB,GAAGD,kBAAkB,CAACN,OAAO,CAACC,OAAO,CAAC;IAEjET,EAAE,CAACgB,QAAQ,CAACJ,gBAAgB,EAAEG,qBAAqB,CAAC;IAEpD,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGb,OAAO,CAACc,MAAM,EAAED,CAAC,EAAE,EAAE;MACrCjB,EAAE,CAACmB,QAAQ,CACPlB,IAAI,CAACY,IAAI,CAACE,qBAAqB,EAAEX,OAAO,CAACa,CAAC,CAAC,CAACZ,IAAI,CAAC,EACjDJ,IAAI,CAACY,IAAI,CAACE,qBAAqB,EAAEX,OAAO,CAACa,CAAC,CAAC,CAACX,IAAI,CAAC,EACjD;QACIc,SAAS,EAAE;MACf,CACJ,CAAC;IACL;EACJ;AACJ","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-webiny-project",
3
- "version": "6.0.0",
3
+ "version": "6.1.0-beta.0",
4
4
  "type": "module",
5
5
  "description": "Webiny project bootstrap tool.",
6
6
  "main": "index.js",
@@ -11,36 +11,36 @@
11
11
  "author": "Webiny Ltd.",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "@webiny/build-tools": "6.0.0",
15
- "@webiny/system-requirements": "6.0.0",
16
- "@webiny/telemetry": "6.0.0",
17
- "chalk": "4.1.2",
14
+ "@webiny/build-tools": "6.1.0-beta.0",
15
+ "@webiny/system-requirements": "6.1.0-beta.0",
16
+ "@webiny/telemetry": "6.1.0-beta.0",
17
+ "chalk": "5.6.2",
18
18
  "execa": "5.1.1",
19
- "find-up": "5.0.0",
19
+ "find-up": "8.0.0",
20
20
  "fs-extra": "11.3.4",
21
- "inquirer": "12.11.1",
21
+ "inquirer": "13.3.2",
22
22
  "js-yaml": "4.1.1",
23
23
  "listr": "0.14.3",
24
24
  "load-json-file": "7.0.1",
25
- "ora": "4.1.1",
25
+ "ora": "9.3.0",
26
26
  "os": "0.1.2",
27
27
  "rimraf": "6.1.3",
28
- "type-fest": "5.4.4",
28
+ "type-fest": "5.5.0",
29
29
  "uuid": "13.0.0",
30
- "validate-npm-package-name": "6.0.2",
30
+ "validate-npm-package-name": "7.0.2",
31
31
  "write-json-file": "7.0.0",
32
- "yargs": "17.7.2",
32
+ "yargs": "18.0.0",
33
33
  "yesno": "0.4.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/js-yaml": "4.0.9",
37
- "@types/validate-npm-package-name": "3.0.3"
37
+ "@types/validate-npm-package-name": "4.0.2"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",
41
41
  "directory": "dist"
42
42
  },
43
- "gitHead": "9c6892640a45679ff521e25cd6587dff57393a2e",
43
+ "gitHead": "a3bd3695c66c79238e380d7360d9731b5fcf9c87",
44
44
  "adio": {
45
45
  "ignoreDirs": [
46
46
  "_templates"
@@ -1,4 +1,4 @@
1
- import findUp from "find-up";
1
+ import { findUp } from "find-up";
2
2
  import chalk from "chalk";
3
3
  const {
4
4
  red
@@ -1 +1 @@
1
- {"version":3,"names":["findUp","chalk","red","EnsureNoYarnLockPackageJson","execute","Promise","all","then","files","filter","Boolean","length","messages","map","file","console","log","join","process","exit"],"sources":["EnsureNoYarnLockPackageJson.ts"],"sourcesContent":["import findUp from \"find-up\";\nimport chalk from \"chalk\";\n\nconst { red } = chalk;\n\nexport class EnsureNoYarnLockPackageJson {\n async execute() {\n return Promise.all([findUp(\"yarn.lock\"), findUp(\"package.json\")])\n .then(files => files.filter(Boolean))\n .then(files => {\n if (files.length) {\n const messages = [\n \"\\nThe following file(s) will cause problems with project root detection:\\n\",\n ...files.map(file => red(file) + \"\\n\"),\n `\\nMake sure you delete all ${red(\"yarn.lock\")} and ${red(\n \"package.json\"\n )} files higher in the hierarchy.`\n ];\n\n console.log(messages.join(\"\"));\n process.exit(1);\n }\n });\n }\n}\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,SAAS;AAC5B,OAAOC,KAAK,MAAM,OAAO;AAEzB,MAAM;EAAEC;AAAI,CAAC,GAAGD,KAAK;AAErB,OAAO,MAAME,2BAA2B,CAAC;EACrC,MAAMC,OAAOA,CAAA,EAAG;IACZ,OAAOC,OAAO,CAACC,GAAG,CAAC,CAACN,MAAM,CAAC,WAAW,CAAC,EAAEA,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAC5DO,IAAI,CAACC,KAAK,IAAIA,KAAK,CAACC,MAAM,CAACC,OAAO,CAAC,CAAC,CACpCH,IAAI,CAACC,KAAK,IAAI;MACX,IAAIA,KAAK,CAACG,MAAM,EAAE;QACd,MAAMC,QAAQ,GAAG,CACb,4EAA4E,EAC5E,GAAGJ,KAAK,CAACK,GAAG,CAACC,IAAI,IAAIZ,GAAG,CAACY,IAAI,CAAC,GAAG,IAAI,CAAC,EACtC,8BAA8BZ,GAAG,CAAC,WAAW,CAAC,QAAQA,GAAG,CACrD,cACJ,CAAC,iCAAiC,CACrC;QAEDa,OAAO,CAACC,GAAG,CAACJ,QAAQ,CAACK,IAAI,CAAC,EAAE,CAAC,CAAC;QAC9BC,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;MACnB;IACJ,CAAC,CAAC;EACV;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["findUp","chalk","red","EnsureNoYarnLockPackageJson","execute","Promise","all","then","files","filter","Boolean","length","messages","map","file","console","log","join","process","exit"],"sources":["EnsureNoYarnLockPackageJson.ts"],"sourcesContent":["import { findUp } from \"find-up\";\nimport chalk from \"chalk\";\n\nconst { red } = chalk;\n\nexport class EnsureNoYarnLockPackageJson {\n async execute() {\n return Promise.all([findUp(\"yarn.lock\"), findUp(\"package.json\")])\n .then(files => files.filter(Boolean))\n .then(files => {\n if (files.length) {\n const messages = [\n \"\\nThe following file(s) will cause problems with project root detection:\\n\",\n ...files.map(file => red(file) + \"\\n\"),\n `\\nMake sure you delete all ${red(\"yarn.lock\")} and ${red(\n \"package.json\"\n )} files higher in the hierarchy.`\n ];\n\n console.log(messages.join(\"\"));\n process.exit(1);\n }\n });\n }\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,SAAS;AAChC,OAAOC,KAAK,MAAM,OAAO;AAEzB,MAAM;EAAEC;AAAI,CAAC,GAAGD,KAAK;AAErB,OAAO,MAAME,2BAA2B,CAAC;EACrC,MAAMC,OAAOA,CAAA,EAAG;IACZ,OAAOC,OAAO,CAACC,GAAG,CAAC,CAACN,MAAM,CAAC,WAAW,CAAC,EAAEA,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAC5DO,IAAI,CAACC,KAAK,IAAIA,KAAK,CAACC,MAAM,CAACC,OAAO,CAAC,CAAC,CACpCH,IAAI,CAACC,KAAK,IAAI;MACX,IAAIA,KAAK,CAACG,MAAM,EAAE;QACd,MAAMC,QAAQ,GAAG,CACb,4EAA4E,EAC5E,GAAGJ,KAAK,CAACK,GAAG,CAACC,IAAI,IAAIZ,GAAG,CAACY,IAAI,CAAC,GAAG,IAAI,CAAC,EACtC,8BAA8BZ,GAAG,CAAC,WAAW,CAAC,QAAQA,GAAG,CACrD,cACJ,CAAC,iCAAiC,CACrC;QAEDa,OAAO,CAACC,GAAG,CAACJ,QAAQ,CAACK,IAAI,CAAC,EAAE,CAAC,CAAC;QAC9BC,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC;MACnB;IACJ,CAAC,CAAC;EACV;AACJ","ignoreList":[]}
@@ -1,8 +1,8 @@
1
- import findUp from "find-up";
1
+ import { findUpSync } from "find-up";
2
2
  import { loadJsonFileSync } from "load-json-file";
3
3
  export class GetCwpVersion {
4
4
  execute() {
5
- const cwpPackageJsonPath = findUp.sync("package.json", {
5
+ const cwpPackageJsonPath = findUpSync("package.json", {
6
6
  cwd: import.meta.dirname
7
7
  });
8
8
  if (!cwpPackageJsonPath) {
@@ -1 +1 @@
1
- {"version":3,"names":["findUp","loadJsonFileSync","GetCwpVersion","execute","cwpPackageJsonPath","sync","cwd","import","meta","dirname","Error","cwpPackageJson","version"],"sources":["GetCwpVersion.ts"],"sourcesContent":["import findUp from \"find-up\";\nimport { loadJsonFileSync } from \"load-json-file\";\nimport type { PackageJson } from \"type-fest\";\n\nexport class GetCwpVersion {\n execute(): string {\n const cwpPackageJsonPath = findUp.sync(\"package.json\", {\n cwd: import.meta.dirname\n });\n if (!cwpPackageJsonPath) {\n throw new Error(\"Could not find package.json for create-webiny-project.\");\n }\n const cwpPackageJson = loadJsonFileSync<PackageJson>(cwpPackageJsonPath);\n if (!cwpPackageJson?.version) {\n throw new Error(\"Could not find version in create-webiny-project's package.json.\");\n }\n return cwpPackageJson.version;\n }\n}\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,SAAS;AAC5B,SAASC,gBAAgB,QAAQ,gBAAgB;AAGjD,OAAO,MAAMC,aAAa,CAAC;EACvBC,OAAOA,CAAA,EAAW;IACd,MAAMC,kBAAkB,GAAGJ,MAAM,CAACK,IAAI,CAAC,cAAc,EAAE;MACnDC,GAAG,EAAEC,MAAM,CAACC,IAAI,CAACC;IACrB,CAAC,CAAC;IACF,IAAI,CAACL,kBAAkB,EAAE;MACrB,MAAM,IAAIM,KAAK,CAAC,wDAAwD,CAAC;IAC7E;IACA,MAAMC,cAAc,GAAGV,gBAAgB,CAAcG,kBAAkB,CAAC;IACxE,IAAI,CAACO,cAAc,EAAEC,OAAO,EAAE;MAC1B,MAAM,IAAIF,KAAK,CAAC,iEAAiE,CAAC;IACtF;IACA,OAAOC,cAAc,CAACC,OAAO;EACjC;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["findUpSync","loadJsonFileSync","GetCwpVersion","execute","cwpPackageJsonPath","cwd","import","meta","dirname","Error","cwpPackageJson","version"],"sources":["GetCwpVersion.ts"],"sourcesContent":["import { findUpSync } from \"find-up\";\nimport { loadJsonFileSync } from \"load-json-file\";\nimport type { PackageJson } from \"type-fest\";\n\nexport class GetCwpVersion {\n execute(): string {\n const cwpPackageJsonPath = findUpSync(\"package.json\", {\n cwd: import.meta.dirname\n });\n if (!cwpPackageJsonPath) {\n throw new Error(\"Could not find package.json for create-webiny-project.\");\n }\n const cwpPackageJson = loadJsonFileSync<PackageJson>(cwpPackageJsonPath);\n if (!cwpPackageJson?.version) {\n throw new Error(\"Could not find version in create-webiny-project's package.json.\");\n }\n return cwpPackageJson.version;\n }\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,SAAS;AACpC,SAASC,gBAAgB,QAAQ,gBAAgB;AAGjD,OAAO,MAAMC,aAAa,CAAC;EACvBC,OAAOA,CAAA,EAAW;IACd,MAAMC,kBAAkB,GAAGJ,UAAU,CAAC,cAAc,EAAE;MAClDK,GAAG,EAAEC,MAAM,CAACC,IAAI,CAACC;IACrB,CAAC,CAAC;IACF,IAAI,CAACJ,kBAAkB,EAAE;MACrB,MAAM,IAAIK,KAAK,CAAC,wDAAwD,CAAC;IAC7E;IACA,MAAMC,cAAc,GAAGT,gBAAgB,CAAcG,kBAAkB,CAAC;IACxE,IAAI,CAACM,cAAc,EAAEC,OAAO,EAAE;MAC1B,MAAM,IAAIF,KAAK,CAAC,iEAAiE,CAAC;IACtF;IACA,OAAOC,cAAc,CAACC,OAAO;EACjC;AACJ","ignoreList":[]}
@@ -1,9 +1,9 @@
1
- import findUp from "find-up";
1
+ import { findUpSync } from "find-up";
2
2
  import path from "path";
3
3
  const TEMPLATES_FOLDER_NAME = "_templates";
4
4
  export class GetTemplatesFolderPath {
5
5
  execute() {
6
- const templatesFolderPath = findUp.sync(TEMPLATES_FOLDER_NAME, {
6
+ const templatesFolderPath = findUpSync(TEMPLATES_FOLDER_NAME, {
7
7
  type: "directory",
8
8
  cwd: path.join(import.meta.dirname)
9
9
  });
@@ -1 +1 @@
1
- {"version":3,"names":["findUp","path","TEMPLATES_FOLDER_NAME","GetTemplatesFolderPath","execute","templatesFolderPath","sync","type","cwd","join","import","meta","dirname","Error"],"sources":["GetTemplatesFolderPath.ts"],"sourcesContent":["import findUp from \"find-up\";\nimport path from \"path\";\n\nconst TEMPLATES_FOLDER_NAME = \"_templates\";\n\nexport class GetTemplatesFolderPath {\n execute() {\n const templatesFolderPath = findUp.sync(TEMPLATES_FOLDER_NAME, {\n type: \"directory\",\n cwd: path.join(import.meta.dirname)\n });\n\n if (!templatesFolderPath) {\n // This should never happen because we're controlling the templates.\n throw new Error(\n \"Could not find the `appTemplates` folder. Something went terribly wrong.\"\n );\n }\n\n return templatesFolderPath;\n }\n}\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,SAAS;AAC5B,OAAOC,IAAI,MAAM,MAAM;AAEvB,MAAMC,qBAAqB,GAAG,YAAY;AAE1C,OAAO,MAAMC,sBAAsB,CAAC;EAChCC,OAAOA,CAAA,EAAG;IACN,MAAMC,mBAAmB,GAAGL,MAAM,CAACM,IAAI,CAACJ,qBAAqB,EAAE;MAC3DK,IAAI,EAAE,WAAW;MACjBC,GAAG,EAAEP,IAAI,CAACQ,IAAI,CAACC,MAAM,CAACC,IAAI,CAACC,OAAO;IACtC,CAAC,CAAC;IAEF,IAAI,CAACP,mBAAmB,EAAE;MACtB;MACA,MAAM,IAAIQ,KAAK,CACX,0EACJ,CAAC;IACL;IAEA,OAAOR,mBAAmB;EAC9B;AACJ","ignoreList":[]}
1
+ {"version":3,"names":["findUpSync","path","TEMPLATES_FOLDER_NAME","GetTemplatesFolderPath","execute","templatesFolderPath","type","cwd","join","import","meta","dirname","Error"],"sources":["GetTemplatesFolderPath.ts"],"sourcesContent":["import { findUpSync } from \"find-up\";\nimport path from \"path\";\n\nconst TEMPLATES_FOLDER_NAME = \"_templates\";\n\nexport class GetTemplatesFolderPath {\n execute() {\n const templatesFolderPath = findUpSync(TEMPLATES_FOLDER_NAME, {\n type: \"directory\",\n cwd: path.join(import.meta.dirname)\n });\n\n if (!templatesFolderPath) {\n // This should never happen because we're controlling the templates.\n throw new Error(\n \"Could not find the `appTemplates` folder. Something went terribly wrong.\"\n );\n }\n\n return templatesFolderPath;\n }\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,SAAS;AACpC,OAAOC,IAAI,MAAM,MAAM;AAEvB,MAAMC,qBAAqB,GAAG,YAAY;AAE1C,OAAO,MAAMC,sBAAsB,CAAC;EAChCC,OAAOA,CAAA,EAAG;IACN,MAAMC,mBAAmB,GAAGL,UAAU,CAACE,qBAAqB,EAAE;MAC1DI,IAAI,EAAE,WAAW;MACjBC,GAAG,EAAEN,IAAI,CAACO,IAAI,CAACC,MAAM,CAACC,IAAI,CAACC,OAAO;IACtC,CAAC,CAAC;IAEF,IAAI,CAACN,mBAAmB,EAAE;MACtB;MACA,MAAM,IAAIO,KAAK,CACX,0EACJ,CAAC;IACL;IAEA,OAAOP,mBAAmB;EAC9B;AACJ","ignoreList":[]}
@@ -1,30 +0,0 @@
1
- import js from "@eslint/js";
2
- import globals from "globals";
3
- import ts from "typescript-eslint";
4
-
5
- export default [
6
- { languageOptions: { globals: globals.browser } },
7
- js.configs.recommended,
8
- ...ts.configs.recommended,
9
- {
10
- rules: {
11
- "@typescript-eslint/no-namespace": "off"
12
- }
13
- },
14
- {
15
- ignores: [
16
- "**/node_modules/",
17
- "**/dist/",
18
- "**/build/",
19
- "**/.out/",
20
- "**/*.d.ts",
21
- ".idea/**",
22
- ".webiny/*",
23
- ".pulumi/*",
24
- ".yarn/*",
25
- "public/*",
26
- "idea.js",
27
- "scripts"
28
- ]
29
- }
30
- ];
@@ -1,5 +0,0 @@
1
- **/build/
2
- **/dist/
3
- **/*.d.ts
4
- **/.pulumi/
5
- **/.webiny/
@@ -1,33 +0,0 @@
1
- export default {
2
- printWidth: 100, // default: 80
3
- trailingComma: "none", // "none" | "all" | "es5"
4
- tabWidth: 2, // default: 2
5
- arrowParens: "avoid", // "always" | "avoid"
6
- endOfLine: "lf", // "lf" | "crlf" | "cr" | "auto"
7
- useTabs: false, // use tabs instead of spaces
8
- semi: true, // print semicolons; false to omit
9
- singleQuote: false, // use single quotes instead of double
10
- jsxSingleQuote: false, // use single quotes in JSX
11
- bracketSpacing: true, // spaces in object literals: { foo: bar }
12
- bracketSameLine: false, // put > of multiline JSX on last line (was jsxBracketSameLine)
13
- proseWrap: "preserve", // "always" | "never" | "preserve" — wrap markdown prose
14
- htmlWhitespaceSensitivity: "css", // "css" | "strict" | "ignore"
15
- vueIndentScriptAndStyle: false, // indent <script> and <style> in Vue files
16
- singleAttributePerLine: false, // enforce one JSX/HTML attribute per line
17
- embeddedLanguageFormatting: "auto", // "auto" | "off" — format embedded code (e.g. CSS-in-JS)
18
- quoteProps: "as-needed", // "as-needed" | "consistent" | "preserve" — object key quoting
19
- experimentalTernaries: false, // use "curious ternary" style (Prettier 3+)
20
- requirePragma: false, // only format files with @format pragma
21
- insertPragma: false, // insert @format pragma at top of formatted files
22
- rangeStart: 0, // format only a segment of the file (start offset)
23
- rangeEnd: Infinity, // format only a segment of the file (end offset)
24
- plugins: [], // list of plugin paths/modules
25
- overrides: [
26
- {
27
- files: ["*.js", "*.ts", "*.tsx"],
28
- options: {
29
- tabWidth: 4
30
- }
31
- }
32
- ]
33
- };