diff --git a/package.json b/package.json index d47812ce..336ad199 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "requirejs": "^2.3.5" }, "scripts": { - "start": "react-scripts start", + "start": "node startScript.js && react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" diff --git a/readme.md b/readme.md index 5855e07a..3746ebe1 100644 --- a/readme.md +++ b/readme.md @@ -19,9 +19,6 @@ Clone the repository on your local machine and run. npm install ``` -#### Setting up the development environment - -Copy the lib folder, inside the main directory of the project folder, into the node_modules folder (after npm install). These are dependencies required by the sugarizer platform. #### Running the project diff --git a/startScript.js b/startScript.js new file mode 100644 index 00000000..616a8a7f --- /dev/null +++ b/startScript.js @@ -0,0 +1,2 @@ +const fs = require("fs"); +fs.rename("./lib/", "./node_modules/lib", () => console.log("Local Env Set"));