Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"typecheck": "tsc --noEmit -p tsconfig.vitest.json --composite false"
},
"dependencies": {
"@prefabs.tech/tsconfig": "0.5.0",
"@prefabs.tech/react-config": "0.71.0",
"@prefabs.tech/react-form": "0.71.0",
"@prefabs.tech/react-i18n": "0.71.0",
"@prefabs.tech/react-layout": "0.71.0",
"@prefabs.tech/react-ui": "0.71.0",
"@prefabs.tech/react-user": "0.71.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@reduxjs/toolkit": "1.9.7",
"normalize.css": "8.0.1",
"primeicons": "7.0.0",
Expand All @@ -36,10 +36,10 @@
"zod": "3.23.8"
},
"devDependencies": {
"@prefabs.tech/eslint-config": "0.5.0",
"@babel/core": "7.26.10",
"@babel/plugin-syntax-flow": "7.26.0",
"@babel/plugin-transform-react-jsx": "^7.21.0",
"@prefabs.tech/eslint-config": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
Expand All @@ -50,7 +50,7 @@
"eslint": "9.39.2",
"jsdom": "25.0.1",
"prettier": "3.8.1",
"typescript": "5.7.3",
"typescript": "5.9.3",
"vite": "6.4.1",
"vite-plugin-compression": "0.5.1",
"vite-plugin-html": "3.2.2",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"build": "turbo run build",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"prepare": "husky install",
"prepare": "husky",
"sort-package": "npx sort-package-json && turbo run sort-package",
"test": "turbo run test --parallel",
"typecheck": "turbo run typecheck"
Expand All @@ -18,7 +18,7 @@
"prettier": "3.5.3",
"shipjs": "0.27.0",
"turbo": "2.5.4",
"typescript": "5.7.3"
"typescript": "5.9.3"
},
"packageManager": "pnpm@10.13.1",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"jsdom": "26.0.0",
"prettier": "3.8.1",
"react": "18.3.1",
"typescript": "5.7.3",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
},
Expand Down
8 changes: 5 additions & 3 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactForm.umd.js",
"module": "./dist/PrefabsTechReactForm.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand All @@ -37,8 +39,8 @@
},
"devDependencies": {
"@prefabs.tech/eslint-config": "0.5.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@prefabs.tech/react-ui": "0.71.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
Expand All @@ -53,7 +55,7 @@
"primereact": "9.6.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"typescript": "5.7.3",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
},
Expand Down
8 changes: 5 additions & 3 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactI18n.umd.js",
"module": "./dist/PrefabsTechReactI18n.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand All @@ -37,8 +39,8 @@
},
"devDependencies": {
"@prefabs.tech/eslint-config": "0.5.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@prefabs.tech/react-config": "0.71.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
Expand All @@ -50,7 +52,7 @@
"prettier": "3.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"typescript": "5.7.3",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
},
Expand Down
9 changes: 5 additions & 4 deletions packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactLayout.umd.js",
"module": "./dist/PrefabsTechReactLayout.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand All @@ -26,13 +28,12 @@
"test:unit": "vitest --environment jsdom run unit/",
"typecheck": "tsc --noEmit -p tsconfig.vitest.json --composite false"
},
"dependencies": {},
"devDependencies": {
"@prefabs.tech/eslint-config": "0.5.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@prefabs.tech/react-config": "0.71.0",
"@prefabs.tech/react-i18n": "0.71.0",
"@prefabs.tech/react-ui": "0.71.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
Expand All @@ -47,7 +48,7 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.28.0",
"typescript": "5.7.3",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
},
Expand Down
9 changes: 8 additions & 1 deletion packages/layout/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ import { fileURLToPath } from "node:url";
import react from "@vitejs/plugin-react";
import { defineConfig, loadEnv } from "vite";

import { dependencies, peerDependencies } from "./package.json";
import packageJson from "./package.json";

type PackageData = {
dependencies?: Record<string, string>;
peerDependencies?: Record<string, string>;
};

const { dependencies = {}, peerDependencies = {} } = packageJson as PackageData;

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.28.0",
"typescript": "5.7.3",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/utils/UseExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const exportXLSX = ({
const buffer = build([{ name: sheetName, data, options: sheetOptions }]);

saveAs(
new Blob([buffer], {
new Blob([buffer as BlobPart], {
type: "application/vnd.ms-excel",
}),
`${filename}.xlsx`,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/utils/UseExporterAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const exportXLSX = async ({
const buffer = XLSX.build([{ name: sheetName, data, options: sheetOptions }]);

saveAs(
new Blob([buffer], {
new Blob([buffer as unknown as BlobPart], {
type: "application/vnd.ms-excel",
}),
`${filename}.xlsx`,
Expand Down
8 changes: 5 additions & 3 deletions packages/user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactUser.umd.js",
"module": "./dist/PrefabsTechReactUser.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand All @@ -32,11 +34,11 @@
},
"devDependencies": {
"@prefabs.tech/eslint-config": "0.5.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@prefabs.tech/react-form": "0.71.0",
"@prefabs.tech/react-i18n": "0.71.0",
"@prefabs.tech/react-layout": "0.71.0",
"@prefabs.tech/react-ui": "0.71.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.3.0",
"@testing-library/user-event": "14.6.1",
Expand All @@ -55,7 +57,7 @@
"react-dom": "18.3.1",
"react-router-dom": "6.28.0",
"react-toastify": "10.0.6",
"typescript": "5.7.3",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
},
Expand Down
Loading