From 7ca34360d88ec7a14a433eb4bc88177dc3e8c9e2 Mon Sep 17 00:00:00 2001 From: Dan Antal Date: Sun, 27 Sep 2020 20:20:12 +0300 Subject: [PATCH] Fixed breaking changes --- package.json | 2 +- src/store.ts | 2 -- webpack.config.js | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 29cfa87..774d391 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "simple-redux", "version": "1.0.0", "description": "Demo Redux", - "main": "/src/app.ts", + "private": true, "repository": "https://github.com/danantal/simple-redux.git", "license": "MIT", "scripts": { diff --git a/src/store.ts b/src/store.ts index 091269c..13c0fff 100644 --- a/src/store.ts +++ b/src/store.ts @@ -66,8 +66,6 @@ export const reset = () => ({ type: "RESET" }); export const store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk))); - -//HELPERS function makeComputation(value, currentValue): Promise { return new Promise((resolve, reject) => { setTimeout(() => resolve(value + currentValue), 2000) diff --git a/webpack.config.js b/webpack.config.js index 3e4b819..2e13e85 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,6 @@ const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); -const CleanWebpackPlugin = require("clean-webpack-plugin"); +const {CleanWebpackPlugin} = require("clean-webpack-plugin"); module.exports = { entry: "./src/index.tsx",