Skip to content

Commit

Permalink
Refactor tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntler committed Apr 15, 2022
1 parent a00affe commit 5b8ccdc
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 94 deletions.
126 changes: 63 additions & 63 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
{
"name": "@cyntler/react-doc-viewer",
"version": "0.1.5",
"description": "Document viewer for react. Renders online/local documents.",
"author": "Matthew Mogford",
"license": "ISC",
"repository": {
"url": "https://github.com/cyntler/react-doc-viewer"
},
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"start": "react-scripts start",
"build": "rm -rf build && tsc -p tsconfig-npm.json",
"test": "react-scripts test",
"eject": "react-scripts eject",
"version:patch": "npm run version:pre && npm run version:changelog && npm version patch && npm run version:post",
"version:minor": "npm run version:pre && npm run version:changelog && npm version minor && npm run version:post",
"version:major": "npm run version:pre && npm run version:changelog && npm version major && npm run version:post",
"version:pre": "if [ $(git rev-parse --abbrev-ref HEAD) != 'master' ]; then echo \"\\033[1m\\033[31mCurrently on $(git rev-parse --abbrev-ref HEAD) branch. Please checkout master.\\033[0m\"; exit 1; else exit 0; fi",
"version:changelog": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md'",
"version:post": "git push origin master && git push origin master --tags",
"build-release:patch": "react-scripts test --watchAll=false && npm run build && npm run version:patch",
"build-release:minor": "react-scripts test --watchAll=false && npm run build && npm run version:minor",
"build-release:major": "react-scripts test --watchAll=false && npm run build && npm run version:major"
},
"dependencies": {
"pdfjs-dist": "2.4.456",
"react-pdf": "5.0.0",
"styled-components": "^5.1.1",
"wl-msg-reader": "^0.2.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/pdfjs-dist": "2.1.5",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@types/react-pdf": "4.0.5",
"@types/styled-components": "^5.1.2",
"generate-changelog": "^1.8.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.3",
"typescript": "^3.9.7"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
"name": "@cyntler/react-doc-viewer",
"version": "0.1.5",
"description": "Document viewer for react. Renders online/local documents.",
"author": "Matthew Mogford",
"license": "ISC",
"repository": {
"url": "https://github.com/cyntler/react-doc-viewer"
},
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"start": "react-scripts start",
"build": "rm -rf build && tsc",
"test": "react-scripts test",
"eject": "react-scripts eject",
"version:patch": "npm run version:pre && npm run version:changelog && npm version patch && npm run version:post",
"version:minor": "npm run version:pre && npm run version:changelog && npm version minor && npm run version:post",
"version:major": "npm run version:pre && npm run version:changelog && npm version major && npm run version:post",
"version:pre": "if [ $(git rev-parse --abbrev-ref HEAD) != 'master' ]; then echo \"\\033[1m\\033[31mCurrently on $(git rev-parse --abbrev-ref HEAD) branch. Please checkout master.\\033[0m\"; exit 1; else exit 0; fi",
"version:changelog": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md'",
"version:post": "git push origin master && git push origin master --tags",
"build-release:patch": "react-scripts test --watchAll=false && npm run build && npm run version:patch",
"build-release:minor": "react-scripts test --watchAll=false && npm run build && npm run version:minor",
"build-release:major": "react-scripts test --watchAll=false && npm run build && npm run version:major"
},
"dependencies": {
"pdfjs-dist": "2.4.456",
"react-pdf": "5.0.0",
"styled-components": "^5.1.1",
"wl-msg-reader": "^0.2.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/pdfjs-dist": "2.1.5",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@types/react-pdf": "4.0.5",
"@types/styled-components": "^5.1.2",
"generate-changelog": "^1.8.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.3",
"typescript": "^3.9.7"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
28 changes: 0 additions & 28 deletions tsconfig-npm.json

This file was deleted.

5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"outDir": "./build",
"target": "es5",
"module": "esnext",
"module": "commonjs",
"lib": ["dom", "dom.iterable", "esnext"],
"declaration": true,
"allowJs": true,
Expand All @@ -14,8 +14,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react",
"noEmit": true
"jsx": "react"
},
"include": ["src"],
"exclude": [
Expand Down

0 comments on commit 5b8ccdc

Please sign in to comment.