Skip to content

Commit

Permalink
Merge pull request #100 from liam-hq/enhance-syncpack
Browse files Browse the repository at this point in the history
maintenance: enhance syncpack
  • Loading branch information
MH4GF authored Nov 29, 2024
2 parents f583a6c + ab63e60 commit 8e3e6be
Show file tree
Hide file tree
Showing 9 changed files with 364 additions and 411 deletions.
40 changes: 32 additions & 8 deletions frontend/.syncpackrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
{
"versionGroups": [
"sortFirst": [
"name",
"license",
"private",
"version",
"type",
"publishConfig",
"main",
"exports",
"bin",
"dependencies",
"devDependencies",
"peerDependencies",
"scripts",
"packageManager"
],
"sortPackages": true,
"semverGroups": [
{
"label": "Use workspace protocol (workspace packages)",
"dependencies": [
"@apps/*",
"@packages/*",
"@liam/*"
],
"label": "Use exact version numbers",
"range": "",
"dependencyTypes": [
"prod",
"dev"
],
"pinVersion": "workspace:*"
"dependencies": [
"**"
],
"packages": [
"**"
]
}
],
"versionGroups": [
{
"dependencies": ["$LOCAL"],
"isIgnored": true
}
]
}
23 changes: 13 additions & 10 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"name": "liam-frontend",
"version": "0.0.1",
"private": true,
"version": "0.0.1",
"devDependencies": {
"@turbo/gen": "2.1.2",
"syncpack": "13.0.0",
"turbo": "2.1.2"
},
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"lint": "pnpm run '/^lint:.*/'",
"lint:turbo": "turbo lint",
"lint:packageVersion": "syncpack list-mismatches",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:syncpack-fix": "syncpack fix-mismatches",
"fmt:syncpack-format": "syncpack format",
"fmt:turbo": "turbo fmt",
"gen:turbo": "turbo gen",
"lint": "pnpm run '/^lint:.*/'",
"lint:syncpack": "syncpack lint",
"lint:turbo": "turbo lint",
"test:turbo": "turbo test"
},
"packageManager": "[email protected]+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b",
"devDependencies": {
"@turbo/gen": "^2.1.2",
"syncpack": "^13.0.0",
"turbo": "^2.1.2"
}
"packageManager": "[email protected]+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
}
54 changes: 27 additions & 27 deletions frontend/packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,45 @@
"bin": {
"liam": "./dist-cli/bin/cli.js"
},
"dependencies": {
"commander": "12.1.0",
"destyle.css": "4.0.1",
"react": "18",
"react-dom": "18",
"valibot": "^1.0.0-beta.5"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@liam/db-structure": "workspace:*",
"@liam/erd-core": "workspace:*",
"@rollup/plugin-node-resolve": "15.3.0",
"@rollup/plugin-typescript": "12.1.1",
"@types/node": "22.9.0",
"@types/react": "18",
"@types/react-dom": "18",
"@vitejs/plugin-react": "4.3.3",
"rollup": "4.27.3",
"rollup-plugin-execute": "1.1.1",
"typed-css-modules": "0.9.1",
"typescript": "5",
"vite": "5.4.10",
"vitest": "2.1.4"
},
"scripts": {
"command:build": "pnpm build && node ./dist-cli/bin/cli.js erd build --input fixtures/input.schema.rb",
"build": "pnpm run '/^build:.*/'",
"build:cli": "rollup -c",
"build:vite": "vite build --outDir dist-cli/html",
"command:build": "pnpm build && node ./dist-cli/bin/cli.js erd build --input fixtures/input.schema.rb",
"dev": "pnpm command:build && cp dist/schema.json public/ && pnpm run '/^dev:.*/'",
"dev:app": "vite",
"dev:css": "tcm src --watch",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe .",
"gen": "pnpm run '/^gen:.*/'",
"gen:css": "tcm src",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome check .",
"lint:tsc": "tsc --noEmit",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe .",
"test": "vitest run"
},
"dependencies": {
"commander": "^12.1.0",
"destyle.css": "^4.0.1",
"react": "^18",
"react-dom": "^18",
"valibot": "^1.0.0-beta.5"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@liam/db-structure": "workspace:*",
"@liam/erd-core": "workspace:*",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^22.9.0",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react": "^4.3.3",
"rollup": "^4.27.3",
"rollup-plugin-execute": "^1.1.1",
"typed-css-modules": "^0.9.1",
"typescript": "^5",
"vite": "^5.4.10",
"vitest": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion frontend/packages/configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"type": "module",
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@tsconfig/strictest": "^2.0.5"
"@tsconfig/strictest": "2.0.5"
}
}
42 changes: 21 additions & 21 deletions frontend/packages/db-structure/package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"name": "@liam/db-structure",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"version": "0.0.1",
"scripts": {
"build": "tsc",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome check .",
"lint:tsc": "tsc --noEmit",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe .",
"test": "vitest --watch=false",
"gen:parser": "./scripts/generateParser.sh"
},
"type": "module",
"main": "dist/index.js",
"dependencies": {
"pgsql-parser": "^13.16.0",
"pgsql-parser": "13.16.0",
"valibot": "^1.0.0-beta.5"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@pgsql/types": "^15.0.2",
"@liam/configs": "workspace:*",
"lodash-es": "^4.17.21",
"peggy": "^4.1.1",
"pluralize-esm": "^9.0.5",
"typescript": "^5",
"vitest": "^2.1.4"
}
"@pgsql/types": "15.0.2",
"lodash-es": "4.17.21",
"peggy": "4.1.1",
"pluralize-esm": "9.0.5",
"typescript": "5",
"vitest": "2.1.4"
},
"scripts": {
"build": "tsc",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe .",
"gen:parser": "./scripts/generateParser.sh",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome check .",
"lint:tsc": "tsc --noEmit",
"test": "vitest --watch=false"
},
"types": "dist/index.d.ts"
}
32 changes: 16 additions & 16 deletions frontend/packages/erd-core/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"name": "@liam/erd-core",
"main": "src/index.ts",
"version": "0.0.1",
"type": "module",
"main": "src/index.ts",
"dependencies": {
"@xyflow/react": "12.3.5",
"react": "18"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@liam/configs": "workspace:*",
"@liam/db-structure": "workspace:*",
"@types/react": "18",
"typed-css-modules": "0.9.1",
"typescript": "5"
},
"scripts": {
"dev": "pnpm run '/^dev:.*/'",
"dev:css": "tcm src --watch",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe .",
"gen": "pnpm run '/^gen:.*/'",
"gen:css": "tcm src",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome check .",
"lint:tsc": "tsc --noEmit",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe ."
},
"dependencies": {
"@xyflow/react": "^12.3.5",
"react": "^18"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@liam/db-structure": "workspace:*",
"@liam/configs": "workspace:*",
"@types/react": "^18",
"typed-css-modules": "^0.9.1",
"typescript": "^5"
"lint:tsc": "tsc --noEmit"
}
}
17 changes: 9 additions & 8 deletions frontend/packages/figma-to-css-variables/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "@liam/figma-to-css-variables",
"version": "0.0.0",
"main": "bin/index.mjs",
"scripts": {
"sync": "node bin/index.mjs",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome check .",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe ."
"dependencies": {
"style-dictionary": "4.1.3"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@liam/configs": "workspace:*"
},
"dependencies": {
"style-dictionary": "^4.1.3"
"scripts": {
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe .",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome check .",
"sync": "node bin/index.mjs"
}
}
37 changes: 19 additions & 18 deletions frontend/packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
{
"name": "@liam/ui",
"version": "0.0.0",
"main": "src/index.ts",
"dependencies": {
"@radix-ui/react-dropdown-menu": "2.1.2",
"@radix-ui/react-tooltip": "1.1.3",
"clsx": "2.1.1",
"lucide-react": "0.451.0",
"ts-pattern": "5.4.0"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@liam/configs": "workspace:*",
"@storybook/react": "8.3.4",
"@types/react": "18",
"typed-css-modules": "0.9.1",
"typescript": "5"
},
"scripts": {
"dev": "pnpm run '/^dev:.*/'",
"dev:css": "tcm src --watch",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe .",
"gen": "pnpm run '/^gen:.*/'",
"gen:css": "tcm src",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome check .",
"lint:tsc": "tsc --noEmit",
"fmt": "pnpm run '/^fmt:.*/'",
"fmt:biome": "biome check --write --unsafe ."
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@liam/configs": "workspace:*",
"@storybook/react": "^8.3.4",
"@types/react": "^18",
"typed-css-modules": "^0.9.1",
"typescript": "^5"
},
"dependencies": {
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-tooltip": "^1.1.3",
"clsx": "^2.1.1",
"lucide-react": "^0.451.0",
"ts-pattern": "^5.4.0"
"lint:tsc": "tsc --noEmit"
}
}
Loading

0 comments on commit 8e3e6be

Please sign in to comment.