Skip to content

Commit

Permalink
refactor: update build output directory and dependencies
Browse files Browse the repository at this point in the history
Modified build output directory from 'lib' to 'dist' and updated dependencies for testing and other packages. Adjusted paths in tsconfig.json and added new libraries including Testing Library and Jest packages.
  • Loading branch information
mallikcheripally committed Aug 8, 2024
1 parent da8dadf commit 6d1672c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "react-refocus",
"version": "0.0.1-alpha.2",
"description": "A focus management library for React applications",
"main": "lib/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"lib/**/*"
"dist/**/*"
],
"scripts": {
"build": "webpack --mode production",
Expand Down Expand Up @@ -36,6 +37,10 @@
"@babel/preset-env": "^7.14.0",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.13.1",
Expand All @@ -49,13 +54,15 @@
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"globals": "^15.6.0",
"jest": "^26.6.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mini-css-extract-plugin": "^1.6.0",
"prettier": "^3.3.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"standard-version": "^9.5.0",
"terser-webpack-plugin": "^5.1.2",
"ts-jest": "^29.2.4",
"ts-loader": "^9.2.3",
"typescript": "^5.5.2",
"webpack": "^5.36.2",
Expand Down
14 changes: 5 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"declarationDir": "./lib",
"outDir": "./lib",
"declarationDir": "./dist",
"outDir": "./dist",
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"baseUrl": ".",
"baseUrl": "./src",
"paths": {
"components/*": ["src/components/*"],
"hooks/*": ["src/hooks/*"],
"utils/*": ["src/utils/*"],
"styles/*": ["src/styles/*"],
"context/*": ["src/context/*"]
"@/*": ["*"]
}
},
"include": ["src"],
"include": ["src/**/*"],
"exclude": ["node_modules", "lib"]
}

0 comments on commit 6d1672c

Please # to comment.