From 5aae09b90e2172a1fd17a429b97d651b2f85fd4a Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Mon, 2 Dec 2024 18:12:35 +0900 Subject: [PATCH 1/2] package name scope follows npm organization name `@liam-hq` $ git grep -l '@liam/' | xargs gsed -i 's|@liam/|@liam-hq/|g' --- .../docs/static-build/getting-started.mdx | 2 +- frontend/apps/docs/package.json | 2 +- frontend/packages/cli/README.md | 2 +- frontend/packages/cli/package.json | 6 +++--- frontend/packages/cli/src/App.tsx | 4 ++-- frontend/packages/cli/src/cli/runPreprocess.ts | 2 +- frontend/packages/cli/src/globals.css | 2 +- frontend/packages/configs/package.json | 2 +- frontend/packages/db-structure/package.json | 4 ++-- frontend/packages/db-structure/tsconfig.json | 2 +- frontend/packages/erd-core/package.json | 8 ++++---- .../ERDContent/TableNode/TableNode.tsx | 4 ++-- .../src/components/ERDRenderer/ERDRenderer.tsx | 2 +- .../ERDRenderer/convertDBStructureToNodes.ts | 2 +- frontend/packages/erd-core/styles/globals.css | 2 +- frontend/packages/erd-core/tsconfig.json | 2 +- .../packages/figma-to-css-variables/README.md | 2 +- .../packages/figma-to-css-variables/package.json | 4 ++-- frontend/packages/ui/package.json | 4 ++-- frontend/packages/ui/tsconfig.json | 2 +- frontend/pnpm-lock.yaml | 16 ++++++++-------- frontend/turbo.json | 4 ++-- 22 files changed, 40 insertions(+), 40 deletions(-) diff --git a/frontend/apps/docs/content/docs/static-build/getting-started.mdx b/frontend/apps/docs/content/docs/static-build/getting-started.mdx index 6849f0b4..b4112cd6 100644 --- a/frontend/apps/docs/content/docs/static-build/getting-started.mdx +++ b/frontend/apps/docs/content/docs/static-build/getting-started.mdx @@ -3,5 +3,5 @@ title: Static Build --- ```package-install -npx @liam/cli init +npx @liam-hq/cli init ``` diff --git a/frontend/apps/docs/package.json b/frontend/apps/docs/package.json index c9469c53..a6bf63b5 100644 --- a/frontend/apps/docs/package.json +++ b/frontend/apps/docs/package.json @@ -1,5 +1,5 @@ { - "name": "@liam/docs", + "name": "@liam-hq/docs", "private": true, "version": "0.0.0", "dependencies": { diff --git a/frontend/packages/cli/README.md b/frontend/packages/cli/README.md index 3a24d221..e85f2135 100644 --- a/frontend/packages/cli/README.md +++ b/frontend/packages/cli/README.md @@ -1,4 +1,4 @@ -# @liam/cli +# @liam-hq/cli Command-line tool designed to generate a web application that displays ER diagrams. diff --git a/frontend/packages/cli/package.json b/frontend/packages/cli/package.json index 3b5a13a2..9cfe8d00 100644 --- a/frontend/packages/cli/package.json +++ b/frontend/packages/cli/package.json @@ -1,5 +1,5 @@ { - "name": "@liam/cli", + "name": "@liam-hq/cli", "license": "Apache-2.0", "private": true, "version": "0.0.0", @@ -15,8 +15,8 @@ }, "devDependencies": { "@biomejs/biome": "1.9.3", - "@liam/db-structure": "workspace:*", - "@liam/erd-core": "workspace:*", + "@liam-hq/db-structure": "workspace:*", + "@liam-hq/erd-core": "workspace:*", "@rollup/plugin-node-resolve": "15.3.0", "@rollup/plugin-typescript": "12.1.1", "@types/node": "22.9.0", diff --git a/frontend/packages/cli/src/App.tsx b/frontend/packages/cli/src/App.tsx index 89c6438d..a49cfeda 100644 --- a/frontend/packages/cli/src/App.tsx +++ b/frontend/packages/cli/src/App.tsx @@ -1,5 +1,5 @@ -import { type DBStructure, dbStructureSchema } from '@liam/db-structure' -import { ERDRenderer } from '@liam/erd-core' +import { type DBStructure, dbStructureSchema } from '@liam-hq/db-structure' +import { ERDRenderer } from '@liam-hq/erd-core' import { useEffect, useState } from 'react' import * as v from 'valibot' diff --git a/frontend/packages/cli/src/cli/runPreprocess.ts b/frontend/packages/cli/src/cli/runPreprocess.ts index c1f37017..60a18ee6 100644 --- a/frontend/packages/cli/src/cli/runPreprocess.ts +++ b/frontend/packages/cli/src/cli/runPreprocess.ts @@ -1,6 +1,6 @@ import fs, { readFileSync } from 'node:fs' import path from 'node:path' -import { parse } from '@liam/db-structure' +import { parse } from '@liam-hq/db-structure' export function runPreprocess(inputPath: string, outputDir: string) { if (!fs.existsSync(inputPath)) { diff --git a/frontend/packages/cli/src/globals.css b/frontend/packages/cli/src/globals.css index 47459ba1..4ddceb76 100644 --- a/frontend/packages/cli/src/globals.css +++ b/frontend/packages/cli/src/globals.css @@ -1,4 +1,4 @@ -@import url('@liam/erd-core/styles/globals.css'); +@import url('@liam-hq/erd-core/styles/globals.css'); #root { display: flex; diff --git a/frontend/packages/configs/package.json b/frontend/packages/configs/package.json index aa83b152..230c8f4d 100644 --- a/frontend/packages/configs/package.json +++ b/frontend/packages/configs/package.json @@ -1,5 +1,5 @@ { - "name": "@liam/configs", + "name": "@liam-hq/configs", "private": true, "version": "0.0.1", "type": "module", diff --git a/frontend/packages/db-structure/package.json b/frontend/packages/db-structure/package.json index 6ec745b3..6747f18b 100644 --- a/frontend/packages/db-structure/package.json +++ b/frontend/packages/db-structure/package.json @@ -1,5 +1,5 @@ { - "name": "@liam/db-structure", + "name": "@liam-hq/db-structure", "private": true, "version": "0.0.1", "type": "module", @@ -10,7 +10,7 @@ }, "devDependencies": { "@biomejs/biome": "1.9.3", - "@liam/configs": "workspace:*", + "@liam-hq/configs": "workspace:*", "@pgsql/types": "15.0.2", "lodash-es": "4.17.21", "peggy": "4.1.1", diff --git a/frontend/packages/db-structure/tsconfig.json b/frontend/packages/db-structure/tsconfig.json index f7a51474..141c56f5 100644 --- a/frontend/packages/db-structure/tsconfig.json +++ b/frontend/packages/db-structure/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@liam/configs/tsconfig/base.json", + "extends": "@liam-hq/configs/tsconfig/base.json", "compilerOptions": { "baseUrl": ".", "outDir": "dist", diff --git a/frontend/packages/erd-core/package.json b/frontend/packages/erd-core/package.json index dfd7fb5a..601f5179 100644 --- a/frontend/packages/erd-core/package.json +++ b/frontend/packages/erd-core/package.json @@ -1,5 +1,5 @@ { - "name": "@liam/erd-core", + "name": "@liam-hq/erd-core", "private": true, "version": "0.0.1", "type": "module", @@ -10,9 +10,9 @@ }, "devDependencies": { "@biomejs/biome": "1.9.3", - "@liam/configs": "workspace:*", - "@liam/db-structure": "workspace:*", - "@liam/ui": "workspace:*", + "@liam-hq/configs": "workspace:*", + "@liam-hq/db-structure": "workspace:*", + "@liam-hq/ui": "workspace:*", "@types/react": "18", "typed-css-modules": "0.9.1", "typescript": "5" diff --git a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableNode.tsx b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableNode.tsx index a6f39bca..ef3495ff 100644 --- a/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableNode.tsx +++ b/frontend/packages/erd-core/src/components/ERDRenderer/ERDContent/TableNode/TableNode.tsx @@ -1,5 +1,5 @@ -import type { Table } from '@liam/db-structure' -import { KeyRound } from '@liam/ui' +import type { Table } from '@liam-hq/db-structure' +import { KeyRound } from '@liam-hq/ui' import type { Node, NodeProps } from '@xyflow/react' import type { FC } from 'react' import styles from './TableNode.module.css' diff --git a/frontend/packages/erd-core/src/components/ERDRenderer/ERDRenderer.tsx b/frontend/packages/erd-core/src/components/ERDRenderer/ERDRenderer.tsx index 973b9f1d..8c6f47a2 100644 --- a/frontend/packages/erd-core/src/components/ERDRenderer/ERDRenderer.tsx +++ b/frontend/packages/erd-core/src/components/ERDRenderer/ERDRenderer.tsx @@ -1,5 +1,5 @@ import '@xyflow/react/dist/style.css' -import type { DBStructure } from '@liam/db-structure' +import type { DBStructure } from '@liam-hq/db-structure' import { ReactFlowProvider } from '@xyflow/react' import type { FC } from 'react' import { ERDContent } from './ERDContent' diff --git a/frontend/packages/erd-core/src/components/ERDRenderer/convertDBStructureToNodes.ts b/frontend/packages/erd-core/src/components/ERDRenderer/convertDBStructureToNodes.ts index f0da70db..d6cb7a8f 100644 --- a/frontend/packages/erd-core/src/components/ERDRenderer/convertDBStructureToNodes.ts +++ b/frontend/packages/erd-core/src/components/ERDRenderer/convertDBStructureToNodes.ts @@ -1,4 +1,4 @@ -import type { DBStructure } from '@liam/db-structure' +import type { DBStructure } from '@liam-hq/db-structure' import type { Node } from '@xyflow/react' export const convertDBStructureToNodes = (dbStructure: DBStructure): Node[] => { diff --git a/frontend/packages/erd-core/styles/globals.css b/frontend/packages/erd-core/styles/globals.css index 040e96df..6eca4706 100644 --- a/frontend/packages/erd-core/styles/globals.css +++ b/frontend/packages/erd-core/styles/globals.css @@ -1 +1 @@ -@import url('@liam/ui/styles/globals.css'); +@import url('@liam-hq/ui/styles/globals.css'); diff --git a/frontend/packages/erd-core/tsconfig.json b/frontend/packages/erd-core/tsconfig.json index 5ebd128d..22397c89 100644 --- a/frontend/packages/erd-core/tsconfig.json +++ b/frontend/packages/erd-core/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@liam/configs/tsconfig/base.json", + "extends": "@liam-hq/configs/tsconfig/base.json", "compilerOptions": { "baseUrl": "." }, diff --git a/frontend/packages/figma-to-css-variables/README.md b/frontend/packages/figma-to-css-variables/README.md index 61ed5d86..044465d4 100644 --- a/frontend/packages/figma-to-css-variables/README.md +++ b/frontend/packages/figma-to-css-variables/README.md @@ -28,5 +28,5 @@ If no specific argument is provided, the script defaults to running all steps in To run the script, use the following command: ```sh -FIGMA_FILE_KEY=FnK... FIGMA_ACCESS_TOKEN=figd_xxx pnpm --filter @liam/figma-to-css-variables sync --output '../../apps/service-site/src/styles' --filter-modes 'Dark,Mode 1' +FIGMA_FILE_KEY=FnK... FIGMA_ACCESS_TOKEN=figd_xxx pnpm --filter @liam-hq/figma-to-css-variables sync --output '../../apps/service-site/src/styles' --filter-modes 'Dark,Mode 1' ``` diff --git a/frontend/packages/figma-to-css-variables/package.json b/frontend/packages/figma-to-css-variables/package.json index 32b2898c..cb4164f7 100644 --- a/frontend/packages/figma-to-css-variables/package.json +++ b/frontend/packages/figma-to-css-variables/package.json @@ -1,5 +1,5 @@ { - "name": "@liam/figma-to-css-variables", + "name": "@liam-hq/figma-to-css-variables", "private": true, "version": "0.0.0", "main": "bin/index.mjs", @@ -8,7 +8,7 @@ }, "devDependencies": { "@biomejs/biome": "1.9.3", - "@liam/configs": "workspace:*" + "@liam-hq/configs": "workspace:*" }, "scripts": { "fmt": "pnpm run '/^fmt:.*/'", diff --git a/frontend/packages/ui/package.json b/frontend/packages/ui/package.json index 4f9bee47..bb4228a7 100644 --- a/frontend/packages/ui/package.json +++ b/frontend/packages/ui/package.json @@ -1,5 +1,5 @@ { - "name": "@liam/ui", + "name": "@liam-hq/ui", "private": true, "version": "0.0.0", "main": "src/index.ts", @@ -13,7 +13,7 @@ }, "devDependencies": { "@biomejs/biome": "1.9.3", - "@liam/configs": "workspace:*", + "@liam-hq/configs": "workspace:*", "@storybook/react": "8.3.4", "@types/react": "18", "typed-css-modules": "0.9.1", diff --git a/frontend/packages/ui/tsconfig.json b/frontend/packages/ui/tsconfig.json index 5ebd128d..22397c89 100644 --- a/frontend/packages/ui/tsconfig.json +++ b/frontend/packages/ui/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@liam/configs/tsconfig/base.json", + "extends": "@liam-hq/configs/tsconfig/base.json", "compilerOptions": { "baseUrl": "." }, diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 5314cad3..cfa36dce 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -88,10 +88,10 @@ importers: '@biomejs/biome': specifier: 1.9.3 version: 1.9.3 - '@liam/db-structure': + '@liam-hq/db-structure': specifier: workspace:* version: link:../db-structure - '@liam/erd-core': + '@liam-hq/erd-core': specifier: workspace:* version: link:../erd-core '@rollup/plugin-node-resolve': @@ -152,7 +152,7 @@ importers: '@biomejs/biome': specifier: 1.9.3 version: 1.9.3 - '@liam/configs': + '@liam-hq/configs': specifier: workspace:* version: link:../configs '@pgsql/types': @@ -186,13 +186,13 @@ importers: '@biomejs/biome': specifier: 1.9.3 version: 1.9.3 - '@liam/configs': + '@liam-hq/configs': specifier: workspace:* version: link:../configs - '@liam/db-structure': + '@liam-hq/db-structure': specifier: workspace:* version: link:../db-structure - '@liam/ui': + '@liam-hq/ui': specifier: workspace:* version: link:../ui '@types/react': @@ -214,7 +214,7 @@ importers: '@biomejs/biome': specifier: 1.9.3 version: 1.9.3 - '@liam/configs': + '@liam-hq/configs': specifier: workspace:* version: link:../configs @@ -242,7 +242,7 @@ importers: '@biomejs/biome': specifier: 1.9.3 version: 1.9.3 - '@liam/configs': + '@liam-hq/configs': specifier: workspace:* version: link:../configs '@storybook/react': diff --git a/frontend/turbo.json b/frontend/turbo.json index 80e091ce..f3c99542 100644 --- a/frontend/turbo.json +++ b/frontend/turbo.json @@ -9,7 +9,7 @@ "cache": false, "persistent": true }, - "@liam/cli#dev": { + "@liam-hq/cli#dev": { "dependsOn": ["build"], "cache": false, "persistent": true @@ -24,7 +24,7 @@ "test": { "outputs": [] }, - "@liam/cli#test": { + "@liam-hq/cli#test": { "dependsOn": ["^build"] } } From 367ab824f426a622a12f8b93876efb4de43b012d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 2 Dec 2024 09:14:38 +0000 Subject: [PATCH 2/2] Update docs/packages-license.md --- frontend/docs/packages-license.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/docs/packages-license.md b/frontend/docs/packages-license.md index 08f8f6d2..de29c987 100644 --- a/frontend/docs/packages-license.md +++ b/frontend/docs/packages-license.md @@ -1,6 +1,6 @@ # frontend -As of December 2, 2024 7:59am. 990 total +As of December 2, 2024 9:14am. 990 total ## Summary * 859 MIT