diff --git a/examples/core-tutorial/package.json b/examples/core-tutorial/package.json index 41f9fca3715..5afb84bce87 100644 --- a/examples/core-tutorial/package.json +++ b/examples/core-tutorial/package.json @@ -23,7 +23,6 @@ "@types/node": "^20.14.9", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "eslint": "^9.6.0", "eslint-config-next": "^14.2.4" } } diff --git a/packages/create-toolpad-app/src/examples.ts b/packages/create-toolpad-app/src/examples.ts index 93f4e4c64a9..f8f8445dfcc 100644 --- a/packages/create-toolpad-app/src/examples.ts +++ b/packages/create-toolpad-app/src/examples.ts @@ -50,8 +50,6 @@ export async function downloadAndExtractExample(root: string, name: string) { filter: (p) => p.includes(`mui-toolpad-master/examples/${name}/`), }); - // eslint-disable-next-line no-console - console.log(); // eslint-disable-next-line no-console console.log( `${chalk.green('success')} - Downloaded and extracted "${name}" to ${chalk.cyan(root)}`, diff --git a/packages/create-toolpad-app/src/index.ts b/packages/create-toolpad-app/src/index.ts index fca7da2cf53..a2013dae422 100644 --- a/packages/create-toolpad-app/src/index.ts +++ b/packages/create-toolpad-app/src/index.ts @@ -264,6 +264,22 @@ const run = async () => { // If the user has provided an example, download and extract it if (args.example) { await downloadAndExtractExample(absolutePath, args.example); + + if (installFlag) { + // eslint-disable-next-line no-console + console.log(`${chalk.cyan('info')} - Installing dependencies`); + // eslint-disable-next-line no-console + console.log(); + await execa(packageManager, ['install'], { stdio: 'inherit', cwd: absolutePath }); + // eslint-disable-next-line no-console + console.log(); + // eslint-disable-next-line no-console + console.log( + `${chalk.green('success')} - Installed "${args.example}" at ${chalk.cyan(absolutePath)}`, + ); + // eslint-disable-next-line no-console + console.log(); + } } // If the core flag is set, create a new project with Toolpad Core else if (coreFlag) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dd89b78d3d9..4e8f106fbc5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -191,7 +191,7 @@ importers: version: 7.34.3(eslint@8.57.0) eslint-plugin-react-compiler: specifier: latest - version: 0.0.0-experimental-47e15aa-20240725(eslint@8.57.0) + version: 0.0.0-experimental-9ed098e-20240725(eslint@8.57.0) eslint-plugin-react-hooks: specifier: 4.6.2 version: 4.6.2(eslint@8.57.0) @@ -5781,8 +5781,8 @@ packages: peerDependencies: eslint: '>=7.0.0' - eslint-plugin-react-compiler@0.0.0-experimental-47e15aa-20240725: - resolution: {integrity: sha512-kc++BYUMmCvEM54mrdEZtc5nWskmUVDNza6/Jezee02CBLh+ftPHl4hDtophy4puUAMhZ+p2loJi1gM36hhDbQ==} + eslint-plugin-react-compiler@0.0.0-experimental-9ed098e-20240725: + resolution: {integrity: sha512-Xv2iD8kU6R4Wdjdh1WhdP8UnSqSV+/XcadxwBCmMr836fQUoXGuw/uVGc01v9opZs9SwKzo+8My6ayVCgAinPA==} engines: {node: ^14.17.0 || ^16.0.0 || >= 18.0.0} peerDependencies: eslint: '>=7' @@ -15557,7 +15557,7 @@ snapshots: globals: 13.24.0 rambda: 7.5.0 - eslint-plugin-react-compiler@0.0.0-experimental-47e15aa-20240725(eslint@8.57.0): + eslint-plugin-react-compiler@0.0.0-experimental-9ed098e-20240725(eslint@8.57.0): dependencies: '@babel/core': 7.24.9 '@babel/parser': 7.24.8