Skip to content

Commit

Permalink
Merge pull request #41 from deriv-com/mark/shayan/removed-dist-from-i…
Browse files Browse the repository at this point in the history
…mport

build: removed dist from import path
  • Loading branch information
shayan-deriv authored Jan 29, 2024
2 parents 1a942de + ba79d62 commit a47afad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@
"files": [
"dist"
],
"types": "./dist/main.d.ts",
"exports": {
".": {
"import": "./dist/main.js",
"types": "./dist/main.d.ts"
}
},
"sideEffects": [
"**/*.css"
],
"scripts": {
"dev": "vite",
"build": "tsc --p ./tsconfig-build.json && vite build",
"build": "tsc -p ./tsconfig-build.json && vite build",
"prepublish": "npm run build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig({
plugins: [
react(),
libInjectCss(),
dts({ include: ['lib/components'] }),
dts({ include: ['lib'] }),
],
css: {
preprocessorOptions: {
Expand Down

0 comments on commit a47afad

Please sign in to comment.