diff --git a/cli/package.json b/cli/package.json index 2d8e10395..f5d802db1 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "monoreact", - "version": "0.34.0", + "version": "0.35.0", "description": "React workspaces implementation", "license": "MIT", "main": "./dist/bundle.cjs", diff --git a/cli/src/bin/scaffolding/new.helpers.ts b/cli/src/bin/scaffolding/new.helpers.ts index bb7f0380c..e527af15f 100644 --- a/cli/src/bin/scaffolding/new.helpers.ts +++ b/cli/src/bin/scaffolding/new.helpers.ts @@ -36,7 +36,7 @@ export const resolveOptions = async ({ const shouldChooseDifferentPath = fs.existsSync(dir) && (await chooseDifferentPathConfirmation(dir)) === 'Yes'; if (!shouldChooseDifferentPath) { - return { projectDir: dir, projectName: name }; + return { projectDir: dir, projectName: dir.split(path.sep).pop() ?? 'project' }; } const projectName = await getProjectName(name); diff --git a/cli/src/shared/constants/package.const.ts b/cli/src/shared/constants/package.const.ts index 947bea4d4..a050abb88 100644 --- a/cli/src/shared/constants/package.const.ts +++ b/cli/src/shared/constants/package.const.ts @@ -56,7 +56,7 @@ export const WORKSPACE_ROOT_PACKAGE_JSON: CLI.Package.HostPackageJSON = { dependencies: { react: '^17.0.2', 'react-dom': '^17.0.2', - 'react-scripts': '5.0.0' + 'react-scripts': '5.0.1' }, devDependencies: { monoreact: 'latest', @@ -65,8 +65,8 @@ export const WORKSPACE_ROOT_PACKAGE_JSON: CLI.Package.HostPackageJSON = { '@testing-library/user-event': '^13.5.0', 'web-vitals': '^2.1.2', '@types/jest': '^27.0.3', - '@types/react': '^17.0.37', - '@types/react-dom': '^17.0.11', + '@types/react': '^17.0.45', + '@types/react-dom': '^17.0.17', '@types/node': packageJson.devDependencies['@types/node'], '@typescript-eslint/eslint-plugin': '5.7.0', '@typescript-eslint/parser': '5.7.0', @@ -81,8 +81,8 @@ export const WORKSPACE_ROOT_PACKAGE_JSON: CLI.Package.HostPackageJSON = { 'eslint-plugin-sonarjs': '0.11.0', 'eslint-plugin-jsx-a11y': packageJson.dependencies['eslint-plugin-jsx-a11y'], husky: '4.3.8', - 'lint-staged': '12.1.2', - prettier: '2.5.1', + 'lint-staged': '12.5.0', + prettier: '2.6.2', stylelint: '14.1.0', 'stylelint-config-recommended': '3.0.0', tslib: packageJson.dependencies.tslib,