Skip to content

Commit

Permalink
fix: path
Browse files Browse the repository at this point in the history
  • Loading branch information
Selemon Dev committed Mar 21, 2024
1 parent 5bf908e commit 78f9ce4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-selemondev",
"version": "0.2.5",
"version": "0.3.4",
"description": "The Next Generation React Scaffolding Tool ✨",
"type": "module",
"main": "./dist/index.cjs",
Expand All @@ -11,7 +11,7 @@
"build:package": "tsup-node src/index.ts --format cjs,esm --clean --dts --minify --shims",
"generate:release": "npx changelogen@latest --release",
"package:beta": "npm run build && npm publish --tag beta",
"package": "npm publish --access=public"
"package": "pnpm build:package && npm publish --access=public"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion src/core/command/create-react-next/copyTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function copyTemplate() {
const filterFileFn = getFilterFile()

async function copy() {
const targetDirectory = path.resolve(__dirname, '../');
const targetDirectory = path.resolve(__dirname, '../../../../');
if(!dest) {
return;
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/questions/react/createReactQuestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import reactQuery from './reactQuery'
import program from '../../program'
async function createReactQuestions(): Promise<void> {
try {
options.name = program.args[0] ?? (await createQuestion(projectName));
options.name = program.args[0] ?? (await createQuestion(projectName)).name;

if (!options.useTypeScript) {
await createQuestion(typeScriptPrompt)
Expand Down
2 changes: 1 addition & 1 deletion src/core/questions/react/projectName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const defaultProjectName = 'create-react-next'

const packageName = [
{
name: 'projectName',
name: 'name',
type: 'text',
message: 'What should we call your project?',
initial: defaultProjectName,
Expand Down

0 comments on commit 78f9ce4

Please sign in to comment.