diff --git a/packages/db/copy-files.mjs b/packages/db/copy-files.mjs index 6c42c47..fe310c5 100644 --- a/packages/db/copy-files.mjs +++ b/packages/db/copy-files.mjs @@ -10,13 +10,13 @@ async function copyFiles() { fs.readFile('./generated/runtime/library.d.ts') ]) await fs - .access('../types/prisma') - .catch(() => fs.mkdir('../types/prisma')) - .then(() => fs.writeFile('../types/prisma/index.d.ts', indexDts)) + .access('../lib/prisma') + .catch(() => fs.mkdir('../lib/prisma')) + .then(() => fs.writeFile('../lib/prisma/index.d.ts', indexDts)) await fs - .access('../types/prisma/runtime') - .catch(() => fs.mkdir('../types/prisma/runtime')) - .then(() => fs.writeFile('../types/prisma/runtime/library.d.ts', library)) + .access('../lib/prisma/runtime') + .catch(() => fs.mkdir('../lib/prisma/runtime')) + .then(() => fs.writeFile('../lib/prisma/runtime/library.d.ts', library)) } copyFiles() diff --git a/packages/utils/README.md b/packages/lib/README.md similarity index 100% rename from packages/utils/README.md rename to packages/lib/README.md diff --git a/packages/utils/package.json b/packages/lib/package.json similarity index 100% rename from packages/utils/package.json rename to packages/lib/package.json diff --git a/packages/utils/prisma/index.d.ts b/packages/lib/prisma/index.d.ts similarity index 100% rename from packages/utils/prisma/index.d.ts rename to packages/lib/prisma/index.d.ts diff --git a/packages/utils/prisma/runtime/library.d.ts b/packages/lib/prisma/runtime/library.d.ts similarity index 100% rename from packages/utils/prisma/runtime/library.d.ts rename to packages/lib/prisma/runtime/library.d.ts diff --git a/packages/utils/src/auth.ts b/packages/lib/src/auth.ts similarity index 100% rename from packages/utils/src/auth.ts rename to packages/lib/src/auth.ts diff --git a/packages/utils/src/index.ts b/packages/lib/src/index.ts similarity index 100% rename from packages/utils/src/index.ts rename to packages/lib/src/index.ts diff --git a/packages/utils/src/prisma.ts b/packages/lib/src/prisma.ts similarity index 100% rename from packages/utils/src/prisma.ts rename to packages/lib/src/prisma.ts diff --git a/packages/utils/src/wrappedFetch.ts b/packages/lib/src/wrappedFetch.ts similarity index 100% rename from packages/utils/src/wrappedFetch.ts rename to packages/lib/src/wrappedFetch.ts diff --git a/packages/utils/tsconfig.json b/packages/lib/tsconfig.json similarity index 100% rename from packages/utils/tsconfig.json rename to packages/lib/tsconfig.json diff --git a/packages/utils/types/auth.d.ts b/packages/lib/types/auth.d.ts similarity index 100% rename from packages/utils/types/auth.d.ts rename to packages/lib/types/auth.d.ts diff --git a/packages/utils/types/index.d.ts b/packages/lib/types/index.d.ts similarity index 100% rename from packages/utils/types/index.d.ts rename to packages/lib/types/index.d.ts diff --git a/packages/utils/types/user.d.ts b/packages/lib/types/user.d.ts similarity index 100% rename from packages/utils/types/user.d.ts rename to packages/lib/types/user.d.ts diff --git a/packages/utils/types/utils.d.ts b/packages/lib/types/utils.d.ts similarity index 100% rename from packages/utils/types/utils.d.ts rename to packages/lib/types/utils.d.ts diff --git a/packages/utils/vite.config.ts b/packages/lib/vite.config.ts similarity index 100% rename from packages/utils/vite.config.ts rename to packages/lib/vite.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2e6b2dd..654d1ab 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -79,7 +79,7 @@ importers: version: link:../db '@awesome-org/lib': specifier: workspace:* - version: link:../utils + version: link:../lib bcrypt: specifier: 5.1.1 version: 5.1.1 @@ -137,7 +137,7 @@ importers: dependencies: '@awesome-org/lib': specifier: workspace:* - version: link:../utils + version: link:../lib '@iconify-icons/fe': specifier: ^1.2.5 version: 1.2.5 @@ -214,7 +214,7 @@ importers: devDependencies: '@awesome-org/lib': specifier: workspace:* - version: link:../utils + version: link:../lib '@types/bcrypt': specifier: ^5.0.2 version: 5.0.2 @@ -243,9 +243,9 @@ importers: specifier: ^13.10.0 version: 13.10.0 - packages/private-pkg: {} + packages/lib: {} - packages/utils: {} + packages/private-pkg: {} packages: