Skip to content

Commit

Permalink
moved tsc flags in tsconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
flodlc committed Feb 7, 2022
1 parent d3d4773 commit f711fd7
Show file tree
Hide file tree
Showing 5 changed files with 870 additions and 9 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"module": "dist/index.es.js",
"typings": "dist/index.d.ts",
"author": "flodlc",
"files": ["dist/*"],
"files": [
"dist/*"
],
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -15,7 +17,7 @@
"dev": "vite",
"build": "vite build",
"package": "vite build --config vite-build.config.ts && yarn package:types",
"package:types": "yarn tsc --emitDeclarationOnly --outDir dist",
"package:types": "yarn tsc",
"serve": "serve -s dist"
},
"private": false,
Expand All @@ -25,10 +27,10 @@
"@types/react-dom": "^17.0.11",
"@vitejs/plugin-react": "^1.1.4",
"prettier": "^2.5.1",
"vite": "^2.7.13",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"vite": "^2.7.13"
},
"dependencies": {},
"keywords": [
Expand Down
8 changes: 5 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"isolatedModules": false,
"noEmit": false,
"declaration": true,
"jsx": "react"
"emitDeclarationOnly": true,
"jsx": "react",
"outDir": "dist",
},
"include": [
"src",
"src/index.ts",
]
}
1 change: 0 additions & 1 deletion vite-build.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as path from "path";

import { defineConfig } from "vite";

export default defineConfig({
Expand Down
Loading

1 comment on commit f711fd7

@vercel
Copy link

@vercel vercel bot commented on f711fd7 Feb 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.