diff --git a/package-lock.json b/package-lock.json index 0da121e..cd8aa71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rapid-react", - "version": "2.0.3", + "version": "2.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4d95600..ad66943 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rapid-react", - "version": "2.0.3", + "version": "2.0.4", "description": "A light weight interactive CLI Automation Tool 🛠️ for rapid scaffolding of React apps with Create React App under the hood. ⚛️", "main": "lib/index.js", "scripts": { diff --git a/src/scripts/mappers.ts b/src/scripts/mappers.ts index 0d9d264..b1373f7 100644 --- a/src/scripts/mappers.ts +++ b/src/scripts/mappers.ts @@ -131,7 +131,8 @@ const mappedAnswers = (answers: Answers) => { if (useLogger) { const { lib, types } = REDUX_ADDONS['Redux Logger']; - devDependencies = [...devDependencies, lib, ...tsUsed ? [types] : []]; + dependencies = [...dependencies, lib]; + devDependencies = [...devDependencies, ...tsUsed ? [types] : []]; } // thunk doesn't need to be installed diff --git a/src/templates/component.ts b/src/templates/component.ts index 5bd7796..d3b866a 100644 --- a/src/templates/component.ts +++ b/src/templates/component.ts @@ -15,7 +15,7 @@ import './styles.${styleExt}'; ${cmpDefinition}
- {/* JSX goes here */} + {/* JSX goes here */}
); ${cmpExport}`; diff --git a/src/templates/slice.ts b/src/templates/slice.ts index 3a8ea5c..656e56f 100644 --- a/src/templates/slice.ts +++ b/src/templates/slice.ts @@ -25,7 +25,7 @@ ${typeDeclaration}const initialState${reducerReturnType} = { }; const ${reducerPrefix}Slice = createSlice({ - name: 'counter', + name: '${reducerPrefix}', initialState, reducers: { increment: (state${stateSuffix}) => {