From 4615dd1d029c324cb3e64c91d54d6f281d5df71f Mon Sep 17 00:00:00 2001 From: Shruthi Rai Date: Sat, 8 Jan 2022 15:35:01 +0100 Subject: [PATCH] fix: adding build scriot --- react-app/package.json | 13 ++++++------ react-app/tsconfig.json | 44 ++++++++++++++++++++--------------------- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/react-app/package.json b/react-app/package.json index bdf5f850..1c0cb0cc 100644 --- a/react-app/package.json +++ b/react-app/package.json @@ -8,7 +8,13 @@ ] }, "private": false, - "main": "src/index.ts", + "main": "dist/index.js", + "scripts": { + "build": "tsc", + "storybook": "start-storybook -p 6006", + "build-storybook": "build-storybook", + "semantic-release": "semantic-release" + }, "dependencies": { "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^11.2.7", @@ -21,11 +27,6 @@ "react-scripts": "4.0.3", "web-vitals": "^1.1.2" }, - "scripts": { - "storybook": "start-storybook -p 6006", - "build-storybook": "build-storybook", - "semantic-release": "semantic-release" - }, "repository": { "type": "git", "url": "git+https://github.com/emerson-eps/color-tables.git" diff --git a/react-app/tsconfig.json b/react-app/tsconfig.json index 028d0a3d..82327953 100644 --- a/react-app/tsconfig.json +++ b/react-app/tsconfig.json @@ -1,24 +1,24 @@ { - "compilerOptions": { - "baseUrl": "src", - //"outDir": "build", - "module": "es6", - "target": "es6", - //"lib": ["es6", "dom", "es2016", "es2017"], - "sourceMap": true, - "allowJs": true, - "jsx": "react", - "declaration": true, - "moduleResolution": "node", - "forceConsistentCasingInFileNames": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noImplicitAny": true, - "strictNullChecks": true, - "suppressImplicitAnyIndexErrors": true, - "noUnusedLocals": true, - "noUnusedParameters": true - }, - "include": ["./src","./src/custom.d.ts"], - "exclude": [ "" ] + "compilerOptions": { + //"baseUrl": "src", + "outDir": "dist", + "module": "es6", + "target": "es6", + //"lib": ["es6", "dom", "es2016", "es2017"], + "sourceMap": true, + "allowJs": true, + "jsx": "react", + "declaration": true, + "moduleResolution": "node", + "forceConsistentCasingInFileNames": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noImplicitAny": true, + "strictNullChecks": true, + "suppressImplicitAnyIndexErrors": true, + "noUnusedLocals": true, + "noUnusedParameters": true + }, + "include": ["src",], + "exclude": ["node_modules"] } \ No newline at end of file